SA-MP Forums Archive
[Help]Accounts Name .ini reading - 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: [Help]Accounts Name .ini reading (/showthread.php?tid=201801)



[Help]Accounts Name .ini reading - Rainbow_Six - 22.12.2010

I want to make the accounts reading as in the example:

I have the name RainbowSix, the account will be RainbowSix.ini
But how can I make if my name is RainbowSix and the account is rainbowsix.ini without the upcase letters?
If the account in the scriptfiles folder is rainbowsix.ini and my name is RainbowSix, when I connect the server does not read my account cause its not with upcase letters.

The code from the login:
pawn Code:
new tmp2[256];
    new string2[64];
    new playername2[MAX_PLAYER_NAME];
    GetPlayerName(playerid, playername2, sizeof(playername2));
    format(string2, sizeof(string2), "%s.ini", playername2);
    new File: UserFile = fopen(string2, io_read);
The ideea: Make the OnPlayerLogin read my name RainbowSix with the rainbowsix.ini

My english is not that good, sorry if you dont understand


Re: [Help]Accounts Name .ini reading - Rainbow_Six - 22.12.2010

Or how to make the server read the player name without the upcase letters? To match the .ini ?

Sorry for double post but I need help fast !