Name_Surname ?
#5

I just found this

new plname[MAX_PLAYER_NAME];
GetPlayerName(playerid, plname, sizeof(plname));
new namestring = strfind(plname, "_", true);
if(namestring == -1)
{
SendClientMessage(playerid, COLOR_RED, "Your name must be in the format Firstname_Lastname.");
Kick(playerid);
return 1;
}


But this kick me when my name is NameSurname or Namexxxxx but not kick me when my name is name_surname

I want only players with Name_Surname join my server !
not name_surname or Name_surname Name_surname !

please !
Reply


Messages In This Thread
Name_Surname ? - by ExEx - 25.10.2010, 18:42
Re: Name_Surname ? - by introzen - 25.10.2010, 18:56
Re: Name_Surname ? - by ExEx - 25.10.2010, 20:04
Re: Name_Surname ? - by Zezombia - 25.10.2010, 20:09
Re: Name_Surname ? - by ExEx - 25.10.2010, 20:22
Re: Name_Surname ? - by Scripter123 - 25.10.2010, 20:22
Re: Name_Surname ? - by Jefff - 25.10.2010, 20:30
Re: Name_Surname ? - by ExEx - 25.10.2010, 20:36
Re: Name_Surname ? - by Zezombia - 25.10.2010, 20:52
Re: Name_Surname ? - by randomkid88 - 25.10.2010, 21:05

Forum Jump:


Users browsing this thread: 1 Guest(s)