SA-MP Forums Archive
Save money in the bank job - 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: Save money in the bank job (/showthread.php?tid=584668)



Save money in the bank job - bimax999 - 06.08.2015

I want the money from each job to be added automatically to the bank .
How do??
Give you Rep++ for Help ME!!


Re: Save money in the bank job - cnoopers - 06.08.2015

create variable for max_players that gonna keep amount of bank money for every player and just add it there.
Код:
new bMoney[MAX_PLAYERS];



Re: Save money in the bank job - bimax999 - 06.08.2015

Quote:
Originally Posted by cnoopers
Посмотреть сообщение
create variable for max_players that gonna keep amount of bank money for every player and just add it there.
Код:
new bMoney[MAX_PLAYERS];
Where add new bMoney[MAX_PLAYERS]; ?


Re: Save money in the bank job - cnoopers - 06.08.2015

on the top of your script.
setting money:
Код:
bMoney[playerid] = AMOUNT;
if u wanna withdraw it, just check how much is in bMoney[playerid], set it to 0 and add amount to player.


Re: Save money in the bank job - bimax999 - 06.08.2015

I am sorry no have bMoney[playerid] - AMOUNT; in my script and ... no have bMoney. ..
I have pMoney, pCash ... pAccount -is for bank ..


Re: Save money in the bank job - bimax999 - 07.08.2015

Help mE!