sscanf2 - 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: sscanf2 (
/showthread.php?tid=189398)
sscanf2 -
GaGlets(R) - 11.11.2010
I have this warning message how could i fix that
sscanf warning: String buffer overflow.
My server went down, probably this is the reason.
Re: sscanf2 -
The_Moddler - 11.11.2010
The warnings says it...
You have something like this(I think it's like this):
pawn Code:
new buff[64];
if(sscanf(bla("s[128]", buff)))
Change:
pawn Code:
if(sscanf(bla("s[128]", buff)))
To:
pawn Code:
if(sscanf(bla("s[64]", buff)))
Re: sscanf2 -
GaGlets(R) - 11.11.2010
bwah sorry. a little descripton what happened.
Server runned normaly for some while - about month or less .
Now most of the commands wont work and even onplayertext callback wont work. Any string formatting wont work.
edit:
why i cant use 128?
edit:
and also all gettick count wont work, if i have gettick count check it would say that its already working.
Re: sscanf2 -
GaGlets(R) - 11.11.2010
u mean if my buffer is 16 and im trying to put in there with sscanf 32 "s[32]" it would show the error ?
How i can prove it ?