I've a problem to load player scriptfiles of my skill FS when restart my GM help...
#3

Quote:
Originally Posted by JFF
Посмотреть сообщение
You are not even loading the stats u only check if the player is registered if not u create him a new account
pawn Код:
public OnPlayerConnect(playerid)
{
    new pname[128];
    new file[128];
    GetPlayerName(playerid, pname, sizeof(pname));
    format(file, sizeof(file), savefolder,pname);
    if(!dini_Exists(file))
    {
        dini_Create(file);
        dini_IntSet(file, "Kills", Killz[playerid]);
        dini_IntSet(file, "Skill_Pt", Skillz_Pt[playerid]);
        dini_IntSet(file, "Skill_Weap", Skillz_Weap[playerid]);
        dini_IntSet(file, "Skill_Armo", Skillz_Armour[playerid]);
    }
    else
    {
        Killz[playerid] = dini_Int(file, "Kills");
        Skillz_Pt[playerid] = dini_Int(file, "Skill_Pt");
        Skillz_Weap[playerid] = dini_Int(file, "Skill_Weap");
        Skillz_Armour[playerid] = dini_Int(fild, "Skill_Armo");
    }
    return 1;
}
P.S Havent tested it
I've try it, but i have got the same problem
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: