SA-MP Forums Archive
Server CPU - 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 CPU (/showthread.php?tid=431882)



Server CPU - KiNG3 - 20.04.2013

So I noticed my server CPU was going out of wack, the CPU went to 60% when I checked on it, usually it is at around 10% to 25%.....

I noticed this line right in my server_logs

pawn Код:
sscanf warning: Strings without a length are deprecated, please add a destination size.
The issue is, I don't know where this string is..... Is there a way I can find it?


Re: Server CPU - HurtLocker - 20.04.2013

Find all spots where you use the sscanf function and make them like this:
pawn Код:
if (!sscanf(params, "s[60]", text))
I mean add the length of the string array inside the " ", next to the letter "s".


Re: Server CPU - KiNG3 - 20.04.2013

What do you mean?

pawn Код:
if(sscanf(params, "us[32]i", target, weap, ammo))
Give me examples please. Actually read your PM's I sent you a message with my skype and steam.