15.04.2015, 09:37
well,here is my code for saving under onplayerdisconnect:
it prints but not save to database,when i login it loads and when i register it types and..but when i disconnect it doesnt save
pawn Код:
new query[128];
mysql_format(mysql, query, sizeof(query), "UPDATE `accounts` SET `AdminLevel`=%d WHERE `Name`=%e",\
pInfo[playerid][AdminLevel], pInfo[playerid][Name]);
mysql_tquery(mysql, query, "", "");
printf("saved id %d", playerid);