Problem with mysql plugin
#6

Well with Tquerries you need callbacks for your stuff.

Meaning for example
PHP Code:
new query[128];
mysql_format(mysql,query,sizeof(query),"UPDATE `something` SET `money`=%d WHERE `player`=%d",GetPlayerMoney(playerid),playerid);
mysql_tquery(mysql,query,"OnPlayerUpdateMoney","i",playerid);
forward OnPlayerUpdateMoney(playerid);
public 
OnPlayerUpdateMoney(playerid) {
    
SendClientMessage(playerid,COLOR_RED,"Your money has been updated");
    return 
1;

Reply


Messages In This Thread
Problem with mysql plugin - by holahola - 15.06.2016, 17:54
Re: Problem with mysql plugin - by F1N4L - 15.06.2016, 18:11
Re: Problem with mysql plugin - by holahola - 15.06.2016, 19:03
Re: Problem with mysql plugin - by F1N4L - 15.06.2016, 19:11
Re: Problem with mysql plugin - by holahola - 15.06.2016, 19:15
Re: Problem with mysql plugin - by TwinkiDaBoss - 15.06.2016, 20:39
Re: Problem with mysql plugin - by holahola - 16.06.2016, 10:24

Forum Jump:


Users browsing this thread: 1 Guest(s)