Dialog Problems
#5

And... you can check that it's numeric in the response call back to save any problems

pawn Код:
if(!IsNumeric(inputtext)) return SendClientMessage(playerid,COLOR_RED,"You must write numbers. Not letters");

pawn Код:
stock IsNumeric(const string[])
{
  for (new i = 0, j = strlen(string); i < j; i++)
  {
    if (string[i] > '9' || string[i] < '0')
    {
      return 0;
    }
  }
  return 1;
}
Reply


Messages In This Thread
Dialog Problems - by Master_FM - 28.10.2009, 15:38
Re: Dialog Problems - by MenaceX^ - 28.10.2009, 15:44
Re: Dialog Problems - by LordShigi - 28.10.2009, 16:17
Re: Dialog Problems - by Streetplaya - 28.10.2009, 16:23
Re: Dialog Problems - by BMUK - 28.10.2009, 16:33

Forum Jump:


Users browsing this thread: 2 Guest(s)