Double O Files 2 load files problme
#1

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?

plaese help me and thanks!
Reply
#2

HELP!!! 35 VIEWS AND NO HELP? :S
Reply
#3

Code.

Or noone will help you.
Reply
#4

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....
Reply
#5

Then CHANGE TO MYSQL or YINI They are easier and faster to save/load.
Reply
#6

NO.... YINI its little slow then DOF2
i dont know...
Reply
#7

SORRY DOUBLING BUT I NEED HELP!!!!!!!!
Reply
#8

UP! sorry for that but i must!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)