Posts: 160
Threads: 16
Joined: Mar 2012
Reputation:
0
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 ?
Posts: 27
Threads: 0
Joined: Feb 2014
put the crashdetect plugin and post the errors?
Posts: 11,827
Threads: 33
Joined: Dec 2011
Reputation:
0
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.
Posts: 160
Threads: 16
Joined: Mar 2012
Reputation:
0
So what to do please help me
Posts: 160
Threads: 16
Joined: Mar 2012
Reputation:
0
Server log is too long - thosse erros are like taking around 240KB's what to do ?
Posts: 11,827
Threads: 33
Joined: Dec 2011
Reputation:
0
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.