SA-MP Forums Archive
[Help] Fix the chain please +rep - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [Help] Fix the chain please +rep (/showthread.php?tid=530147)



[Help] Fix the chain please +rep - Shura - 05.08.2014

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

Код:
 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$");



Re: [Help] Fix the chain please +rep - dirigent00 - 05.08.2014

Do you mean more than 0, less then 50 $?
Код:
if(0 < GetPlayerCash(playerid) < 50)



Respuesta: Re: [Help] Fix the chain please +rep - Shura - 05.08.2014

Quote:
Originally Posted by dirigent00
Посмотреть сообщение
Do you mean more than 0, less then 50 $?
Код:
if(0 < GetPlayerCash(playerid) < 50)
__________________________________________________ _________________________________

No, I mean you can not throw 0 and pull over $ 50, and can not pull negative money.


Re: [Help] Fix the chain please +rep - dirigent00 - 05.08.2014

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

Код:
if(0 =< GetPlayerCash(playerid) < 50)



Respuesta: Re: [Help] Fix the chain please +rep - Shura - 05.08.2014

Quote:
Originally Posted by dirigent00
Посмотреть сообщение
Still not clearly understand, not negative, not zero, and not more than 50 ? Is that what you want?

Код:
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)


Re: [Help] Fix the chain please +rep - ViniBorn - 05.08.2014

You tried this?
pawn Код:
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$");



Respuesta: Re: [Help] Fix the chain please +rep - Shura - 05.08.2014

Quote:
Originally Posted by ViniBorn
Посмотреть сообщение
You tried this?
pawn Код:
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.


Re: [Help] Fix the chain please +rep - [XST]O_x - 05.08.2014

pawn Код:
if(GetPlayerCash(playerid) < 50) return SendClientMessageEx(playerid, COLOR_WHITE, "No tenes plata en tu inventario para tirar al suelo y no puedes tirar 0$");



Respuesta: Re: [Help] Fix the chain please +rep - Shura - 05.08.2014

Quote:
Originally Posted by [XST]O_x
Посмотреть сообщение
pawn Код:
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?


Re: [Help] Fix the chain please +rep - dirigent00 - 05.08.2014

Try this:

Код:
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$");