[Help]Accounts Name .ini reading
#1

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
Reply
#2

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 !
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)