24.05.2012, 17:29
Quote:
Put this on top of your GM
pawn Code:
About IsPlayerInRangeOfVehicle i never saw this function in samp. try remove this line. |
pawn Code:
F:\Cross City\Latest GM\mat.pwn(4798) : error 012: invalid function call, not a valid address
F:\Cross City\Latest GM\mat.pwn(4798) : warning 215: expression has no effect
F:\Cross City\Latest GM\mat.pwn(4798) : error 001: expected token: ";", but found ")"
F:\Cross City\Latest GM\mat.pwn(4798) : error 029: invalid expression, assumed zero
F:\Cross City\Latest GM\mat.pwn(4798) : fatal error 107: too many error messages on one line
pawn Code:
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;
}
ANOTHER ERROR:
pawn Code:
F:\Cross City\Latest GM\mat.pwn(83) : error 001: expected token: ";", but found "new"
pawn Code:
new Spray[MAX_PLAYERS];