Server crashing shortly after joining.
#1

Hi. I recently moved my server from windows to linux (ubuntu), and for some reason it keeps crashing ~20 seconds after I join. It worked perfectly fine on windows.

This is my OnPlayerConnect:
PHP код:
    if(IsPlayerNPC(playerid)) return 1;
    
TotalConnect++;
    if(
Iter_Count(Player) > MaxPlayersConnected) {
        
MaxPlayersConnected Iter_Count(Player);
        
getdate(MPYear,MPMonth,MPDay);
    }
    
SetPlayerSkillLevel(playeridWEAPONSKILL_PISTOL1);
    
SetPlayerSkillLevel(playeridWEAPONSKILL_MICRO_UZI1);
    
    
HackingMods[playerid] = 0;
    
pSpeed[playerid] = 0.0;
    for(new 
03i++) {
        
StopaniFloats[playerid][i] = 0;
    }
        
RCPIdCurrent[playerid] = 0;
    for(new 
06i++) {
        
EventFloats[playerid][i] = 0.0;
    }
    
EventLastInt[playerid] = 0EventLastVW[playerid] = 0;
    for(new 
06i++) {
        
HHcheckFloats[playerid][i] = 0;
    }
    for(new 
05i++) {
        
LottoNumbers[playerid][i] = 0;
    }
    
acstruct[playerid][LastOnFootPosition][0] = 0.0acstruct[playerid][LastOnFootPosition][1] = 0.0acstruct[playerid][LastOnFootPosition][2] = 0.0;
    
acstruct[playerid][checkmaptp] = 0acstruct[playerid][maptplastclick] = 0;
    
acstruct[playerid][maptp][0] = 0.0acstruct[playerid][maptp][1] = 0.0acstruct[playerid][maptp][2] = 0.0;
    for(new 
0MAX_PLAYERSx++)
    {
        
ShotPlayer[playerid][x] = 0;
    }
    for(new 
012s++) {
        
PlayerInfo[playerid][pAGuns][s] = 0;
        
PlayerInfo[playerid][pGuns][s] = 0;
    }
    for(new 
040s++) {
        
ListItemReportId[playerid][s] = -1;
    }
    for(new 
020s++) {
        
ListItemRCPId[playerid][s] = -1;
    }
    
CancelReport[playerid] = -1;
    
    
InsideMainMenu{playerid} = 0;
    
InsideTut{playerid} = 0;
    
ShowMainMenuGUI(playerid);
    
SetPlayerJoinCamera(playerid);
    
ClearChatbox(playerid);
    
SetPlayerVirtualWorld(playerid0);
    
SetPlayerColor(playerid,TEAM_HIT_COLOR);
    
SyncPlayerTime(playerid);
    
    
logincheck[playerid] = SetTimerEx("LoginCheck"1200000"i"playerid);
    
    
SetTimerEx("LoginCheckEx"50000"i"playerid);
    return 
1
The output I get in the terminal is "Segmentation fault.", and the error I get in the server log is "[debug] Server crashed while executing mrm.amx"
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)