MySQL Explode Reader
#3

I'd recommend using sscanf2 for this. It has the ability to assign values to the elements in an enum straight away.

pawn Код:
new
    Data[512]; // Long rows need a lot of storage, so make sure your array is big enough.

mysql_fetch_row_format(Data, "|");
sscanf(Data, "e<p<|>s[24]s[64]ii>", PlayerInfo[playerid]);

/*
e = start enum
p = specify the delimiter ( "|" )
s = defines string (username, pass)
i = defines integer. (player level, admin level, money, etc)

Read sscanf thread for more info
*/
Reply


Messages In This Thread
MySQL Explode Reader - by vection - 10.09.2010, 12:29
Re: MySQL Explode Reader - by vection - 10.09.2010, 17:24
Re: MySQL Explode Reader - by Vince - 10.09.2010, 18:03
Re: MySQL Explode Reader - by vection - 10.09.2010, 20:26
Re: MySQL Explode Reader - by vection - 11.09.2010, 07:54
Re: MySQL Explode Reader - by vection - 11.09.2010, 15:21

Forum Jump:


Users browsing this thread: 1 Guest(s)