My Money doesn't save, only money from Spawn
#9

The problem is most likely that you are not updated the pCash variable when you are adding/deducting money from the player's total; you only use GetPlayerMoney/GivePlayerMoney().

However, you don't need that variable anyway. You can just use the two functions above during loading/saving. The rest of the time the amount of money they have is held by the server itself.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)