09.03.2010, 13:09
Hi there, i was trying to make a anticheat for health hack, i came up with this:
Top:
OnGameModeInnit:
Bottom of my script:
Errors:
Does anyone see the problem?
Top:
Код:
forward HH(playerid);
Код:
SetTimer("HH",5000,1);
Код:
public HH(playerid) { if(GetPlayerHealth(playerid) > 2) //line 374 { SetPlayerHealth(playerid,GetPlayerHealth(playerid) -1); //line 376 if(GetPlayerHealth(playerid == 100) //line 377 { //line 378 SendClientMessage(playerid, COLOUR_RED,"Anticheat: You have been banned for Health hacks!"); Ban(playerid); return !; //line 381 } SetPlayerHealth(playerid,GetPlayerHealth(playerid) +1); //line 382 return 1; } return 1; }
Код:
(374) : warning 202: number of arguments does not match definition (376) : warning 202: number of arguments does not match definition (377) : warning 202: number of arguments does not match definition (378) : error 001: expected token: ")", but found "{" (381) : error 029: invalid expression, assumed zero (383) : warning 202: number of arguments does not match definition