Double O Files 2 - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Double O Files 2 (
/showthread.php?tid=426587)
Double O Files 2 -
yos136 - 29.03.2013
HEY GUYS...
i am using DOF2 and i got a problme...
when server hets 50-60+ somthing the stats of players get buged
when player connecting the server he takes stats of someone that at already connecting in..
for ex: player named XXX has 10 level 10? so the player now connecting suddenly get the same level :S
i dont know wh, maybe i never used DOF2_SaveFiles Fuction or something?
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....
plaese help me and thanks!
Re: Double O Files 2 -
yos136 - 29.03.2013
UP!!!!
Re: Double O Files 2 -
yos136 - 29.03.2013
WHY NO ONE HELPING ME ?
Re: Double O Files 2 -
Pottus - 29.03.2013
dini is crap, use yini.
Re: Double O Files 2 -
yos136 - 29.03.2013
ITS DOB2 ! CONVERTED TO dini!
Re: Double O Files 2 -
zxc1 - 29.03.2013
I'm not sure, but check your definition of MAX_PLAYERS. (IF you have defined it)
Re: Double O Files 2 -
yos136 - 29.03.2013
#define MAX_PLAYERS 200
Re: Double O Files 2 -
yos136 - 30.03.2013
UP!!