How to set player money in MYSQL
#2

it's get, not set.
you have to use UPDATE function from MySQL

for example: (with MySQL R39)
PHP код:
new sqlquery[512],name[28];
GetPlayerName(playerid,name,28);
mysql_format(handle,sqlquery,512,"UPDATE `account` SET `Money` = '%d' WHERE `Name` = '%s'",GetPlayerMoney(playerid),name);
mysql_query(handle,query); 
Reply


Messages In This Thread
How to set player money in MYSQL - by Zeus666 - 13.04.2018, 20:54
Re: How to set player money in MYSQL - by Mugala - 13.04.2018, 21:02
Re: How to set player money in MYSQL - by Zeus666 - 13.04.2018, 21:03
Re: How to set player money in MYSQL - by Mugala - 13.04.2018, 21:04
Re: How to set player money in MYSQL - by Zeus666 - 13.04.2018, 21:06
Re: How to set player money in MYSQL - by Mugala - 13.04.2018, 21:07
Re: How to set player money in MYSQL - by Zeus666 - 13.04.2018, 21:10
Re: How to set player money in MYSQL - by Mugala - 13.04.2018, 21:12
Re: How to set player money in MYSQL - by Zeus666 - 13.04.2018, 21:15
Re: How to set player money in MYSQL - by Mugala - 13.04.2018, 21:17

Forum Jump:


Users browsing this thread: 1 Guest(s)