Checking inputtext
#1

For my age input at the register, how do I check if they entered over 18 and younger than 90?
Reply
#2

here how it is on my server

Код:
      if(strval(inputtext) <= 16)
      {
      	SendClientMessage(playerid, COLOR_WHITE, "SERVER: This is a 17+ Only Server, Grow up and Come Back.");
      	Kick(playerid);
      	return 1;
      }
      if(strval(inputtext) >= 100)
      {
        SendClientMessage(playerid, COLOR_WHITE, "SERVER: Incorrect Age, You need to enter a Real Age.");
        ShowAgeDialog(playerid,DAGE);
        return 1;
Reply
#3

Thanks
Reply
#4

no problem man
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)