Code:
stock LoadPlayerFiles(playerid)
{
HaveSurf{playerid} = dini_Int(GetPlayerFiles(playerid),"Surf");
UserFiles[playerid][PlayerLevel] = dini_Int(GetPlayerFiles(playerid),"Level");
UserFiles[playerid][PlayerKills] = dini_Int(GetPlayerFiles(playerid),"Kills");
UserFiles[playerid][PlayerClanLevel] = dini_Int(GetPlayerFiles(playerid),"ClanLevel");
AdminCheck{playerid} = dini_Int(GetPlayerFiles(playerid),"AdminLevel1");
UserFiles[playerid][Helper] = dini_Int(GetPlayerFiles(playerid),"Helper");
UserFiles[playerid][Stater] = dini_Int(GetPlayerFiles(playerid),"Stater");
Sawner{playerid} = dini_Int(GetPlayerFiles(playerid),"Sawner");
UserFiles[playerid][Manage] = dini_Int(GetPlayerFiles(playerid),"Manage");
Missle{player`d%Д = dini_Int(file2,"Missle");
// ITS continue but it the save like above....
}
Thats When Upload Files
Code:
if(Magic{playerid})dini_IntSet(file2,"Magic",MagicTime);
if(CheckPlayerCC{playerid} != PlayerClanCOM[playerid])dini_IntSet(file2,"Com",PlayerClanCOM[playerid]);
if(CheckSawner{playerid} != Sawner{playerid})dini_IntSet(file2,"Sawner",Sawner{playerid});
if(CheckBanK[playerid] != UserFiles[playerid][BanK])dini_IntSet(file2,"Bank",UserFiles[playerid][BanK]);
if(CheckLevel{playerid} != UserFiles[playerid][PlayerLevel])dini_IntSet(file2,"Level",UserFiles[playerid][PlayerLevel]);
if(CheckLevel{playerid} != UserFiles[playerid][Stater])dini_IntSet(file2,"Stater",UserFiles[playerid][Stater]);
if(CheckLevel{playerid} != UserFiles[playerid][Manage])dini_IntSet(file2,"Manage",UserFiles[playerid][Manage]);
if(CheckVehicleDay[playerid] != VehicleDay[playerid])dini_IntSet(file2,"CarDone",VehicleDay[playerid]);
if(VehicleOnce[playerid])dini_IntSet(file2,"CarModel",VehicleOnce[playerid]);
if(Missle{playerid})dini_IntSet(file2,"Missle",Missle{playerid});
if(MissleAmmo{playerid})dini_IntSet(file2,"MissleAmmo",MissleAmmo{playerid});
if(Bubble{playerid})dini_IntSet(file2,"Bubble",Bubble{playerid});
if(CheckHelper{playerid} != UserFiles[playerid][Helper])dini_IntSet(file2,"Helper",UserFiles[playerid][Helper]);
if(CheckKills[playerid] != UserFiles[playerid][PlayerKills])dini_IntSet(file2,"Kills",UserFiles[playerid][PlayerKills]);
//continued.....
}
Saving Files
below 50 players the files are ok.
but over 55+ players gets someone else stats....