On Dialog Box..
#1

How do I make sure a password is less that 10 letters?

Код:
if(inputtext > 10)
{
SendClientMessage(playerid, COLOR_RED, "That password is too long! (less than 10)");
return 1;
}
??
Reply
#2

if(inputtext > 10)
{
SendClientMessage(playerid, COLOR_RED, "That password is too long! (less than 10)");
return 1;
}

inputtext > 9 i think, 10 would make so 11 and up would say that
Reply
#3

it would be

pawn Код:
> 9
Reply
#4

Quote:
Originally Posted by Steven82
it would be

pawn Код:
> 9
Quote:
Originally Posted by Anthony_Brassi
if(inputtext > 10)
{
SendClientMessage(playerid, COLOR_RED, "That password is too long! (less than 10)");
return 1;
}

inputtext > 9 i think, 10 would make so 11 and up would say that
pretty sure thats what i just said
Reply
#5

pawn Код:
if(strlen(inputtext) >= 10)
{
  // your code.
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)