[HELP]Dialog Bug [+REP]
#1

I created fuel system with dialog, but there is a problem.
When I write (for example: 5) it show "You cannot refuel your vehicle"
Here's the code:
pawn Код:
if(1 < strval(inputtext) || strval(inputtext) > 100) SendClientMessage(playerid, -1, "You cannot refuel your vehicle");
else
{
SendClientMessage(playerid, 0xFFFFFFFF, "You refueled your vehicle");
...
}
Reply
#2

Try this.

pawn Код:
if(inputtext > 100 || inputtext  < 1)
Reply
#3

show your all /refuel command.
Reply
#4

Quote:
Originally Posted by Omar55555
Посмотреть сообщение
show your all /refuel command.
The problem isn't in /refuel

EDIT:
Quote:
Originally Posted by Zamora
Посмотреть сообщение
Try this.

pawn Код:
if(inputtext > 100 || inputtext  < 1)
Thanks +REP
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)