SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 05/08/2014, 06:44 PM   #1
Shura
Huge Clucker
 
Shura's Avatar
 
Join Date: Feb 2013
Posts: 300
Reputation: 10
Question [Help] Fix the chain please +rep

How can I fix this.? I want you can not throw down $ 0 nor a negative way - and not less than $ 50 more that is more than 50 dollars

Code:
 if(GetPlayerCash(playerid) <= 0) || (GetPlayerCash(playerid) == 0) return SendClientMessageEx(playerid, COLOR_WHITE, "No tenes plata en tu inventario para tirar al suelo y no puedes tirar 0$");
Shura is offline   Reply With Quote
Old 05/08/2014, 06:59 PM   #2
dirigent00
Big Clucker
 
Join Date: Jul 2014
Posts: 72
Reputation: 1
Default Re: [Help] Fix the chain please +rep

Do you mean more than 0, less then 50 $?
Code:
if(0 < GetPlayerCash(playerid) < 50)
dirigent00 is offline   Reply With Quote
Old 05/08/2014, 07:12 PM   #3
Shura
Huge Clucker
 
Shura's Avatar
 
Join Date: Feb 2013
Posts: 300
Reputation: 10
Question Respuesta: Re: [Help] Fix the chain please +rep

Quote:
Originally Posted by dirigent00 View Post
Do you mean more than 0, less then 50 $?
Code:
if(0 < GetPlayerCash(playerid) < 50)
__________________________________________________ _________________________________

No, I mean you can not throw 0 and pull over $ 50, and can not pull negative money.
Shura is offline   Reply With Quote
Old 05/08/2014, 07:20 PM   #4
dirigent00
Big Clucker
 
Join Date: Jul 2014
Posts: 72
Reputation: 1
Default Re: [Help] Fix the chain please +rep

Still not clearly understand, not negative, not zero, and not more than 50 ? Is that what you want?

Code:
if(0 =< GetPlayerCash(playerid) < 50)
dirigent00 is offline   Reply With Quote
Old 05/08/2014, 07:23 PM   #5
Shura
Huge Clucker
 
Shura's Avatar
 
Join Date: Feb 2013
Posts: 300
Reputation: 10
Default Respuesta: Re: [Help] Fix the chain please +rep

Quote:
Originally Posted by dirigent00 View Post
Still not clearly understand, not negative, not zero, and not more than 50 ? Is that what you want?

Code:
if(0 =< GetPlayerCash(playerid) < 50)
_________________

- Have to hand over $ 50 to pull
- Do not throw $ 0
- Do not pull negative money ($ -1,000,000) (Example)
Shura is offline   Reply With Quote
Old 05/08/2014, 07:34 PM   #6
ViniBorn
Godfather
 
ViniBorn's Avatar
 
Join Date: Aug 2010
Location: Brasília
Posts: 5,313
Reputation: 720
Default Re: [Help] Fix the chain please +rep

You tried this?
pawn Code:
if(GetPlayerCash(playerid) < 1 || GetPlayerCash(playerid) > 50) return SendClientMessageEx(playerid, COLOR_WHITE, "No tenes plata en tu inventario para tirar al suelo y no puedes tirar 0$");
__________________



CONTATO: F A C E B O O K: @vinibornpawn

ViniBorn is offline   Reply With Quote
Old 05/08/2014, 07:51 PM   #7
Shura
Huge Clucker
 
Shura's Avatar
 
Join Date: Feb 2013
Posts: 300
Reputation: 10
Question Respuesta: Re: [Help] Fix the chain please +rep

Quote:
Originally Posted by ViniBorn View Post
You tried this?
pawn Code:
if(GetPlayerCash(playerid) < 1 || GetPlayerCash(playerid) > 50) return SendClientMessageEx(playerid, COLOR_WHITE, "No tenes plata en tu inventario para tirar al suelo y no puedes tirar 0$");
----------------------------------------------------------------------------------------------------------

The code has no errors, but they still will not let me throw any money.

The system must:

- Pull over $ 50 to the ground
- Do not throw money negative (-1000) Example
- Do not throw money if you do not have.
Shura is offline   Reply With Quote
Old 05/08/2014, 07:57 PM   #8
[XST]O_x
High-roller
 
[XST]O_x's Avatar
 
Join Date: Aug 2009
Posts: 1,960
Reputation: 94
Default Re: [Help] Fix the chain please +rep

pawn Code:
if(GetPlayerCash(playerid) < 50) return SendClientMessageEx(playerid, COLOR_WHITE, "No tenes plata en tu inventario para tirar al suelo y no puedes tirar 0$");
[XST]O_x is offline   Reply With Quote
Old 05/08/2014, 08:07 PM   #9
Shura
Huge Clucker
 
Shura's Avatar
 
Join Date: Feb 2013
Posts: 300
Reputation: 10
Question Respuesta: Re: [Help] Fix the chain please +rep

Quote:
Originally Posted by [XST]O_x View Post
pawn Code:
if(GetPlayerCash(playerid) < 50) return SendClientMessageEx(playerid, COLOR_WHITE, "No tenes plata en tu inventario para tirar al suelo y no puedes tirar 0$");
-------------------------------

Thanks served me but still I can keep throwing money negative (- $ 10,000) and give me the money, and I can fix this?
Shura is offline   Reply With Quote
Old 05/08/2014, 08:27 PM   #10
dirigent00
Big Clucker
 
Join Date: Jul 2014
Posts: 72
Reputation: 1
Default Re: [Help] Fix the chain please +rep

Try this:

Code:
if((0 < GetPlayerCash(playerid) < 50) && (GetPlayerCash(playerid) != 0)) return SendClientMessageEx(playerid, COLOR_WHITE, "No tenes plata en tu inventario para tirar al suelo y no puedes tirar 0$");
dirigent00 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
having warning trouble with a command chain [FIXED] [LCG]TANKER Help Archive 2 23/04/2009 11:47 PM


All times are GMT. The time now is 01:46 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.