SA-MP Forums Archive
Server Crash when exits a vehicle - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Server Crash when exits a vehicle (/showthread.php?tid=262218)



Server Crash when exits a vehicle - lolumadd_ - 17.06.2011

I have been testing my script on a recent update (which didn't change anything with vehicles, I only added some textdraws). It seems that if I enter any vehicle, it works fine. But when I exit the vehicle, the samp-server.exe just shuts down.

I have tried removing my OnPlayerStateChange and OnPlayerExitVehicle both completely. Still no effect. Can someone tell me where to look?

Thanks.


Re: Server Crash when exits a vehicle - leong124 - 17.06.2011

Are you sure the textdraws are not empty strings?


Re: Server Crash when exits a vehicle - Seven_of_Nine - 17.06.2011

Also, a not-float -ed format can crash. (for example format(text,sizeof(text),"%s")

If you don't find anything, just try to add a TextDrawSetString(textdraw,"_"); under OnPlayerExitVehicle..


Re: Server Crash when exits a vehicle - lolumadd_ - 17.06.2011

I deleted all Textdraws that I recently added and it still happens. (There are also no textdraws that are being set / created when someone enters a vehicle)

Perhaps it can be something else besides text draws?


Re: Server Crash when exits a vehicle - lolumadd_ - 17.06.2011

Solved. Thank you guys.