Server closes after few minutes from start
#1

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?
Reply
#2

Show us OnePlayerConnect

Ps ; Crash Or, Close the connection
Reply
#3

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
Reply
#4

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?
Reply
#5

****** it: samp crashdetect
Reply
#6

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
Reply
#7

Works fine. Click the 'binary' link in the topic. Click the download for 4.9 win32 (if Windows). Click 'View Raw'. Download should start.
Reply
#8

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?
Reply
#9

It will print information about where the crash was occured to the server_log
Reply
#10

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;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)