mysql saving bug
#1

well,here is my code for saving under onplayerdisconnect:
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);
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
Reply


Messages In This Thread
mysql saving bug - by iBots - 15.04.2015, 09:37
Re: mysql saving bug - by iBots - 15.04.2015, 09:44
Re: mysql saving bug - by zT KiNgKoNg - 15.04.2015, 09:55
Re: mysql saving bug - by Konstantinos - 15.04.2015, 09:58
Re: mysql saving bug - by iBots - 15.04.2015, 10:02

Forum Jump:


Users browsing this thread: 2 Guest(s)