Strange bug. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Strange bug. (
/showthread.php?tid=144378)
Strange bug. -
Zeromanster - 26.04.2010
So i have a register system and when a player connects it check's if the player is registered:
pawn Код:
GetPlayerName(playerid, PlayerName[playerid], MAX_PLAYER_NAME);
format(string, sizeof(string), "Accounts/%s.ini",PlayerName[playerid]);
if(fexist(string))
{
PlayerRegistered[playerid] = 1;
}
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.