My Weather Script Crashes Server, help! - 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: My Weather Script Crashes Server, help! (
/showthread.php?tid=77439)
My Weather Script Crashes Server, help! -
Blt950 - 11.05.2009
Hi! I have a weather script that crases the server, but i dont know why? Please look at script
http://pastebin.com/f10873d05
and say me what needs to get edited
to make it stop crash
Thanks!
(Timers are 1, and 50 seconds. Beacuse im testing the weather ids)
Re: My Weather Script Crashes Server, help! -
Weirdosport - 11.05.2009
Your weather script?
If you downloaded this, ask in the scripts thread, not in the scripting discussion forum.
Re: My Weather Script Crashes Server, help! -
Blt950 - 11.05.2009
Quote:
Originally Posted by Weirdosport
Your weather script?
If you downloaded this, ask in the scripts thread, not in the scripting discussion forum.
|
I downloaded it and modified
Re: My Weather Script Crashes Server, help! -
miokie - 11.05.2009
At what point does it crash?
Re: My Weather Script Crashes Server, help! -
Blt950 - 11.05.2009
Quote:
Originally Posted by Miokie*
At what point does it crash?
|
Ah, the SERVER crahses beacuse this. Not Compier. Just server, i run it. After a while. It crashes (shuts down)
Re: My Weather Script Crashes Server, help! -
Andom - 11.05.2009
Код:
new strout[256];
SetWeather(gRandomWeatherIDs[rand][wt_id]);
SendClientMessageToAll(COLOR_WHITE,strout);
You are setting a string without format, hmmmm, use format.
Re: My Weather Script Crashes Server, help! -
Weirdosport - 11.05.2009
Quote:
Originally Posted by Andom
Код:
new strout[256];
SetWeather(gRandomWeatherIDs[rand][wt_id]);
SendClientMessageToAll(COLOR_WHITE,strout);
You are setting a string without format, hmmmm, use format.
|
Damnit I saw the string and didn't realise! Yeah if you send a blank string it's bound to crash..
Re: My Weather Script Crashes Server, help! -
Blt950 - 11.05.2009
Quote:
Originally Posted by Weirdosport
Quote:
Originally Posted by Andom
Код:
new strout[256];
SetWeather(gRandomWeatherIDs[rand][wt_id]);
SendClientMessageToAll(COLOR_WHITE,strout);
You are setting a string without format, hmmmm, use format.
|
Damnit I saw the string and didn't realise! Yeah if you send a blank string it's bound to crash..
|
I fixed it, and now its working. Not wierd i didnt saw that. I wasnt the only one ^^