Help with crash.. i can't understand what does crashdetect mean. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help with crash.. i can't understand what does crashdetect mean. (
/showthread.php?tid=412776)
Help with crash.. i can't understand what does crashdetect mean. -
Gaurav_Rawat - 03.02.2013
So here is the log which i got after running crash detect plugin with my gamemode.
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 is all the error..After i joined In game..
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;
}
Re: Help with crash.. i can't understand what does crashdetect mean. - T0pAz - 03.02.2013
Show this function.
Re: Help with crash.. i can't understand what does crashdetect mean. -
Gaurav_Rawat - 03.02.2013
PHP Code:
stock RPN(playerid)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
for(new i = 0; i < MAX_PLAYER_NAME; i++)
{
if(name[i] == '_') name[i] = ' ';
}
return name;
}
Re: Help with crash.. i can't understand what does crashdetect mean. - T0pAz - 03.02.2013
pawn 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;
}
stock RPN(playerid)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
for(new i, l = strlen(name); i != l; i++)
{
if(name[i] == '_') name[i] = ' ';
}
return name;
}
Try this. If it doesn't works, the problem is somewhere else.
Re: Help with crash.. i can't understand what does crashdetect mean. -
Gaurav_Rawat - 03.02.2013
Same errors still
PHP Code:
RP.amx
[10:12:50] [debug] Run time error 4: "Array index out of bounds"
[10:12:50] [debug] Accessing element at index 9 past array upper bound 8
[10:12:50] [debug] AMX backtrace:
[10:12:50] [debug] #0 001682fc in ?? () from RP.amx
[10:12:50] [debug] #1 001644dc in public NOPSetPlayerPos () from RP.amx
[10:12:51] [debug] Run time error 4: "Array index out of bounds"
[10:12:51] [debug] Accessing element at index 9 past array upper bound 8
[10:12:51] [debug] AMX backtrace:
[10:12:51] [debug] #0 001682fc in ?? () from RP.amx
[10:12:51] [debug] #1 001644dc in public NOPSetPlayerPos () from RP.amx