26.04.2010, 23:08
So i have a register system and when a player connects it check's if the player is registered:
Today i discovered that if a player comes in with Name_Surname, name_surname, NaMe_SuRnAmE, or any other variation of this name the script still returns that he's registered.
How can i make that only if he's name is in this format: Name_Surname, the script returns that he's registered ?
Thank you.
pawn Код:
GetPlayerName(playerid, PlayerName[playerid], MAX_PLAYER_NAME);
format(string, sizeof(string), "Accounts/%s.ini",PlayerName[playerid]);
if(fexist(string))
{
PlayerRegistered[playerid] = 1;
}
How can i make that only if he's name is in this format: Name_Surname, the script returns that he's registered ?
Thank you.
![Smiley](images/smilies/smile.png)