Posts: 6,242
Threads: 8
Joined: Jun 2008
What are you doing?
Код:
GivePlayerMoney(randomNumbers[0] > randomNumbers[1] ? inviter : playerid, amount);
GivePlayerMoney(randomNumbers[0] > randomNumbers[1] ? playerid : inviter, -amount);
This seems advanced, yet for what?
What I'm saying is, why so complicated for such a simple task? It looks like you should redo the entire bottom of this script (From the else down first off, but could extend to the rest of the script needing to be redone somehow)
Posts: 6,242
Threads: 8
Joined: Jun 2008
I asked the OP to explain so he could be more clear in what he's aiming for, as that alone is quite often a good path towards debugging.
You know, when you run it through yourself when someone asks about it and you go "Oh damn, what the heck was I thinking?!"
I was also hinting at the old "Keep it simple stupid" technique. Making things overly complicated can bite you on the ass at times.
Posts: 40
Threads: 25
Joined: Jan 2017
Reputation:
0
Can someone fixed this to me please!
Posts: 6,242
Threads: 8
Joined: Jun 2008
That's not what this is for... We don't fix things for you, you can learn to do it...
How did you make the code in the first place?
Posts: 40
Threads: 25
Joined: Jan 2017
Reputation:
0
nah i just get that script
Posts: 6,242
Threads: 8
Joined: Jun 2008
Should almost learn to make a new one. Main things to take note of would be where it does do the randomizing and the commands and messages for the script itself.