use of sscanf? - 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: use of sscanf? (
/showthread.php?tid=621320)
use of sscanf? -
XHunterZ - 09.11.2016
whats the use of sscanf?
Re: use of sscanf? -
Vince - 09.11.2016
It is the inverse to format. It takes an input string and splits it into different variables based on a given pattern.
Re: use of sscanf? -
NeXoR - 09.11.2016
In addition to what Vince commented, I will give you some more reliable examples
You can split an input command into given variables (target id, reason, time, amount)
You can split files (X | Y | Z) into different variables (x, y, z) and so on