NOT SAVED:@:@
#1

Hello! I have a car license system problem is when I go and buy the license says I bought it .... but they go out and come in again .. MUST BUY AGAIN
Reply
#2

Can you post your code here?
Reply
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)