25.08.2011, 21:02
trying to make a hp anticheat and i got it but it bans ppl on spawn, so i did this:
and then this under OnPlayerUpdate
but i get these errors at the If 1= Bla bla bla line:
P.S: im using the Anticheat code from the Wiki(OnPlayerUpdate page)
Код:
public OnPlayerSpawn(playerid) { SetPlayerToTeamColor(playerid); SetPVarInt(playerid,"Hp Exception", 1); SetTimer("SetPVarInt(playerid,XD, 0)", 1000, false); return 1; }
Код:
if 1=(GetPVarInt(playerid, "HP exception")); { //something }
Код:
C:\Users\Henrique\Desktop\SAMP - The Project\Dir\gamemodes\Testmode.pwn(461) : warning 211: possibly unintended assignment C:\Users\Henrique\Desktop\SAMP - The Project\Dir\gamemodes\Testmode.pwn(461) : error 022: must be lvalue (non-constant) Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
P.S: im using the Anticheat code from the Wiki(OnPlayerUpdate page)