10.08.2010, 04:38
Everything is fine, except the last 3...
Info[10] and Info[11] Are the only ones giving problems, I already debugged in mysql, And its getting the correct INT's, but sscanf is the only thing giving troubles.. Everything else works though! except the last 3 things!
pawn Код:
new row[500];
mysql_fetch_row(row);
new Info[13], Info2[8][100];
sscanf(row, "p<|>ds[100]s[100]ddddddds[100]dds[100]ds[100]ddd", Info[0],
Info2[0], Info2[1], Info[1], Info[2], Info[3], Info[4], Info[5], Info[6], Info[7],
Info2[2], Info2[3], Info2[4], Info2[5], Info[8], Info2[6], Info[9], Info[10], Info[11], Info[12]);
SetPVarInt(playerid, "adminlvl", Info[2]);
SetPlayerScore(playerid, Info[7]); //Works
ResetPlayerSP(playerid);
ResetPlayerEXP(playerid);
GivePlayerEXP(playerid, Info[11]); //No worky
GivePlayerSP(playerid, Info[6]); //Works
SetPlayerScore(playerid, Info[6]); //Works
SetPlayerSkin(playerid, Info[10]); //No worky.
GivePlayerMoney(playerid, Info[6]); //Works