mysql 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: mysql question (
/showthread.php?tid=260536)
mysql question -
swieberdevos - 09.06.2011
pawn Код:
new values[5];
sscanf(Query, "p<|>{s[24]s[129]s[16]}a<i>[5]", values);
I really hope somebody could help me with this.. i don't understand this really :S
pawn Код:
p<|>{s[24]s[129]s[16]}a<i>[5]
Re: mysql question -
playbox12 - 09.06.2011
It is for the function sscanf to know what and how it has to process certain values. For example 's' stands for string, and it allows up to 23 characters.
For more info, read this thread;
http://forum.sa-mp.com/forumdisplay.php?f=18
That thread pretty much makes it as clear as possible.
Re: mysql question -
swieberdevos - 09.06.2011
Could i use this to?
pawn Код:
new row[256];
new values[5];
mysql_fetch_row_format(row, "|");
explode(row, values, "|");
Re: mysql question -
swieberdevos - 09.06.2011
Anyone please, it's important to me
Re: mysql question -
Calgon - 09.06.2011
No, not for the format that sscanf specifies.
Learn how to use sscanf, usage of explode is not recommended. sscanf is a lot more efficient.