19.02.2010, 17:14
Код:
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