26.04.2011, 14:56
pawn Код:
while(mysql_fetch_row(result)) {
new
data[12];
sscanf(result, "p<|>dddddddddddd", data[0], data[1], data[2], data[3], data[4], data[5], data[6], data[7], data[8], data[9], data[10], data[11]);
PlayerInfo[playerid][pCash] = data[0];
PlayerInfo[playerid][pAccount] = data[1];
PlayerInfo[playerid][pAdmin] = data[2];
PlayerInfo[playerid][pLevel] = data[3];
PlayerInfo[playerid][pExp] = data[4];
PlayerInfo[playerid][gPupgrade] = data[5];
PlayerInfo[playerid][pKills] = data[6];
PlayerInfo[playerid][pGun1] = data[7];
PlayerInfo[playerid][pGun2] = data[8];
PlayerInfo[playerid][pGun3] = data[9];
PlayerInfo[playerid][pAmmo1] = data[10];
PlayerInfo[playerid][pAmmo2] = data[11];
}