ExecuteNOPCheck(playerid) - It gives me a small error.
#1

Hey guys..I am trying to compile my script (editted but fully updated with new features..)
When I compile it , it gives me errors..
Here:
Код:
C:\Users\User\Desktop\Voltage Gaming Roleplay\gamemodes\test3.pwn(4966) : error 012: invalid function call, not a valid address
C:\Users\User\Desktop\Voltage Gaming Roleplay\gamemodes\test3.pwn(4966) : warning 215: expression has no effect
C:\Users\User\Desktop\Voltage Gaming Roleplay\gamemodes\test3.pwn(4966) : error 001: expected token: ";", but found ")"
C:\Users\User\Desktop\Voltage Gaming Roleplay\gamemodes\test3.pwn(4966) : error 029: invalid expression, assumed zero
C:\Users\User\Desktop\Voltage Gaming Roleplay\gamemodes\test3.pwn(4966) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
The line 4966:
Код:
	NOPCheck(playerid);
Lines near " NOPCheck(playerid);":
Код:
ExecuteNOPAction(playerid)
{
	new string[128];
	new newcar = GetPlayerVehicleID(playerid);
	if(NOPTrigger[playerid] >= MAX_NOP_WARNINGS) { return 1; }
	NOPTrigger[playerid]++;
	RemovePlayerFromVehicle(playerid);
	new Float:X, Float:Y, Float:Z;
	GetPlayerPos(playerid, X, Y, Z);
	SetPlayerPos(playerid, X, Y, Z+2);
	NOPCheck(playerid);
	if(NOPTrigger[playerid] > 1)
	{
		new sec = (NOPTrigger[playerid] * 5000)/1000-1;
		format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) may be NOP hacking - restricted vehicle (model %d) for %d seconds.", GetPlayerNameEx(playerid), playerid, GetVehicleModel(newcar),sec);
		ABroadCast(COLOR_YELLOW, string, 2);
	}
	return 1;
}
How can I fix it?
Reply
#2

Show your 'NOPCheck' function.
Reply
#3

ohh I don't have one..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)