Posts: 26
Threads: 5
Joined: May 2010
Reputation:
0
Okay, I have a paycheck system right now. I get way to much though! I got 12,000 last paycheck! I need it to be like 1,200 because this is a roleplay server
Is there a way I can set the paycheck price per job? l
Like
Un-Employment: 250
Taxi: 500
etc
Posts: 482
Threads: 3
Joined: Dec 2009
Reputation:
0
Yes!
new CurrentJob[MAX_PLAYERS][10]; // Change this to how many job is
if(CurrentJob[playerid]==1) GivePlayerMoney(playerid, 250); // Unemployment
if(CurrentJob[playerid]==2) GivePlayerMoney(playerid, 500); // Taxi
Hope this helped
Posts: 26
Threads: 5
Joined: May 2010
Reputation:
0
K thank you, sorry for so many questions
Posts: 482
Threads: 3
Joined: Dec 2009
Reputation:
0
Np Mate Enjoy Your Roleplay Server
Posts: 440
Threads: 14
Joined: Sep 2009
Reputation:
0
remove 'new CurrentJob[MAX_PLAYERS][23];' from the public declare, place it at the top with all your includes and defines.
Posts: 482
Threads: 3
Joined: Dec 2009
Reputation:
0
Yes sorry forgot to mention that yes if you remove new CurrentJob[MAX_PLAYERS][23]; and put it on top under "#include <a_samp>" and then your pawno compile should work
Posts: 26
Threads: 5
Joined: May 2010
Reputation:
0
I dont get an error, the pawno comiler just crashes when i run it now
Posts: 482
Threads: 3
Joined: Dec 2009
Reputation:
0
hmmmmm
Delete the line then see what u get
Posts: 1,594
Threads: 61
Joined: Oct 2009
Reputation:
0
Made anywhere a { or } too much, or too less?
Maybe you can post lines 10832 - 10944...
Posts: 1,150
Threads: 16
Joined: Oct 2009
Reputation:
0
Local variable "string" shadows a variable at a preceding level.mmm
Try renaming the string to anything else. If that doesn't work, you have declared "new string" two or more times in the same function.