a little question
#3

Use this:

pawn Код:
if(strlen(nameofvariable) < 1 || strlen(nameofvariable) > 24) return SendClientMessage(playerid, color, "Type your message to send here if he put less than 1 character or more than 24, which is the max_player_name");
It'll check if the length of the string, i.e. stringlength is between 1 and 24, if not, then it will return that message.
Reply


Messages In This Thread
[SOLVED] string/variable lenght - by flrp - 15.10.2013, 19:18
Re: a little question - by Classical - 15.10.2013, 19:18
Re: a little question - by DanishHaq - 15.10.2013, 19:25
Re: a little question - by flrp - 15.10.2013, 19:33

Forum Jump:


Users browsing this thread: 2 Guest(s)