Server Lagging? +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: Server Lagging? +REP! (
/showthread.php?tid=481185)
Server Lagging? +REP! -
TahaAsif12 - 14.12.2013
Hey guys. I have been experiencing a major problem that whenever a player logins to the server, the server lags for 2-3 seconds and sometimes crash. If you could help me in any way i appreciate it.
If you need to have any type of code please tell me!
Re: Server Lagging? +REP! -
TahaAsif12 - 15.12.2013
anyone?
Re: Server Lagging? +REP! -
StuartD - 15.12.2013
Are you running an Ini saving system? I remember when we had LOADS of files the server would hang for a few seconds whilst finding the account..
Re: Server Lagging? +REP! -
TahaAsif12 - 15.12.2013
Quote:
Originally Posted by StuartD
Are you running an Ini saving system? I remember when we had LOADS of files the server would hang for a few seconds whilst finding the account..
|
Hmm, its INI system.
I can give u OnPlayerSpawn or OnPlayerConnect code if u like to
Re: Server Lagging? +REP! -
StuartD - 15.12.2013
Roughly how many accounts do you have saved?
Re: Server Lagging? +REP! -
TahaAsif12 - 15.12.2013
Quote:
Originally Posted by StuartD
Roughly how many accounts do you have saved?
|
54.
Ad i found out account name with Invalid_Name.ini
Re: Server Lagging? +REP! -
doreto - 15.12.2013
also do you have anything in OnPlayerUpdate callback?
Re: Server Lagging? +REP! -
TahaAsif12 - 15.12.2013
Quote:
Originally Posted by doreto
also do you have anything in OnPlayerUpdate callback?
|
yes i have one.
Here is the code:
PHP код:
public OnPlayerUpdate(playerid)
{
new RolPointTXT1[250];
if(PlayerInfo[playerid][pPuntosCash] == 0)
{
RolPointTXT1 = "Ninguno";
}
new string4[250];
format(string4, sizeof(string4), "~>~~G~GoldenBricks: ~W~%d", PlayerInfo[playerid][pPuntosCash]);
TextDrawSetString(RolPoint4[playerid], string4);
return 1;
}
Re: Server Lagging? +REP! -
TahaAsif12 - 17.12.2013
Anyone
Re: Server Lagging? +REP! -
iGetty - 17.12.2013
Please post the following:
OnPlayerConnect.
Also, install "Crashdetect" and see if that gives out any errors.