06.03.2017, 10:00
Yeah, like the title. I don't know how to get the player money from SQL so that I can give the player money offline.
SELECT money FROM players WHERE id=%i
UPDATE playerdata SET Money = Money + '%i' WHERE UserID = '%i'
UPDATE playerdata SET Money = Money + '%i' WHERE PlayerName = '%e'
If you just want to give a player some money, you don't need to know the money he has upfront.
PHP код:
You may want to use a playername instead of a UserID to reference the correct player offline: PHP код:
|