need to know why my server have problems
#1

hi all .
this i have a server server with only 1 GM & 5 FS .
35 players (slot)
onfoot_rate 50
incar_rate 50
weapon_rate 50
stream_distance 200.0
stream_rate 2000
when my server start ! it works perfectly for 20 min then ... the lags starts ... some players lags others don't ... some players have some troubles to join the game
well i craet this topic for all tha guys who think that they know wher tha problem came from
some says it came from tha GM other the internet speed other say the camputer performance
my internet speed upload is 2mega/s
my camputer has 3G ram
if you want more info just post what you want me to post
Reply
#2

Id guess you start saving data every 20 mins, and something is wrong with it, so it lags the server because it hangs somewhere. Maybe it is another timer-based thingy, but quite sure something with your script.
Check all timer that might be called after 20 mins.
Reply
#3

i had a timer that change the weather every 20MiN ... i just delete it !
hop that the problem is fixed thnks for your help mauzen
Reply
#4

ohhh still have the lags ... any other sugestion for me ?
when you say that i start saving data... what you mean ?
Reply
#5

Can you show us your OnPlayerUpdate code?
Reply
#6

Quote:
#include <j_fader_v2>
Quote:

public OnGameModeInit()
{
FadeInit();

return 1;
}
Quote:

public OnPlayerUpdate(playerid)
{
GetPlayerHealth(playerid,gTmp);
if(pOldHealth[playerid]>gTmp)
{
FadeColorForPlayer(playerid,139,0,0,floatround(pOl dHealth[playerid]-gTmp)*10,139,0,0,0,floatround(pOldHealth[playerid]-gTmp),0);
}
pOldHealth[playerid]=gTmp;
if(IsPlayerInAnyVehicle(playerid))
{
GetVehicleVelocity(GetPlayerVehicleID(playerid),gt emp[0],gtemp[1],gtemp[2]);
gtemp[3]=floatsqroot( floatmul(gtemp[0],gtemp[0])+floatmul(gtemp[1],gtemp[1])+floatmul(gtemp[2],gtemp[2]) )*100;
if(vSpeed[playerid]-gtemp[3]>20)FadeColorForPlayer(playerid,139,0,0,(floatroun d(vSpeed[playerid]-gtemp[3])-20)*3,139,0,0,0,floatround(vSpeed[playerid]-gtemp[3])-20,0);
vSpeed[playerid]=gtemp[3];
}
return 1;
}

i'm sur that this is not tha problem ...
Reply
#7

lol im gonna guess your home hosting
Reply
#8

Quote:
Originally Posted by Joshua_Einstein
Посмотреть сообщение
lol im gonna guess your home hosting
probably not caus as i said "it works fine for 20 min " ! & thers is no ping problem we have lot of players that has about 80 TO 120 ping ! ... so it's probably not tha home hosting
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)