Money dissapearing - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Money dissapearing (
/showthread.php?tid=414338)
Money dissapearing -
Noles2197 - 09.02.2013
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
Re: Money dissapearing - T0pAz - 09.02.2013
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.