Server Not Starting...
#1

Hello when I try to start sa-mp.exe it instantly crashes.

It looks like this in the server log:
Код:
----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3c, ©2005-2010 SA-MP Team

[17:40:12] filterscripts = ""  (string)
[17:40:12] 
[17:40:12] Server Plugins
[17:40:12] --------------
[17:40:12]  Loading plugin: streamer
[17:40:12] 

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

[17:40:12]   Loaded.
[17:40:12]  Loading plugin: audio
[17:40:12] 

*** Audio Plugin v0.4 by Incognito loaded ***


[17:40:12]   Loaded.
[17:40:12]  Loading plugin: sscanf
[17:40:12] 

[17:40:12]  ===============================

[17:40:12]       sscanf plugin loaded.     

[17:40:12]    © 2009 Alex "******" Cole

[17:40:12]  ===============================

[17:40:12]   Loaded.
[17:40:12]  Loading plugin: GeoIP_Plugin
[17:40:12] Error loading GeoIP_Plugin.
[17:40:12]   Failed.
[17:40:12]  Loaded 3 plugins.

[17:40:12] 
[17:40:12] Filter Scripts
[17:40:12] ---------------
[17:40:12]   Loaded 0 filter scripts.

[17:40:12] *** Audio Plugin: Started TCP server on port 1337
[17:40:13] hostname = "Essential Life Roleplay"  (string)
When I re-compile the gamemode I made I get no errors =[ So I have no idea what's going on.

The last thing I edited was the player vehicle system.

Код:
			for(new i = 0; i < MAX_PLAYERS; i++)
			{
				for(new ii = 0; ii < MAX_CARS; ii++)
				{
					if(Car[i][ii][cGameID] == VehID)
					{
					    if(!strcmp(Usage, "Engine", true))
					    {
					        if(Car[i][ii][cEngine] == 0)
				    	    {
				    	       	if(!strcmp(Player[playerid][pRoleplayName], Car[i][ii][cOwner], true))
			    	        	{
				    	            SendMessage(playerid, "You do not have the keys for this vehicle, use /vehicle hotwire");
			    	        	}
			    	        	else
			    	        	{
				    	        	SendMessage(playerid, "You successfully turned on the engine to this vehicle!");
				    	        	if(Car[i][ii][cLightsEx] == 1)
				    	        	{
				    	        		Car[i][ii][cLightsEx] = 0;
				    	       		 	Car[i][ii][cLights] = 1;
				    	       	 	}
				    	        	Car[i][ii][cEngineEx] = 1;
								}
				    	    }
				    	    else if(Car[i][ii][cEngine] == 1)
				    	    {
				    	        if(Car[i][ii][cLights] == 1)
				    	        {
				    	        	Car[i][ii][cLightsEx] = 1;
				    	        	Car[i][ii][cLights] = 0;
				    	        }
				    	        Car[i][ii][cEngine] = 0;
				    	        SendMessage(playerid, ""#Yellow"You successfully turned this vehicle's engine off.");
				    	    }
				    	}
Then I restarted to see if it worked and it crashed.
Reply
#2

Debug your code to see where the code stopped.
Reply
#3

I don't know where to start, there's 5000+ lines in my script.
Reply
#4

Just do it inside OnGameModeInit as you said it's crashed just after you start your server.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)