sscanf question - 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: sscanf question (
/showthread.php?tid=365845)
sscanf question -
CoDeZ - 04.08.2012
Hello , what's the difference between this
pawn Код:
if(sscanf(params,"s",message))
and this
pawn Код:
if(sscanf(params,"s[100]",message))
Re: sscanf question -
Ranama - 04.08.2012
it's just that in the newest version you should use
pawn Код:
if(sscanf(params,"s[100]",message))
becuse then you could check that the param that the player sets into the command is the number of characters you like(if you don't use it you'll get error messages in your scrip)
Hope i helped
This forum requires that you wait 120 seconds between posts. Please try again in 7 seconds. ;(
Re: sscanf question -
CoDeZ - 04.08.2012
Thank you