19.10.2013, 17:36
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
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;
}