Forum
Search
Members
Help
Hello There, Guest!
Login
Username:
Password:
Lost Password?
Remember me
SA-MP Forums Archive
SA-MP Scripting and Plugins
Scripting Help
Threaded Mode
Save money in the bank job
bimax999
Big Clucker
Posts: 67
Threads: 17
Joined: Jan 2015
Reputation:
0
#1
06.08.2015, 22:15
I want the money from each job to be added automatically to the bank .
How do??
Give you Rep++ for Help ME!!
Find
Reply
cnoopers
Huge Clucker
Posts: 426
Threads: 128
Joined: Aug 2013
Reputation:
0
#2
06.08.2015, 22:17
create variable for max_players that gonna keep amount of bank money for every player and just add it there.
Код:
new bMoney[MAX_PLAYERS];
Find
Reply
bimax999
Big Clucker
Posts: 67
Threads: 17
Joined: Jan 2015
Reputation:
0
#3
06.08.2015, 22:21
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]; ?
Find
Reply
cnoopers
Huge Clucker
Posts: 426
Threads: 128
Joined: Aug 2013
Reputation:
0
#4
06.08.2015, 22:32
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.
Find
Reply
bimax999
Big Clucker
Posts: 67
Threads: 17
Joined: Jan 2015
Reputation:
0
#5
06.08.2015, 22:38
I am sorry no have bMoney[playerid] - AMOUNT; in my script and ... no have bMoney. ..
I have pMoney, pCash ... pAccount -is for bank ..
Find
Reply
bimax999
Big Clucker
Posts: 67
Threads: 17
Joined: Jan 2015
Reputation:
0
#6
07.08.2015, 09:21
Help mE!
Find
Reply
«
Next Oldest
|
Next Newest
»
View a Printable Version
Forum Jump:
Private Messages
User Control Panel
Who's Online
Search
Forum Home
SA-MP
-- News and Updates
-- General
-- Client Support
-- Bug Reports
-- Screenshots and Videos
SA-MP Server
-- Server Support
-- Server Advertisements
SA-MP Scripting and Plugins
-- Scripting Help
---- Tutorials
---- Discussion
---- Help Archive
-- Gamemode Scripts
-- Filterscripts
---- Includes
---- Tools and Files
---- Maps
-- Plugin Development
SA-MP DL Edition
-- SA-MP 0.3.DL
---- Model Releases
Other
-- Everything and Nothing
Non-English
-- Languages
---- Nederlands/Dutch
------ Scripting Showroom en Discussie
------ Off topic
---- Español/Spanish
------ Lanzamientos/Releases
---- Français/French
------ Showroom
---- Русский/Russian
------ Релизы/Releases
---- Português/Portuguese
------ Lançamentos/Releases
---- Română/Romanian
------ Salonul Scripturilor
---- Archive
Users browsing this thread: 1 Guest(s)
SA-MP Forums Archive
SA-MP Scripting and Plugins
Scripting Help