This lags .... u_u
#1

Im trying to avoid that bug from dini, which doesn't saves after use my setlevel command. So, I did that:
Code:
forward database(playerid);
Code:
public OnGameModeInit()
{
   SetTimer("database", 60000, false);
   return 1;
}
End of GM now:
Code:
public database(playerid)
{
   for(new v = 0; v < MAX_PLAYERS; ++v)
   {
	    dini_IntSet(file, "Score", GetPlayerScore(v));
        dini_IntSet(file, "Money", GetPlayerMoney(v));
        dini_IntSet(file, "level", PlayerInfo[v][Level]);
		dini_IntSet(file, "Cold", PlayerInfo[v][Cold]);
		dini_IntSet(file, "Hot", PlayerInfo[v][Hot]);
		SendClientMessageToAll(AZUL, "Database: all player stats were saved");
		printf("Database: all player stats were saved");
		SetTimer("database", 60000, true);
	}
	return 1;
}
This code is for save all players stats, like hot, cold, level, money, score, each 60sec(1min). So, anyone have a way to keep the lag away? cause it keeps saying on the server:
Code:
endClientMessageToAll(AZUL, "Database: all player stats were saved");
endClientMessageToAll(AZUL, "Database: all player stats were saved");
endClientMessageToAll(AZUL, "Database: all player stats were saved");
endClientMessageToAll(AZUL, "Database: all player stats were saved");
endClientMessageToAll(AZUL, "Database: all player stats were saved");
And on the console the printf. Ty.
Reply


Messages In This Thread
This lags .... u_u - by blackwave - 15.11.2010, 12:04
Re: This lags .... u_u - by The_Moddler - 15.11.2010, 12:10
Re: This lags .... u_u - by blackwave - 15.11.2010, 12:17
Re: This lags .... u_u - by iggy1 - 15.11.2010, 12:21
Re: This lags .... u_u - by blackwave - 15.11.2010, 12:23
Re: This lags .... u_u - by blackwave - 15.11.2010, 12:28
Re: This lags .... u_u - by Slice - 15.11.2010, 12:35
Re: This lags .... u_u - by The_Moddler - 15.11.2010, 12:58
Re: This lags .... u_u - by Slice - 15.11.2010, 13:01
Re: This lags .... u_u - by The_Moddler - 15.11.2010, 13:03

Forum Jump:


Users browsing this thread: 1 Guest(s)