Register Problem
#4

Lol, just ignore him. What you can do, is when a player registers, convert their entire name to lowercase letters. I believe there is a function 'StrToLower' bouncing around on SA-MP forums somewhere. Then this way, when a player tries to join as ThresHOLd, the file 'threshold' is loaded. If someone tries to join as thresHOLD, then 'threshold' is still loaded, meaning you cannot have multiple occurrences of a player's name.

Example:
pawn Код:
//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.
EDIT: If this really does confuse you, feel free to send me a PM and I can alter your script for you.
Reply


Messages In This Thread
Register Problem - by Blackazur - 30.05.2014, 12:41
Re: Register Problem - by R0 - 30.05.2014, 12:44
AW: Register Problem - by Blackazur - 30.05.2014, 12:47
Re: Register Problem - by Threshold - 30.05.2014, 15:39

Forum Jump:


Users browsing this thread: 2 Guest(s)