Mysql Help - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Mysql Help (
/showthread.php?tid=485705)
Mysql Help -
ZBits - 05.01.2014
Fixed
Re: Mysql Help -
mxstr - 05.01.2014
PHP код:
new query[500];
format(query, 500, "UPDATE `playerdata` SET `bankbalance` = '%i' WHERE `id` = '%d' LIMIT 1", gPlayerData[playerid][P_BANK_MONEY] + strval(inputtext), pInfo[playerid][ID]);
mysql_query(query);
Easier do it when player disconnect, than each time to update the data in table?
Re: Mysql Help -
ZBits - 05.01.2014
It does it on disconnect too, but recently i've seen 12 people hacking money and putting it in there bank accounts and all i can do remove there in-hand cash, so thats why, suppose a person deposits and at that moment i would like to remove it from his account i could do it.
Re: Mysql Help -
ZBits - 06.01.2014
Bump!
Re: Mysql Help -
ZBits - 06.01.2014
Still need help.