operator.
#5

Quote:
Originally Posted by KessMan
Посмотреть сообщение
How can optimize?
Код HTML:
if(price < 1000 || price > 200000) return SendClientMessage(playerid, COLOR_DARKGRAY, "ERROR.");
Price < 1000: Price can be negative infinity to 999
Price > 200000: Price can be 200001 to positive infinity

Quote:
Originally Posted by KessMan
Посмотреть сообщение
Not work...
Код HTML:
if(1000 < price > 200000) return SendClientMessage(playerid, COLOR_DARKGRAY, "ERROR.");
1000 < price > 200000: Doesn't work in Pawn EDIT: I was wrong, this syntax does work! The rest of my post is still valid though. + if this syntax would work, it's not even the same as the first code
1000 < price: Price can be 1001 to positive infinity
price > 200000: Price can be 200001 to positive infinity
Reply


Messages In This Thread
operator. - by KessMan - 28.10.2016, 20:51
Re: operator. - by SickAttack - 28.10.2016, 20:53
Re: operator. - by KessMan - 28.10.2016, 21:07
Re: operator. - by SickAttack - 28.10.2016, 21:32
Re: operator. - by Freaksken - 28.10.2016, 21:32
Re: operator. - by Threshold - 29.10.2016, 03:30
Re: operator. - by Freaksken - 29.10.2016, 04:00
Re: operator. - by SickAttack - 29.10.2016, 04:08

Forum Jump:


Users browsing this thread: 1 Guest(s)