Server closes after few minutes from start -
pasha97 - 13.01.2013
What can cause that, the server closes very often, if there is 1 player or more. Server.log doesnt show anything strange. It closes randomly. What can the problem be?
Re : Server closes after few minutes from start -
yusei - 13.01.2013
Show us OnePlayerConnect
Ps ; Crash Or, Close the connection
Re: Server closes after few minutes from start -
Konstantinos - 13.01.2013
I think it's a crash. Would you mind to load crashdetect and the next time it will do that, if it's a crash it will print information on the server_log.txt
Re: Server closes after few minutes from start -
pasha97 - 13.01.2013
Quote:
Originally Posted by ******
Do you have the crash detect plugin installed?
|
Quote:
Originally Posted by Dwane
I think it's a crash. Would you mind to load crashdetect and the next time it will do that, if it's a crash it will print information on the server_log.txt
|
Ok, i will install crashdetect, can you give me a link?
Re: Server closes after few minutes from start -
Konstantinos - 13.01.2013
****** it: samp crashdetect
Re: Server closes after few minutes from start -
pasha97 - 13.01.2013
Quote:
Originally Posted by Dwane
****** it: samp crashdetect
|
ok. i will try
EDIT: I found this topic:
https://sampforum.blast.hk/showthread.php?tid=262796 But i cant download it from the given link
Re: Server closes after few minutes from start -
Vince - 13.01.2013
Works fine. Click the 'binary' link in the topic. Click the download for 4.9 win32 (if Windows). Click 'View Raw'. Download should start.
Re: Server closes after few minutes from start -
pasha97 - 14.01.2013
Quote:
Originally Posted by Vince
Works fine. Click the 'binary' link in the topic. Click the download for 4.9 win32 (if Windows). Click 'View Raw'. Download should start.
|
ok, so i must install it as a plugin and what will be if server crashes?
Re: Server closes after few minutes from start -
Konstantinos - 14.01.2013
It will print information about where the crash was occured to the server_log
Re: Server closes after few minutes from start -
pasha97 - 14.01.2013
Quote:
Originally Posted by Dwane
It will print information about where the crash was occured to the server_log
|
so here i got it XD:
[15:22:46] [debug] Server crashed while executing UFFtest.amx
[15:22:46] [debug] AMX backtrace:
[15:22:46] [debug] #0 native fwrite () [00405710] from samp-server.exe
[15:22:46] [debug] #1 00002568 in ?? () from UFFtest.amx
[15:22:46] [debug] #2 00002838 in ?? () from UFFtest.amx
[15:22:46] [debug] #3 00113858 in public checklevel () from UFFtest.amx
[15:22:46] [debug] System backtrace:
[15:22:47] [debug] #0 004923e0 in ?? () from C:\Users\Pasha\Desktop\Ultra Fun Freeplay\samp-server.exe
[15:22:47] [debug] #1 0040534e in ?? () from C:\Users\Pasha\Desktop\Ultra Fun Freeplay\samp-server.exe
It writes something about checklevel, so here is checklevel fuction(it is called by timer every 1 minute)
pawn Код:
OnGameModeInit()
{
SetTimer("checklevel",60000,1);
}
forward checklevel();
public checklevel()
{
for(new i; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && !IsPlayerNPC(i))
{
GetPlayerName(i,pname,sizeof(pname));
format(hourss, sizeof(hourss), "%s-hours", pname);
format(minutess, sizeof(minutess), "%s-minutes", pname);
if(!dini_Isset("PLEVELS.txt",hourss) || !dini_Isset("PLEVELS.txt",minutess))
{
dini_IntSet("PLEVELS.txt",hourss,0);
dini_IntSet("PLEVELS.txt",minutess,1);
}
else
{
if(dini_Int("PLEVELS.txt",minutess)<59)
{
dini_IntSet("PLEVELS.txt",minutess,dini_Int("PLEVELS.txt",minutess)+1);
}
if(dini_Int("PLEVELS.txt",minutess)>=59)
{
dini_IntSet("PLEVELS.txt",hourss,dini_Int("PLEVELS.txt",hourss)+1);
dini_IntSet("PLEVELS.txt",minutess,0);
}
}
}
}
return 1;
}