29.03.2013, 14:44
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?
Thats When Upload Files
Saving Files
below 50 players the files are ok.
but over 55+ players gets someone else stats....
plaese help me and thanks!
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.... }
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..... }
below 50 players the files are ok.
but over 55+ players gets someone else stats....
plaese help me and thanks!