how to?
#1

Hello, i want to know how to do this:

that password MUST have min 5 max 15 words

i tried this

Код:
new words;
		words = inputtext[15];
Than i put this:

Код:
if(words < 5 || words > 15)
		{
		  new stri[128];
		  SendClientMessage(playerid, 0xff7000ff, "[System]: Password Must Be Long Beetween 5 and 15 words!");
		  format(stri,256,"Welcome %s to Kljukec's Roleplay Server.\n\nYour name is not registered yet so please enter \nthe password in box!\n\nIMPORTANT:The password must have 5-15 words ",name);
			ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,"Register",stri,"Register","Quit");
		  return 1;
		}
but it won't work normaly

how i can make this works ?
Reply
#2

Код:
if(strlen(inputtext)...)
Reply
#3

uff can i get some more code ? becouse i was never doing on this and ty for help
Reply
#4

pawn Код:
new length = strlen(words);
if(5 > length || length > 15) {}
Reply
#5

Код:
new length = strlen(words);
error

Код:
C:\Documents and Settings\samp\Desktop\Server 2\gamemodes\Roleplay.pwn(75) : error 017: undefined symbol "words"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply
#6

... use the array, should be inputtext
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)