SA-MP Forums Archive
[HELP]Dialog Bug [+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]Dialog Bug [+REP] (/showthread.php?tid=488359)



[HELP]Dialog Bug [+REP] - maxy153 - 17.01.2014

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");
...
}



Re: [HELP]Dialog Bug [+REP] - Zamora - 17.01.2014

Try this.

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



Re: [HELP]Dialog Bug [+REP] - Omar55555 - 17.01.2014

show your all /refuel command.


Re: [HELP]Dialog Bug [+REP] - maxy153 - 17.01.2014

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