SA-MP Forums Archive
How to check if player enters 4 digits? - 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: How to check if player enters 4 digits? (/showthread.php?tid=133425)



How to check if player enters 4 digits? - Torran - 12.03.2010

How would i check if a player entered 4 digits in the dialog?
It needs to be 4 digits, And if he dosent enter 4 digits it sends error message?
So basically i just want to know if he dosent enter 4 digits in the dialog


Re: How to check if player enters 4 digits? - ¤Adas¤ - 12.03.2010

pawn Code:
if(!IsNumeric(inputtext) || strlen(inputtext) != 4) WARNING....