Server shuts down when typing
#1

I'm hosting my script on Triangle.gs free host - i uploaded my script everything works i turn on the server.. everything still perfectly fine.. i join the server , register , spawns - then when tries to type anything in the chat - server shuts down.. nothing wierd on the serverlog or anything , what to do ?
Reply
#2

put the crashdetect plugin and post the errors?
Reply
#3

Quote:

[18:46:07] [debug] AMX backtrace:
[18:46:07] [debug] #0 00227388 in ?? (0x000000bc) from rc.amx
[18:46:07] [debug] #1 00066298 in ?? (0x000000bc) from rc.amx
[18:46:07] [debug] #2 000189a0 in public OnVehicleSpawn (0x000000bc) from rc.amx
[18:46:07] [debug] #3 native SetVehicleToRespawn () [080d39b0] from samp03svr
[18:46:07] [debug] #4 000580e8 in ?? () from rc.amx
[18:46:07] [debug] #5 000180a8 in public RL_OnGameModeInit () from rc.amx
[18:46:07] [debug] #6 native CallLocalFunction () [080dbf60] from samp03svr
[18:46:07] [debug] #7 0000b88c in public zcmd_OnGameModeInit () from rc.amx
[18:46:07] [debug] #8 native CallLocalFunction () [080dbf60] from samp03svr
[18:46:07] [debug] #9 00009034 in public SSCANF_OnGameModeInit () from rc.amx
[18:46:07] [debug] #10 0000339c in public Itter_OnGameModeInit () from rc.amx
[18:46:07] [debug] #11 native CallLocalFunction () [080dbf60] from samp03svr
[18:46:07] [debug] #12 00002928 in public ScriptInit_OnGameModeInit () from rc.amx
[18:46:07] [debug] #13 000017f8 in public OnGameModeInit () from rc.amx
[18:46:07] [debug] Run time error 4: "Array index out of bounds"
[18:46:07] [debug] Accessing element at index 9 past array upper bound 8

This what it says..
Reply
#4

Just to let you know that using SetVehicleToRespawn function inside OnVehicleSpawn callback is like an infinite loop.

SetVehicleToRespawn calls OnVehicleSpawn and in OnVehicleSpawn, you call SetVehicleToRespawn so the same thing goes over and over again.

OnVehicleSpawn is called when a vehicle re-spawns, not when it's created.
Reply
#5

So what to do please help me
Reply
#6

There are more problems than the one I mentioned above. The one is a run time error: Array index out of bounds and the problem you say about when you type that it shuts your server down.

So if you don't use the latest version of crashdetect plugin (which is 4.13), then update it: https://github.com/Zeex/samp-plugin-...ases/tag/v4.13
Use debug info: https://github.com/Zeex/samp-plugin-...ith-debug-info

Re-compile your scripts and start the server. Type anything in the chat and after it shuts down, post the whole server log (because in case you miss some useful information, we'll not be able to trace it).
Reply
#7

Server log is too long - thosse erros are like taking around 240KB's what to do ?
Reply
#8

Upload it to pastebin.
Reply
#9

http://pastebin.com/einHLf1B
Reply
#10

Well, like I said it's like an infinite loop so don't use SetVehicleToRespawn function inside OnVehicleSpawn callback.

Then it says about a run time error 19 but the #0 and #1 from AMX backtrace are unknown. Are you sure you've created the pawn.cfg file and wrote "-d3" (without the quotes "") inside the file and then re-compiled your scripts?

Last, it printed nothing about OnPlayerText (which is called wherever you chat) so the problem came from the infinite loop in the first place.
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)