[Help] Fix the chain please +rep
#1

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$");
Reply
#2

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

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.
Reply
#4

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

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

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)
Reply
#6

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$");
Reply
#7

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.
Reply
#8

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$");
Reply
#9

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?
Reply
#10

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$");
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)