03.02.2013, 02:50
So here is the log which i got after running crash detect plugin with my gamemode.
Whole log.
This is all the error..After i joined In game..
This code keep spamming..
Please help
And
The code from "NopSetPlayerPos callback
Whole log.
PHP Code:
RP.amx
[09:42:35] [debug] Run time error 4: "Array index out of bounds"
[09:42:35] [debug] Accessing element at index 9 past array upper bound 8
[09:42:35] [debug] AMX backtrace:
[09:42:35] [debug] #0 001682cc in ?? () from RP.amx
[09:42:35] [debug] #1 001644dc in public NOPSetPlayerPos () from RP.amx
[09:42:36] [debug] Run time error 4: "Array index out of bounds"
[09:42:36] [debug] Accessing element at index 9 past array upper bound 8
[09:42:36] [debug] AMX backtrace:
[09:42:36] [debug] #0 001682cc in ?? () from RP.amx
[09:42:36] [debug] #1 001644dc in public NOPSetPlayerPos () from RP.amx
[09:42:38] [debug] Run time error 4: "Array index out of bounds"
[09:42:38] [debug] Accessing element at index 9 past array upper bound 8
[09:42:38] [debug] AMX backtrace:
[09:42:38] [debug] #0 001682cc in ?? () from RP.amx
[09:42:38] [debug] #1 001644dc in public NOPSetPlayerPos () from RP.amx
[09:42:39] [debug] Run time error 4: "Array index out of bounds"
[09:42:39] [debug] Accessing element at index 9 past array upper bound 8
[09:42:39] [debug] AMX backtrace:
[09:42:39] [debug] #0 001682cc in ?? () from RP.amx
[09:42:39] [debug] #1 001644dc in public NOPSetPlayerPos () from RP.amx
This code keep spamming..
Please help
And
The code from "NopSetPlayerPos callback
PHP Code:
forward NOPSetPlayerPos();
public NOPSetPlayerPos()
{
// NOP Vehicle Cheat
foreach(Player, playerid)
{
if(GetPlayerState(playerid) != PLAYER_STATE_PASSENGER)
{
if(IsLeoVehicle(GetPlayerVehicleID(playerid)) && PlayerInfo[playerid][pFac] != 1 || IsTruckerVehicle(GetPlayerVehicleID(playerid)) && PlayerInfo[playerid][pJob] != JOB_TRUCKER)
{
new string[128];
format(string, sizeof(string), "AdmWarn: %s is either desynced or using NOP hacks. (Driving Restricted Vehicle)", RPN(playerid));
SendAdminMessage(COLOR_DARKRED, 1, string);
RemovePlayerFromVehicle(playerid);
}
}
}
return 1;
}