31.07.2011, 19:44
When i put in this code
I get This
This is 843 line
HP = GetPlayerHealth(PlayerId);
Код:
forward AmICheater(PlayerId); public AmICheater(PlayerId) { new Float:HP; HP = GetPlayerHealth(PlayerId); if(HP == 100 && !IsPlayerAdmin(playerid)) // If player health equals 100 (even after 50 ms after bum :O). And checks if PlayerId isn't a RCON Admin :P { SendClientMessage(playerid, 0xFFFFFFFF, "You're cheater :( See you"); Ban(playerid); return 1; } return 1; }
Код:
C:\Users\Andrew\Desktop\Los Santos Gang Wars MySql\gamemodes\Gangwars.pwn(844) : warning 202: number of arguments does not match definition C:\Users\Andrew\Desktop\Los Santos Gang Wars MySql\gamemodes\Gangwars.pwn(846) : error 017: undefined symbol "playerid" C:\Users\Andrew\Desktop\Los Santos Gang Wars MySql\gamemodes\Gangwars.pwn(848) : error 017: undefined symbol "playerid" C:\Users\Andrew\Desktop\Los Santos Gang Wars MySql\gamemodes\Gangwars.pwn(849) : error 017: undefined symbol "playerid" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 3 Errors.
HP = GetPlayerHealth(PlayerId);