[Ajuda] debug crashdetect - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] debug crashdetect (
/showthread.php?tid=504647)
debug crashdetect -
AndersonAq - 05.04.2014
como arrumar esses erros que o crashdetect detectou ao ligar o servidor? ajudem por favor!!..
PHP код:
[07:00:22] [debug] Run time error 4: "Array index out of bounds"
[07:00:22] [debug] Accessing element at index 250 past array upper bound 249
[07:00:22] [debug] AMX backtrace:
[07:00:22] [debug] #0 0038b9a4 in public SSCANF_OnGameModeInit () from Lko.amx
[07:00:22] [debug] #1 0001ac80 in ?? () Lko.amx
[07:00:22] [debug] #2 0000557c in public ScriptInit_OnGameModeInit () from Lko.amx
[07:00:22] [debug] #3 00001194 in public OnGameModeInit () from Lko.amx
Re: debug crashdetect -
PT - 05.04.2014
Parece que й a sua callback OnGameModeInit posta ai para podermos ajudar
Re: debug crashdetect -
AndersonAq - 05.04.2014
Eu jб achei o erro, o erro й nesse cуdigo:
PHP код:
for(new i = 0; i < 1000; i++)
{
CreateDynamic3DTextLabel("Battery Ment", 0x00FFFFFF, ALocations[i][LocX], ALocations[i][LocY], ALocations[i][LocZ], 30.0);
}
O que hб de errado?
Re: debug crashdetect -
PT - 05.04.2014
Como e que vc tem declarada esta array ALocations?
Re: debug crashdetect -
AndersonAq - 05.04.2014
new ALocations[][TLocation]
Re: debug crashdetect -
Douglas_prt - 05.04.2014
pawn Код:
// Topo do GM
#define MAX_LOCATIONS 1000
pawn Код:
// Substitui
new ALocations[MAX_LOCATIONS][TLocation]
Re: debug crashdetect -
PT - 05.04.2014
Faz o que ele disse acima e muda o loop tbm para este:
pawn Код:
for(new i = 0; i < sizeof(ALocations); i++)
Re: debug crashdetect -
AndersonAq - 05.04.2014
Algum de vocкs tem skype? gostaria de passar o cуdigo completo via skype, por favor?