05.03.2011, 18:35
hello guys, I have this code. but I don't know sscanf and I want to other type.
but I want:
so I want to read one,one not all.
pawn Код:
stock LoadPlayerInfo(iPlayer)
{
new
Query[700];
if(mysql_fetch_row(Query))
{
sscanf(Query, "e<p<|>s[24]s[35]ddddfffd>", PVar[iPlayer]);
mysql_free_result();
}
return 1;
}
pawn Код:
enum _PSTATS
{
pLayaName[24],
pPassword[35],
pKills,
pDeaths,
pMoney,
pLevel,
Float:pLastX,
Float:pLastY,
Float:pLastZ,
pInt // Add more info
}
new PVar[MAX_PLAYERS][_PSTATS];
but I want:
pawn Код:
stock LoadPlayerInfo(iPlayer)
{
new
Query[700];
if(mysql_fetch_row(Query))
{
//example
pKills[iPlayer] = xxx[1] ?
mysql_free_result();
}
return 1;
}