SA-MP Forums Archive
Problem with Money - 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: Problem with Money (/showthread.php?tid=452718)



Problem with Money - JayceonTaylor - 22.07.2013

When i get my payday.Money doesnt save. Only from Payday. When can be a problem ? That's my code :

pawn Код:
if (IsPlayerConnected(i))
            {
                format(string, sizeof(string), "Вие получихте 1 XP и 1000$ от Pay Day.");
                SendClientMessage(i,COLOR_ORANGE, string);
                GameTextForPlayer(i,"~g~PAYDAY",5000,6);
                PlayerInfo[i][Exp] += 1;
                GivePlayerMoney(i, 1000);
                PlayerInfo[playerid][pCash] += 1000;
                PlayerPlayMusic(playerid);
                }



Re : Problem with Money - JayceonTaylor - 22.07.2013

Please help me


Re: Problem with Money - Remba031 - 22.07.2013

Try this:
Код:
PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]+1000;