AC timer
#1

Hi there, i was trying to make a anticheat for health hack, i came up with this:

Top:
Код:
forward HH(playerid);
OnGameModeInnit:
Код:
	SetTimer("HH",5000,1);
Bottom of my script:
Код:
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;
}
Errors:
Код:
(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
Does anyone see the problem?
Reply


Messages In This Thread
AC timer - by Naxix - 09.03.2010, 13:09
Re: AC timer - by Zimon95 - 09.03.2010, 13:13
Re: AC timer - by [MWR]Blood - 09.03.2010, 13:14
Re: AC timer - by Naxix - 09.03.2010, 13:16
Re: AC timer - by Zimon95 - 09.03.2010, 13:18

Forum Jump:


Users browsing this thread: 3 Guest(s)