07.03.2017, 00:14
If you just want to give a player some money, you don't need to know the money he has upfront.
Such a query gets the specified player's money and adds the given money to it, whatever money the player already has.
You may want to use a playername instead of a UserID to reference the correct player offline:
PHP код:
UPDATE playerdata SET Money = Money + '%i' WHERE UserID = '%i'
You may want to use a playername instead of a UserID to reference the correct player offline:
PHP код:
UPDATE playerdata SET Money = Money + '%i' WHERE PlayerName = '%e'