10.09.2010, 18:03
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
*/