mysql question
#1

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]
Reply
#2

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.
Reply
#3

Could i use this to?

pawn Код:
new row[256];
new values[5];
mysql_fetch_row_format(row, "|");
explode(row, values, "|");
Reply
#4

Anyone please, it's important to me
Reply
#5

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)