Money dissapearing
#1

I'm using Kush's tutorial on how to make a login/registration system with y_ini.
Sometimes (Not after every login) .. But sometimes, cash will disapear and return a player's money back to $0.

https://sampforum.blast.hk/showthread.php?tid=273088
Reply
#2

If I'm not mistaken, when you login back your money is set to $0 whereas the last time it was not $0? If that's the case, before you save your cash, make sure to use this function which get's the player cash.

pawn Код:
PlayerInfo[playerid][pCash] = GetPlayerMoney(playerid);
Put this on top of the OnPlayerDisconnect callback.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)