18.04.2011, 16:15
So i decided to start making an anticheat fs for my mates server but i got an error already im fairly new to coding but still i think im generally knowledgeable about it
heres the code
And heres the erros
heres the code
Quote:
#define FILTERSCRIPT #define COLOR_RED 0xAA3333AA #include <a_samp> public OnFilterScriptInit() forward OnPlayerDeath(playerid, killerid, reason); public OnPlayerDeath(playerid, killerid, reason); { if(GetPlayerweapon(killerid) == 36); Ban(Killerid); SendClientMessageToAll(playerid, COLOR_RED, "Weapon Hacks: Rocket Launcher"); return 1; } public OnFilterScriptExit() { return 1; } |
Quote:
C:\Users\pedro\Desktop\pawno\filterscript.pwn( : error 029: invalid expression, assumed zero C:\Users\pedro\Desktop\pawno\filterscript.pwn(10) : error 055: start of function body without function header C:\Users\pedro\Desktop\pawno\filterscript.pwn(11) : error 010: invalid function or declaration C:\Users\pedro\Desktop\pawno\filterscript.pwn(14) : error 010: invalid function or declaration Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. |