Weapon Saving Problem
#2

Not sure if this is right-.. playerids do change, depending on the IP, it should be the player's name, not ID.
pawn Код:
INI_ParseFile(WepPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
New:
pawn Код:
stock PlayerName(playerid)
{
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, MAX_PLAYER_NAME);
    return name;
}
pawn Код:
INI_ParseFile(WepPath(playerid), "LoadUser_%s", .bExtra = true, .extra = PlayerName(playerid));
Try it and lemme know how it goes.
Reply


Messages In This Thread
Weapon Saving Problem - by gtasarules14 - 24.07.2014, 05:04
Re: Weapon Saving Problem - by nmader - 24.07.2014, 05:55
Re: Weapon Saving Problem - by gtasarules14 - 24.07.2014, 06:05
Re: Weapon Saving Problem - by nmader - 24.07.2014, 06:07
Re: Weapon Saving Problem - by gtasarules14 - 24.07.2014, 06:09
Re: Weapon Saving Problem - by nmader - 24.07.2014, 06:18
Re: Weapon Saving Problem - by gtasarules14 - 24.07.2014, 06:25
Re: Weapon Saving Problem - by iFarbod - 24.07.2014, 06:34

Forum Jump:


Users browsing this thread: 1 Guest(s)