06.06.2012, 15:41
Well while testing the GM i am making, i see the chat and all lags a bit. Might it be caused becayse i have many functions searching on MAX_PLAYERS and i don't have it defined to a max?
Or could it be the timers?
Every timers i have are:
Than i have some 15 or 20 functions searching on MAX_PLAYERS but are rarely called.. It's like /ask to send messages to admins, and these things.
If it was an hosted server with lot of players it would be a reason to lag, but, test server where the max that join is me and my friend when i need to test things with 2 people, it turns weird for me.
Or could it be the timers?
Every timers i have are:
pawn Код:
new TIMER_pOnlineTime[MAX_PLAYERS];
new TIMER_Fuel[MAX_PLAYERS];
new TIMER_KM[MAX_PLAYERS];
new TIMER_Oil[MAX_PLAYERS];
new TIMER_Pneus[MAX_PLAYERS];
new TIMER_UpdateCar[MAX_PLAYERS];
new TIMER_UnJail[MAX_PLAYERS];
Under OnPlayerStateChange i have this, after checking if player is inside a vehicle..
TIMER_Fuel[playerid] = SetTimerEx("CFuel", 60000, true, "i", playerid);
TIMER_KM[playerid] = SetTimerEx("CKM", 30000, true, "i", playerid);
TIMER_Oil[playerid] = SetTimerEx("COil", 30000, true, "i", playerid);
TIMER_Pneus[playerid] = SetTimerEx("CPneus", 30000, true, "i", playerid);
TIMER_UpdateCar[playerid] = SetTimerEx("UpdateCar", 500, true, "i", playerid);
If it was an hosted server with lot of players it would be a reason to lag, but, test server where the max that join is me and my friend when i need to test things with 2 people, it turns weird for me.