17.12.2012, 18:16
1) Is "string" large enough to hold it all?
2) Is "plname" large enough to hold the name?
3) Is your name Lenny_Kraff?
4) Are you sure there's a Lenny_Kraff.ini in the scriptfiles/accounts folder?
If all of those are right, check out:
Check your console right after to make sure string is being formed right. If it's like this:
in the print, then I've no clue!
2) Is "plname" large enough to hold the name?
3) Is your name Lenny_Kraff?
4) Are you sure there's a Lenny_Kraff.ini in the scriptfiles/accounts folder?
If all of those are right, check out:
Код:
GetPlayerName(playerid, plname, sizeof(plname)); format(string, sizeof(string), "accounts\\%s.ini", plname); print(string); //Go on with normal checks here
Код:
accounts\Lenny_Kraff.ini