MySQL help - 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: MySQL help (
/showthread.php?tid=335588)
MySQL help -
RicaNiel - 18.04.2012
guys what is the meaning of this ?
pawn Код:
sscanf(query,"e<p<|>s[24]s[32]iii>", playerdb[playerid]);
I am so confused
Re: MySQL help -
ReneG - 18.04.2012
Taken straight from the sscanf release thread.
pawn Код:
enum
E_DATA
{
E_DATE_C,
Float:E_DATA_X,
E_DATA_NAME[32],
E_DATA_Z
}
main
{
new
var[E_DATA];
sscanf("1 12.0 Bob c", "e<ifs[32]c>", var);
}
Код:
e - Start of the "enum" type
< - Starts the specification of the structure of the enum
i - An integer, corresponds with E_DATA_C
f - A float, corresponds with E_DATA_X
s[32] - A 32 cell string, corresponds with E_DATA_NAME
c - A character, corresponds with E_DATA_Z
> - End of the enum specification
Re: MySQL help -
RicaNiel - 19.04.2012
but can you explain further more about
what is it doing there
Re: MySQL help -
ReneG - 19.04.2012
I'm not sure, try looking at the enum and figure it out. I couldn't find anything about it in the release thread.
Re: MySQL help -
RicaNiel - 19.04.2012
This tut is what am i using
but i am so confused
Re: MySQL help -
SuperViper - 19.04.2012
p<|> means that it splits the data into another variable when a | is found, which is what mysql_fetch_row uses to separate columns.