How to check if player enters 4 digits?
#1

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
Reply
#2

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


Forum Jump:


Users browsing this thread: 2 Guest(s)