NOT SAVED:@:@
#3

pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
    GetPlayerName(playerid, pname, sizeof(pname));
    format(playerfile, sizeof(playerfile), "Licenses/%s.ini",pname);
    dini_IntSet(playerfile, "Car License", LicenseInfo[playerid][Car]);
    return 1;
}

public OnPlayerConnect(playerid)
{
    GetPlayerName(playerid, pname, sizeof(pname));
    format(playerfile, sizeof(playerfile), "Licenses/%s.ini",pname);
    return 1;
}

public OnPlayerRequestSpawn(playerid)
{
    GetPlayerName(playerid, pname, sizeof(pname));
    format(playerfile, sizeof(playerfile), "Licenses/%s.ini",pname);
    LicenseInfo[playerid][Car] = dini_Int(playerfile, "Car License");
    return 1;
}
Reply


Messages In This Thread
NOT SAVED:@:@ - by armando112 - 19.10.2013, 17:36
Re: NOT SAVED:@:@ - by Twizted - 19.10.2013, 18:22
Re: NOT SAVED:@:@ - by armando112 - 19.10.2013, 18:26

Forum Jump:


Users browsing this thread: 1 Guest(s)