Help scanff - 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: Help scanff (
/showthread.php?tid=292433)
Help scanff -
roleplay501 - 23.10.2011
This is my format
"#%d %s"
I need to take out the %d / integer..
sscanf(string, "'#'d{s[255]}", j);
Its what i did, but for some reason its doesn't work...
Can some one help me?
Re: Help scanff -
roleplay501 - 23.10.2011
I have this string for example:
#1 (23/10/2011 - 22:21:35) Blake Shelton - x
I need to take out the number 1 after the # to integer.
How to scan the string correctly?
I did "'#'d{s[255]}", but i get a warrning message to the server motd..
Re: Help scanff -
Babul - 24.10.2011
erm. are you using the plugin or the old include version?
your sscanf line is ok, the quiet variable {s[255]} looks good, too.
Re: Help scanff -
roleplay501 - 24.10.2011
I've updated the include and the plugin to R5 But steel i get this error, seems something wrong with the include...
Hope ****** would be able to help me.
Re: Help scanff -
roleplay501 - 25.10.2011
....