Wysłany: 2013-03-22, 17:06
tomekzz
~!@#$%^&*
Wiek: 30 Na forum: 6845 dni Posty: 20
Piwa : 18
Kod: C:\Users\rudyy\Desktop\PAWNO\aim.pwn(118) : error 001: expected token: "#endif", but found "-end of file-"
C:\Users\rudyy\Desktop\PAWNO\aim.pwn(118) : error 013: no entry point (no public functions)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
Kod: public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(!(oldkeys & KEY_FIRE) && (newkeys & KEY_FIRE) && !(newkeys & KEY_HANDBRAKE)) {
keyfire[playerid] = true;
} else if(!(newkeys & KEY_FIRE)) keyfire[playerid] = false;
if(!ispressingaimkey[playerid]) CheckNextAim[playerid] = false;
ispressingaimkey[playerid] = (newkeys & KEY_HANDBRAKE);
if(ispressingaimkey[playerid] && !(oldkeys & KEY_HANDBRAKE)) {
pressingaimtick[playerid] = GetTickCount()+500;
}
return 1;
}
stock notallowed(weaponid) {
switch(weaponid) {
case 25..27, 16..18, 34..37, 39..40, 43..200: return 0;
// Blocks shotguns, sniper rifle, RPG, heat seaker satchel charges etc - besides shotguns these are unaffected by autoaim
// the reason shotguns are removed from checking is because i've found them to be unreliable.
default:return 1;
}
return 1;
}
stock IsPlayerUsingAutoaim(playerid) return autoaim[playerid];
Wysłany: 2013-03-22, 17:53
Trader
Programista PAWN/Php
Wiek: 32 Na forum: 4825 dni Posty: 20
Nick w MP: Roman_Flores
Piwa : 423
Kod:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(!(oldkeys & KEY_FIRE) && (newkeys & KEY_FIRE) && !(newkeys & KEY_HANDBRAKE))
{
keyfire[playerid] = true;
} else if {
(!(newkeys & KEY_FIRE)) keyfire[playerid] = false;
if(!ispressingaimkey[playerid]) CheckNextAim[playerid] = false;
ispressingaimkey[playerid] = (newkeys & KEY_HANDBRAKE);
if(ispressingaimkey[playerid] && !(oldkeys & KEY_HANDBRAKE)) {
pressingaimtick[playerid] = GetTickCount()+500;
}
return 1;
}
stock notallowed(weaponid) {
switch(weaponid) {
case 25..27, 16..18, 34..37, 39..40, 43..200: return 0;
// Blocks shotguns, sniper rifle, RPG, heat seaker satchel charges etc - besides shotguns these are unaffected by autoaim
// the reason shotguns are removed from checking is because i've found them to be unreliable.
default:return 1;
}
return 1;
}
Spr?buj tego
Wysłany: 2013-03-22, 18:03
tomekzz
~!@#$%^&*
Wiek: 30 Na forum: 6845 dni Posty: 20
Piwa : 18
Wysłany: 2013-03-22, 18:38
Trader
Programista PAWN/Php
Wiek: 32 Na forum: 4825 dni Posty: 20
Nick w MP: Roman_Flores
Piwa : 423
Tagi: bledy :: skrypcie
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: