Posts: 675
Threads: 160
Joined: Mar 2015
Reputation:
0
PlayerInfo[playerid][Money] ++ 300
I want to make a simple script
Player enters in checkpoint with 0$ (ex)
Players enters in second checkpoint with 300$.
If player has less than 300$ gained before entering in the second checkpoint, will get message "Failed".
How can I detect that?
Posts: 675
Threads: 160
Joined: Mar 2015
Reputation:
0
No, I want to check this.
If player enter"s in checkpoint (I will create the checkpoint cases) his PlayerInfo[playerid][Money] row will be saved.
and if he enters in the second checkpoint, and his PlayerInfo[playerid][Money] row is not increased with 300$, clientmessage will appear.
ex.
I have 1500$ and I enter in second CP with 1799$, clientmessage will appear.
I have 1500$ and I enter in second CP with 1800$, clientmessage WILL NOT appear.
Posts: 543
Threads: 4
Joined: Jul 2015
Reputation:
0
Well... The code yeah why? It shouldn't give you any warnings/errors.
Tell me what you're trying to do concretely with zombies etcetera.
Posts: 543
Threads: 4
Joined: Jul 2015
Reputation:
0
Show those errors? Makes no sense..
Posts: 543
Threads: 4
Joined: Jul 2015
Reputation:
0
Make it global. (By the way I see nothing related to YSI's Library)