SA-MP Forums Archive
Server crashes clients from time to time - 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: Server crashes clients from time to time (/showthread.php?tid=653391)



Server crashes clients from time to time - andrejc999 - 03.05.2018

Yo guys,

So I've been making a RP server for over 2 years (with breaks) and my server started to crash random clients from time to time. I think I know what's the reason but I wanted to make sure it is. Basically I made a few strings which are not big enough to support the text I formatted to them and I'm not sure how pawno handles that.

Example:

Код:
new string[16];

format(string, sizeof(string), "Here are more than 16 letters.");
SCMALL(COLOR, string);
Is this the reason for the crashes and is there a plugin which checks the script for bad coding?

Thanks in advanced.


Re: Server crashes clients from time to time - TitoRayne - 03.05.2018

Why dont you just use 24?


Re: Server crashes clients from time to time - andrejc999 - 03.05.2018

I gave an example I know it's my bad and I was just wondering if that crashes a server so I need answer from someone who's more introduced to how pawn works.


Re: Server crashes clients from time to time - TitoRayne - 03.05.2018

then try it my man