SA-MP Forums Archive
Checking inputtext - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Checking inputtext (/showthread.php?tid=156525)



Checking inputtext - Antonio [G-RP] - 23.06.2010

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


Re: Checking inputtext - gtapolicemods - 23.06.2010

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;



Re: Checking inputtext - Antonio [G-RP] - 23.06.2010

Thanks


Re: Checking inputtext - gtapolicemods - 23.06.2010

no problem man