2024-02-28, 04:31 AM
(2023-11-16, 03:42 PM)Radical Wrote: Create an integer column named 'money' in the 'accounts' table and store the player's money on disconnect.This way is very good. But I couldn't think of this. Thanks
query:
PHP Code:UPDATE `accounts` SET `money` = %d WHERE `id` = ?
And load it when the player is logged into the account:
PHP Code:new money;
cache_get_value_int(0, "money", money);
GivePlayerMoney(playerid, money);