SA-MP Forums Archive
help - crashdetect - 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 - crashdetect (/showthread.php?tid=438871)



help - crashdetect - Taykiro - 22.05.2013

Help with crash

Код:
[18:16:29] [debug] Run time error 4: "Array index out of bounds"
 [18:16:29] [debug] Accessing element at index 2 past array upper bound 1
 [18:16:29] [debug] AMX backtrace:
 [18:16:29] [debug] #0 000550b8 in ?? () from GF.amx
 [18:16:29] [debug] #1 0004243c in public OnGameModeInit () from GF.amx
 [18:16:29] 
 [18:16:29] 
 [18:16:29] : LS-LV
 [18:16:29] _____________________
 [18:16:29] By: A Team
 [18:16:29] 
 [18:16:29] Number of vehicle models: 39
 [18:17:24] Incoming connection: ip:1203
 [18:17:24] [join] Taykiro has joined the server (0:ip)
 [18:17:30] Taykiro has logged in.
 [18:18:46] [debug] Server crashed while executing GF.amx
 [18:18:46] [debug] AMX backtrace:
 [18:18:46] [debug] #0 native fwrite () [00405710] from samp-server.exe
 [18:18:46] [debug] #1 00112124 in ?? () from GF.amx
 [18:18:46] [debug] #2 00074f28 in public OnPlayerCommandText () from GF.amx
 [18:18:46] [debug] System backtrace:
 [18:18:47] [debug] #0 0040534e in ?? () from D:\Godfather\samp-server.exe



Re: help - crashdetect - radiobizza - 22.05.2013

Show me what you have in the callback OnGameModeInit()


Re: help - crashdetect - Taykiro - 22.05.2013

who make callback for ongamemodeint use this https://sampwiki.blast.hk/wiki/OnGameModeInit and i don't understand


Re: help - crashdetect - mineralo - 22.05.2013

Quote:
Originally Posted by Taykiro
Посмотреть сообщение
who make callback for ongamemodeint use this https://sampwiki.blast.hk/wiki/OnGameModeInit and i don't understand
he asking to show us your codes under OnGameModeInit


Re: help - crashdetect - radiobizza - 22.05.2013

Yeah..


Re: help - crashdetect - Taykiro - 22.05.2013

http://pastebin.com/xpKbad7H


Re: help - crashdetect - Revo - 22.05.2013

Create pawn.cfg in "server path/pawno/"
Add
Код:
-d3
in the file, save and close.

Now re-compile your gamemode and let it run again; when it crashes - parse the new information to this thread.


Re: help - crashdetect - Taykiro - 22.05.2013

Quote:
Originally Posted by Revo
Посмотреть сообщение
Create pawn.cfg in "server path/pawno/"
Add
Код:
-d3
in the file, save and close.

Now re-compile your gamemode and let it run again; when it crashes - parse the new information to this thread.
no difference


Re: help - crashdetect - OpticKiller - 22.05.2013

seems to be something wrong in public OnPlayerCommandText show us the code on it


EDIT: and public OnGameModeInit ()


Re: help - crashdetect - Taykiro - 22.05.2013

is for ongamemodeinit http://pastebin.com/xpKbad7H