2 basic pawn questions.
#2

Код:
CheckName(const str[],firstname = 4,lastname = 4) 
{
	new pos = strfind(str, "_", true);
	return (pos!=-1 && pos >=firstname && strlen(str[pos+1]) >= lastname);
}
Код:
if(CheckName("Player_Name")) // Returns True cause the Name Contains at First more than 4 Chars and the lastname 4
Код:
if(CheckName("Player_Name",4,4)) // with ur own Limit
Reply


Messages In This Thread
2 basic pawn questions. - by Landon - 19.02.2010, 17:02
Re: 2 basic pawn questions. - by BlackFoX - 19.02.2010, 17:14
Re: 2 basic pawn questions. - by Correlli - 19.02.2010, 17:16
Re: 2 basic pawn questions. - by Landon - 19.02.2010, 17:52

Forum Jump:


Users browsing this thread: 1 Guest(s)