08.12.2014, 09:18
Ok guys, here is my problem, i want to save the player's data into my mysql table, i have setup the mysql database and everything, now here is my coding for the saving part(OnPlayerDisconnect)
That is my only problem for now, any help will be appreciated.
Код:
new query[128]; GetPlayerMoney(playerid, pInfo[playerid][Cash]); mysql_format(mysql,query,sizeof(query),"UPDATE `playerdata` SET `Admin`=%d, `VIP`=%d, `Cash`=%d WHERE `Username`=%s",pInfo[playerid][Admin], pInfo[playerid][VIP], pInfo[playerid][Cash], pInfo[playerid][Username]); mysql_tquery(mysql, query, "", "");