String length
#1

I want to put 20 characters limit at passwords ... what is right code ?
Reply
#2

Use strlen.
Reply
#3

You use dialog?
Reply
#4

If you use dialogs, you can use this OnDialogResponse.

Код:
if( strlen( inputtext ) > 20 ) return SendClientMessage( playerid, 0xFFFFFFFF, "Your password is too long." );
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)