15.06.2016, 20:39
Well with Tquerries you need callbacks for your stuff.
Meaning for example
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;
}