help with my anti cheat
#1

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
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;
}

And heres the erros
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.

Reply


Messages In This Thread
help with my anti cheat - by peterRook - 18.04.2011, 16:15
Re: help with my anti cheat - by xir - 18.04.2011, 16:21
Re: help with my anti cheat - by Joe Staff - 18.04.2011, 16:32
Re: help with my anti cheat - by peterRook - 18.04.2011, 19:45
Re: help with my anti cheat - by xir - 18.04.2011, 19:49
Re: help with my anti cheat - by Stigg - 18.04.2011, 19:49
Re: help with my anti cheat - by peterRook - 18.04.2011, 20:13
Re: help with my anti cheat - by xir - 18.04.2011, 20:16
Re: help with my anti cheat - by peterRook - 18.04.2011, 20:19
Re: help with my anti cheat - by CrazyBlob - 18.04.2011, 20:19

Forum Jump:


Users browsing this thread: 1 Guest(s)