SA-MP Forums Archive
Question [rep+] - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Question [rep+] (/showthread.php?tid=507637)



Question [rep+] - SPA - 18.04.2014

Hi,
Iv server with 150 players , there are no lags , but its start lag when u be in place which have many players about 5 players or much its keep lag , if u goto another place which there are no people server not lag , what is that reason?


Re: Question [rep+] - anou1 - 18.04.2014

Maybe there's too many vehicle, mapping or something like that no ?


Re: Question [rep+] - SPA - 19.04.2014

Bump :/


Re: Question [rep+] - Flake. - 19.04.2014

Quote:
Originally Posted by SPA
Посмотреть сообщение
Bump :/
Did you even read the last response? That would probably be the cause of it, if not is there any strange messages/warnings in your server_log, something could be wrong with in there.


Re: Question [rep+] - SPA - 19.04.2014

Quote:
Originally Posted by (*|Flake|*)
Посмотреть сообщение
Did you even read the last response? That would probably be the cause of it, if not is there any strange messages/warnings in your server_log, something could be wrong with in there.
Which last response , also there are no any kind of warnings ,you know server start lagging only when you get close with densely people.


Re: Question [rep+] - Bingo - 19.04.2014

Is that server lag or client sided lag?

Server lag will be for everyone, Chat goes slow, Commands reacts after 2-4 seconds etc. (HIGH PINGS)
Client sided mostly occours due to high texttures, Trees, Shadows etc, So when more people gather, Our screen is laggy.

Most of the times, Warnings in server logs or errors check for that too.


Re: Question [rep+] - ChandraLouis - 19.04.2014

sometime im lagged if i played to many player on the server


Re: Question [rep+] - Astralis - 19.04.2014

Quote:
Originally Posted by SPA
Посмотреть сообщение
Hi,
Iv server with 150 players , there are no lags , but its start lag when u be in place which have many players about 5 players or much its keep lag , if u goto another place which there are no people server not lag , what is that reason?
Maybe because there are many maps (objects) in that place?


Re: Question [rep+] - SPA - 19.04.2014

Quote:
Originally Posted by Neonman
Посмотреть сообщение
Maybe because there are many maps (objects) in that place?
yes there are , im using "CreateDynamicObject" , but other servers also using that , im usng onplayerupdate
Код:
public OnPlayerUpdate(playerid)
{
    if(IsPlayerInAnyVehicle(playerid))
    {
    if(IsPlayerInRangeOfPoint(playerid,15.0,382.4741,2548.9509,20.1041))SetVehicleVelocity(GetPlayerVehicleID(playerid), 0.2, 0.2, 0.2);
    if(IsPlayerInRangeOfPoint(playerid,15.0,-1185.4705,27.1411,17.6159))SetVehicleVelocity(GetPlayerVehicleID(playerid), 0.2, 0.2, 0.2);
    }

    new InfoString[512];
    if(IsPlayerNPC(playerid)) return 0;
    format(InfoString, sizeof(InfoString), "Kills: ~w~~W~%d~N~~r~Deaths: ~W~%d~N~~P~Ratio:~W~ %0.2f~N~~Y~Score: ~W~%d", pInfo[playerid][Kills],pInfo[playerid][Deaths],Float:pInfo[playerid][Kills]/Float:pInfo[playerid][Deaths],GetPlayerScore(playerid));
    TextDrawSetString(PPing[playerid], InfoString);

    #if PauseDetectSystem == true
    pTick[playerid] = GetTickCount();
    #endif
    #if MoveSystem == true
    if(pInfo[playerid][Move] == 1)
    GetPlayerHoldingKey(playerid);
    #endif
    return 1;
}
Does that lags for 150 players?