Server shutting down?
#1

Why my server is begging shutting down when i start it? May you check the server.cfg if it is OK? Also there is no error in the gamemode.
Also I am not using any filterscript.
Note: I Am using Linux.

My server cfg:
Код:
echo Executing Server Config...
lanmode 0
rcon_password AmTheWhoHiJackedMalasiaPlane
rcon 0
maxplayers 50
port 7777
hostname World of Fuckers
gamemode0 1233
plugins sscanf.so streamer.so nativechecker.so crashdetect.so
announce 0
query 1
chatlogging 1
weburl Coming soon!
onfoot_rate 40
incar_rate 40
weapon_rate 40
stream_distance 300.0
stream_rate 1000
maxnpc 0
logtimeformat [%H:%M:%S]
The server log:
Код:
----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3z, ©2005-2014 SA-MP Team

[15:56:47] 
[15:56:47] Server Plugins
[15:56:47] --------------
[15:56:47]  Loading plugin: sscanf.so
[15:56:47] 

[15:56:47]  ===============================

[15:56:47]       sscanf plugin loaded.     

[15:56:47]          Version:  2.8.1        

[15:56:47]    © 2012 Alex "******" Cole  

[15:56:47]  ===============================

[15:56:47]   Loaded.
[15:56:47]  Loading plugin: streamer.so
[15:56:47] 

*** Streamer Plugin v2.6.1 by Incognito loaded ***

[15:56:47]   Loaded.
[15:56:47]  Loading plugin: nativechecker.so
[15:56:47]   Loaded.
[15:56:47]  Loading plugin: crashdetect.so
[15:56:47]   crashdetect v4.7.6 is OK.
[15:56:47]   Loaded.
[15:56:47]  Loaded 4 plugins.

[15:56:47] 
[15:56:47] Filterscripts
[15:56:47] ---------------
[15:56:47]   Loaded 0 filterscripts.

[15:56:47] Debug information
[15:56:47] -------------------------------------
[15:56:47] Last vehicle ID: 290
[15:56:47] Last object ID: 18
[15:56:47] Loaded 0 houses
[15:56:47] Loaded 0 businesses
[15:56:47] Loaded 0 speed-camera's
[15:56:47] -------------------------------------
[15:56:47] Houses that have been fixed: 0
[15:56:47] 
----------------------------------
[15:56:47] World of Truckers[0.3z]
[15:56:47] ----------------------------------

[15:56:47] Number of vehicle models: 25
---------- HERE WHEN I LOGIN THE SERVER STOPS THERE.---------------

Reply
#2

Remove your crashdetect plugin and tell me if it re-starts again.
Reply
#3

It crashes when you connect to the server or when you login? If it is on connecting then give us OnPlayerConnect, but if it is on login give us login system
Reply
#4

I've had some issues with the crashdetect plugin, i think it's the crashdetect. Remove it from server.cfg and restart your server, if it happends again it might be a script issue
Reply
#5

Код:
echo Executing Server Config...
lanmode 0
rcon_password AmTheWhoHiJackedMalasiaPlane
rcon 0
maxplayers 50
port 7777
hostname World of Fuckers
gamemode0 1233
plugins sscanf.so streamer.so crashdetect.so nativechecker.so
announce 0
query 1
chatlogging 1
weburl Coming soon!
onfoot_rate 40
incar_rate 40
weapon_rate 40
stream_distance 300.0
stream_rate 1000
maxnpc 0
logtimeformat [%H:%M:%S]
try this and tell which host are u using ??
Reply
#6

Ya sure, And again result is same.
Reply
#7

Give us code from login system, when player log in...
Reply
#8

Sorry that was too latte for reply^^

and OnPlayerConnect

Код:
public OnPlayerConnect(playerid)
{
	SendClientMessage(playerid,-1,"{FFCC00}MOTD:{FFFFFF} Welcome to World of Truckers {FF0000} Set by:{FFCC00} Rider");
   	//Map removs
	// Bone Country bus station
	RemoveBuildingForPlayer(playerid, 3221, 112.3750, 1085.6719, 12.6641, 0.25);
	RemoveBuildingForPlayer(playerid, 3221, 115.9688, 1067.2031, 12.6641, 0.25);
	RemoveBuildingForPlayer(playerid, 3221, 110.8750, 1057.2188, 12.6641, 0.25);
	RemoveBuildingForPlayer(playerid, 3221, 112.6484, 1047.6563, 12.6641, 0.25);
	RemoveBuildingForPlayer(playerid, 3221, 121.1406, 1076.7891, 12.6641, 0.25);
	RemoveBuildingForPlayer(playerid, 3221, 128.1406, 1076.7891, 12.6641, 0.25);
	RemoveBuildingForPlayer(playerid, 3221, 122.9688, 1067.2031, 12.6641, 0.25);
	RemoveBuildingForPlayer(playerid, 3221, 124.8750, 1057.2188, 12.6641, 0.25);
	RemoveBuildingForPlayer(playerid, 3221, 119.6484, 1047.6563, 12.6641, 0.25);
	RemoveBuildingForPlayer(playerid, 1413, 97.1172, 1107.4141, 13.8906, 0.25);
	RemoveBuildingForPlayer(playerid, 1413, 97.2578, 1102.1172, 13.8906, 0.25);
	RemoveBuildingForPlayer(playerid, 16001, 110.6172, 1109.5156, 12.7266, 0.25);
	RemoveBuildingForPlayer(playerid, 16002, 172.8047, 1088.6250, 18.1094, 0.25);
	RemoveBuildingForPlayer(playerid, 691, 160.6875, 1106.7344, 13.5547, 0.25);
	RemoveBuildingForPlayer(playerid, 1413, 96.7031, 1112.6719, 13.8906, 0.25);
	// end
	// Map removes ends
	// Always allow NPC's to login without password or account
	if (IsPlayerNPC(playerid))
		return 1;

	// Setup local variables
	new Name[MAX_PLAYER_NAME], NewPlayerMsg[128], HouseID;

	// Setup a PVar to allow cross-script money-transfers (only from filterscript to this mainscript) and scorepoints
	SetPVarInt(playerid, "PVarMoney", 0);
	SetPVarInt(playerid, "PVarScore", 0);

	// Get the playername
	GetPlayerName(playerid, Name, sizeof(Name));
	// Also store this name for the player
	GetPlayerName(playerid, APlayerData[playerid][PlayerName], 24);

	// Send a message to all players to let them know somebody else joined the server
	format(NewPlayerMsg, 128, TXT_PlayerJoinedServer, Name, playerid);
	SendClientMessageToAll(0xFFFFFFFF, NewPlayerMsg);

	// Try to load the player's datafile ("PlayerFile_Load" returns "1" is the file has been read, "0" when the file cannot be read)
	if (PlayerFile_Load(playerid) == 1)
	{
		// Check if the player is still banned
		if (APlayerData[playerid][BanTime] < gettime()) // Player ban-time is passed
			ShowPlayerDialog(playerid, DialogLogin, DIALOG_STYLE_INPUT, TXT_DialogLoginTitle, TXT_DialogLoginMsg, TXT_DialogLoginButton1, TXT_DialogButtonCancel);
		else // Player is still banned
		{
			ShowRemainingBanTime(playerid); // Show the remaining ban-time to the player is days, hours, minutes, seconds
			Kick(playerid); // Kick the player
		}
	}
	else
		ShowPlayerDialog(playerid, DialogRegister, DIALOG_STYLE_INPUT, TXT_DialogRegisterTitle, TXT_DialogRegisterMsg, TXT_DialogRegisterButton1, TXT_DialogButtonCancel);

	// The houses have been loaded but not the cars, so load all vehicles assigned to the player's houses
	for (new HouseSlot; HouseSlot < MAX_HOUSESPERPLAYER; HouseSlot++)
	{
	    // Get the HouseID from this slot
	    HouseID = APlayerData[playerid][Houses][HouseSlot];
	    // Check if there is a house in this slot
		if (HouseID != 0)
		    HouseFile_Load(HouseID, true); // Load the cars of the house
	}

	// Speedometer setup
	Speedometer_Setup(playerid);

	// MissionText TextDraw setup
	APlayerData[playerid][MissionText] = TextDrawCreate(320.0, 430.0, " "); // Setup the missiontext at the bottom of the screen
	TextDrawAlignment(APlayerData[playerid][MissionText], 2); // Align the missiontext to the center
	TextDrawUseBox(APlayerData[playerid][MissionText], 1); // Set the missiontext to display inside a box
	TextDrawBoxColor(APlayerData[playerid][MissionText], 0x00000066); // Set the box color of the missiontext
	TextDrawFont(APlayerData[playerid][MissionText], 2);

	// Display a message if the player hasn't accepted the rules yet
	if (APlayerData[playerid][RulesRead] == false)
	    SendClientMessage(playerid, 0xFFFFFFFF, "{FFCC00}Before playing this server you must accept our rules.To see them type: {FFFFFF}/rules");

	// Setup local variables
	new BusID;

	// Update the AutoEvict-time for this player's houses and businesses
	for (new HouseSlot; HouseSlot < MAX_HOUSESPERPLAYER; HouseSlot++)
	{
	    // Get the HouseID from this slot
	    HouseID = APlayerData[playerid][Houses][HouseSlot];
	    // Check if there is a house in this slot
		if (HouseID != 0)
			AHouseData[HouseID][AutoEvictDays] = AutoEvict[AEDays];
	}
	for (new BusSlot; BusSlot < MAX_BUSINESSPERPLAYER; BusSlot++)
	{
	    // Get the BusID from this slot
	    BusID = APlayerData[playerid][Business][BusSlot];
	    // Check if there is a business in this slot
		if (BusID != 0)
			ABusinessData[BusID][AutoEvictDays] = AutoEvict[AEDays];
	}

	return 1;
}



// This function shows the player how long his ban still is when he tries to login (in days, hours, minutes, seconds)
ShowRemainingBanTime(playerid)
{
	// Setup local variables
	new TotalBanTime, Days, Hours, Minutes, Seconds, Msg[128];

	// Get the total ban-time
	TotalBanTime = APlayerData[playerid][BanTime] - gettime();

	// Calculate days
	if (TotalBanTime >= 86400)
	{
		Days = TotalBanTime / 86400;
		TotalBanTime = TotalBanTime - (Days * 86400);
	}
	// Calculate hours
	if (TotalBanTime >= 3600)
	{
		Hours = TotalBanTime / 3600;
		TotalBanTime = TotalBanTime - (Hours * 3600);
	}
	// Calculate minutes
	if (TotalBanTime >= 60)
	{
		Minutes = TotalBanTime / 60;
		TotalBanTime = TotalBanTime - (Minutes * 60);
	}
	// Calculate seconds
	Seconds = TotalBanTime;

	// Display the remaining ban-time for this player
	SendClientMessage(playerid, 0xFFFFFFFF, TXT_StillBanned);
	format(Msg, 128, TXT_BannedDuration, Days, Hours, Minutes, Seconds);
	SendClientMessage(playerid, 0xFFFFFFFF, Msg);
}
Reply
#9

Is this first time, You are facing?

Before also you was facing this problem?
Anything new added to server?
Reply
#10

Well, When i start the server in windows [ not in my host ] it runs good. but it makes problem in linux. and no i didn't add anything extra.

Also it was good before.... in linux too..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)