What's wrong with this dialog?
#3

Quote:
Originally Posted by [HiC]TheKiller
Посмотреть сообщение
pawn Код:
new value =  strval(inputtext);
if(value  > 0 || value < 80)
{
}
You where trying to compare a variable to a string as inputtext is a string.
Thankyou, it worked!

EDIT:

But I get invalid expression, assumed 0 on:
pawn Код:
else
        {
            ShowPlayerDialog(playerid, 1336, DIALOG_STYLE_INPUT, "How old are you?", "Input your age in years (18-80)", "Submit", "Cancel");
        }
      else
        {
        SendClientMessage(playerid, -1, "You have cancelled your registration.");
        Kick(playerid);
        }
The last "else".. D:
Reply


Messages In This Thread
What's wrong with this dialog? - by Jack_Leslie - 24.07.2011, 04:42
Re: What's wrong with this dialog? - by [HiC]TheKiller - 24.07.2011, 04:59
Re: What's wrong with this dialog? - by Jack_Leslie - 24.07.2011, 05:00
Re: What's wrong with this dialog? - by MoroDan - 24.07.2011, 09:36
Re: What's wrong with this dialog? - by iPLEOMAX - 24.07.2011, 11:42

Forum Jump:


Users browsing this thread: 2 Guest(s)