MySql : saving and loading Data
#1

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)

Код:
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, "", "");
That is my only problem for now, any help will be appreciated.
Reply
#2

You datacodes add in you scripts then download player accounts save cfg then add with your Gm
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)