30.05.2014, 12:41
Hello, if a player register with the name for example "Dymbesh" all works but another player can register with the name "dymbesh". How to fix that, and what should i post that you can fix it?
//When a player registers:
ConvertStringToLowercase(GetName(playerid), filename); //There are 2 made up functions, that you can create appropriately.
new INI:playerfile = INI_Open(filename); //'filename' would be the path of the user file.
//This creates the player's file with all lowercase letters. I used y_ini as a simple example.
//When a player logs in:
ConvertStringToLowercase(GetName(playerid), filetoload);
INI_ParseFile(filetoload, "LoadUser_%s", ...);
//Load user's file, etc.