[help]Server will not turn on.
#1

Hello friends, I coded a GM downloaded here, I got everything, he copied and etc, but now when I call him he disconnects from nowhere.

Log will be below. Help me

Код:
----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3.7-R2, ©2005-2015 SA-MP Team

[01:31:57] filterscripts = ""  (string)
[01:31:57] 
[01:31:57] Server Plugins
[01:31:57] --------------
[01:31:57]  Loading plugin: crashdetect.dll
[01:31:57]   CrashDetect v4.10.1 is OK.
[01:31:57]   Loaded.
[01:31:57]  Loading plugin: dns.dll
[01:31:57] 

*** DNS Plugin v2.4 by Incognito loaded ***

[01:31:57]   Loaded.
[01:31:57]  Loading plugin: sscanf.dll
[01:31:57] 

[01:31:57]  ===============================

[01:31:57]       sscanf plugin loaded.     

[01:31:57]    © 2009 Alex "******" Cole

[01:31:57]    0.3d-R2 500 Players "dnee"

[01:31:57]  ===============================

[01:31:57]   Loaded.
[01:31:57]  Loading plugin: streamer.dll
[01:31:57] 

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

[01:31:57]   Loaded.
[01:31:57]  Loading plugin: Whirlpool.dll
[01:31:57]  
[01:31:57]  ==================
[01:31:57]  
[01:31:57]   Whirlpool loaded
[01:31:57]  
[01:31:57]  ==================
[01:31:57]  
[01:31:57]   Loaded.
[01:31:57]  Loading plugin: xml.dll
[01:31:57]   Loaded.
[01:31:57]  Loaded 6 plugins.

[01:31:57] 
[01:31:57] Filterscripts
[01:31:57] ---------------
[01:31:57]   Loaded 0 filterscripts.

[01:31:58] [debug] Server crashed while executing MBRP.amx
[01:31:58] [debug] AMX backtrace:
[01:31:58] [debug] #0 native fclose () [004056c0] from samp-server.exe
[01:31:58] [debug] #1 000113a8 in ?? () from MBRP.amx
[01:31:58] [debug] #2 00015248 in public zcmd_OnGameModeInit () from MBRP.amx
[01:31:58] [debug] #3 native CallLocalFunction () [004743b0] from samp-server.exe
[01:31:58] [debug] #4 00000e44 in public Itter_OnGameModeInit () from MBRP.amx
[01:31:58] [debug] #5 native CallLocalFunction () [004743b0] from samp-server.exe
[01:31:58] [debug] #6 00000820 in public OnGameModeInit () from MBRP.amx
[01:31:58] [debug] Native backtrace:
[01:31:58] [debug] #0 0049939b in ?? () from C:\Users\b4z3ll\DesktopRoleplay 2014\samp-server.exe
[01:31:58] [debug] #1 004056cd in ?? () from C:\Users\b4z3ll\DesktopMBRoleplay 2014\samp-server.exe
[01:31:58] [debug] #2 672ab1c4 in ?? () from C:\Users\b4z3ll\DesktopMBRoleplay 2014\plugins\crashdetect.dll
[01:31:58] [debug] #3 672b350a in ?? () from C:\Users\b4z3ll\DesktopMBRoleplay 2014\plugins\crashdetect.dll
[01:31:58] [debug] #4 672b51a6 in ?? () from C:\Users\b4z3ll\DesktopMBRoleplay 2014\plugins\crashdetect.dll
[01:31:58] [debug] #5 672ad641 in ?? () from C:\Users\b4z3ll\DesktopMBRoleplay 2014\plugins\crashdetect.dll
[01:31:58] [debug] #6 672b355a in ?? () from C:\Users\b4z3ll\DesktopMBRoleplay 2014\plugins\crashdetect.dll
[01:31:58] [debug] #7 67104885 in ?? () from C:\Users\b4z3ll\DesktopMBRoleplay 2014\plugins\streamer.dll
[01:31:58] [debug] #8 004746be in ?? () from C:\Users\b4z3ll\DesktopMBRoleplay 2014\samp-server.exe
[01:31:58] [debug] #9 004010b6 in ?? () from C:\Users\b4z3ll\DesktopMBRoleplay 2014\samp-server.exe
[01:31:58] [debug] #10 672ab1c4 in ?? () from C:\Users\b4z3ll\DesktopMBRoleplay 2014\plugins\crashdetect.dll
[01:31:58] [debug] #11 672b350a in ?? () from C:\Users\b4z3ll\DesktopMBRoleplay 2014\plugins\crashdetect.dll
[01:31:58] [debug] #12 672b51a6 in ?? () from C:\Users\b4z3ll\DesktopMBRoleplay 2014\plugins\crashdetect.dll
[01:31:58] [debug] #13 672ad641 in ?? () from C:\Users\b4z3ll\DesktopMBRoleplay 2014\plugins\crashdetect.dll
[01:31:59] [debug] #14 672b355a in ?? () from C:\Users\b4z3ll\DesktopMBRoleplay 2014\plugins\crashdetect.dll
[01:31:59] [debug] #15 67104885 in ?? () from C:\Users\b4z3ll\DesktopMBRoleplay 2014\plugins\streamer.dll
[01:31:59] [debug] #16 004746be in ?? () from C:\Users\b4z3ll\DesktopMBRoleplay 2014\samp-server.exe
[01:31:59] [debug] #17 004010b6 in ?? () from C:\Users\b4z3ll\DesktopMBRoleplay 2014\samp-server.exe
[01:31:59] [debug] #18 672ab1c4 in ?? () from C:\Users\b4z3ll\DesktopMBRoleplay 2014\plugins\crashdetect.dll
[01:31:59] [debug] #19 672b350a in ?? () from C:\Users\b4z3ll\DesktopMBRoleplay 2014\plugins\crashdetect.dll
[01:31:59] [debug] #20 672b51a6 in ?? () from C:\Users\b4z3ll\DesktopMBRoleplay 2014\plugins\crashdetect.dll
[01:31:59] [debug] #21 672ad641 in ?? () from C:\Users\b4z3ll\DesktopMBRoleplay 2014\plugins\crashdetect.dll
[01:31:59] [debug] #22 672b355a in ?? () from C:\Users\b4z3ll\DesktopMBRoleplay 2014\plugins\crashdetect.dll
[01:31:59] [debug] #23 67104885 in ?? () from C:\Users\b4z3ll\DesktopMBRoleplay 2014\plugins\streamer.dll
[01:31:59] [debug] #24 0046f654 in ?? () from C:\Users\b4z3ll\DesktopMBRoleplay 2014\samp-server.exe
[01:31:59] [debug] #25 65646f6d in ?? () from C:\Users\b4z3ll\DesktopMBRoleplay 2014\samp-server.exe
[01:31:59] [debug] #26 44412f73 in ?? () from C:\Users\b4z3ll\DesktopMBRoleplay 2014\samp-server.exe
[01:31:59] [debug] #27 2e50522d in ?? () from C:\Users\b4z3ll\DesktopMBRoleplay 2014\samp-server.exe
[01:31:59] [debug] #28 00786d61 in ?? () from C:\Users\b4z3ll\DesktopMBRoleplay 2014\samp-server.exe
The Functions are separated:
Код:
//=====================[Mуdulos]=======================//
#include "../gamemodes/OnConnect.pwn"
#include "../gamemodes/OnGameMode.pwn"
#include "../gamemodes/OnRequestClass.pwn"
#include "../gamemodes/OnDisconnect.pwn"
#include "../gamemodes/OnSpawn.pwn"
#include "../gamemodes/OnDeath.pwn"
#include "../gamemodes/OnText.pwn"
#include "../gamemodes/OnCommand.pwn"
#include "../gamemodes/OnVehicle.pwn"
#include "../gamemodes/OnStateChange.pwn"
#include "../gamemodes/OnKeyChange.pwn"
#include "../gamemodes/OnEnterCheckpoint.pwn"
#include "../gamemodes/OnTimers.pwn"
//============================================//
Reply
#2

Show your OnGameModeInit.
Reply
#3

Quote:
Originally Posted by Arthur Kane
Посмотреть сообщение
Show your OnGameModeInit.
Код:
public OnGameModeInit()
{
	new string[128],tmphour,tmpminute,tmpsecond,year,month,day;
	SetGameModeText(SCRIPT_MODE);
	SendRconCommand(SCRIPT_MAP);
	/*new arrCoords[6][64], strFromFile2[256];
	new File: file;
	if (fexist("stuff.ini"))
	{
		file = fopen("stuff.ini", io_read);
		fread(file, strFromFile2);
		split(strFromFile2, arrCoords, ',');
		BombActivated = strval(arrCoords[0]);
		fclose(file);
	}*/
	ShowPlayerMarkers(0);
	ShowNameTags(1);
	DisableInteriorEnterExits();
	EnableStuntBonusForAll(0);
	SetNameTagDrawDistance(15.0);
	ManualVehicleEngineAndLights();
    gettime(tmphour, tmpminute, tmpsecond);
    getdate(year, month, day);
	FixHour(tmphour);
	tmphour = shifthour;
	ghour = tmphour;
	gday=day;
	SetWorldTime(tmphour);
    new weather = random(15)+1;
	switch(weather)
	{
	    case 0,1: Weather=1;
		case 2: Weather=2;
		case 3: Weather=3;
		case 4: Weather=4;
		case 5: Weather=5;
		case 6: Weather=6;
		case 7,8,9: Weather=7;
		case 10: Weather=10;
		case 11: Weather=11;
		case 12: Weather=12;
		case 13: Weather=13;
		case 14: Weather=18;
		case 15: Weather=9;
	}
    SetWeather(Weather);
	format(string, sizeof(string), "weburl %s",SCRIPT_WEB);
	SendRconCommand(string);
	AddPlayerClass(25, 1642.7285,-2240.5591,13.4945,180.0272, 0, 0, 0, 0, 0, 0);
	for(new c =0; c < MAX_VEHICLES ;c++)
	{
		VehicleInfo[c][vFuel] = 100;
		VehicleInfo[c][vEngine] = 0;
		VehicleInfo[c][vWindows] = 0;
		VehicleInfo[c][vOwned] = SCRIPT_CARS;
		VehicleInfo[c][vType] = 0;
		VehicleInfo[c][Panel] = 0.0;
		VehicleInfo[c][Doors] = 0.0;
		VehicleInfo[c][vCreated] = 0;
	}
	for(new f =0; f < sizeof(FactionInfo);f++) { strmid(FactionInfo[f][fMOTD], "Nenhuma", 0, strlen("Nenhuma"), 255); }
	for(new f =0; f < sizeof(DropInfo);f++)
	{
	    strmid(DropInfo[f][dOwner], "None", 0, strlen("None"), 255);
	    strmid(DropInfo[f][dPrint], "None", 0, strlen("None"), 255);
	}
	for(new i=0;i<sizeof(BoloInfo);i++) { strmid(BoloInfo[i][bString], "None", 0, strlen("None"), 255); }
	for(new i=0;i<sizeof(RadioInfo);i++)
	{
        RadioInfo[i][rX] = 0.0;
		RadioInfo[i][rY] = 0.0;
		RadioInfo[i][rZ] = 0.0;
		RadioInfo[i][rStatus] = 0;
		RadioInfo[i][rAreaID] = 0;
		strmid(RadioInfo[i][rOwner], "None", 0, strlen("None"), 255);
		strmid(RadioInfo[i][rURL], "None", 0, strlen("None"), 255);
	}
	LoadProperty();
	LoadBizz();
	LoadDrugStores();
	LoadInts();
	LoadCars();
//	LoadCars2();
	LoadFactions();
	LoadNormalCars();
	LoadHouseInts();
	LoadTags();
	BotLoad=0, LoadBots(0);
	SetTimer("RotateFerrisWheel",3000,false);
	SetTimer("OneSecondTimer", 1000, 1);
	SetTimer("OneMinTimer", 60000, 1);
	SetTimer("FiveMinTimer", 300000, 1);
	SetTimer("IdleKick", 600000, 1);
	checkcarhealthtimer = SetTimer("CheckCarHealth", 10000, 1);
	addictiontimer = SetTimer("CheckAddiction", 900000, 1);
	OnVehicleDeath(0, 501);
	return true;
}
Reply
#4

Someone?
Reply
#5

PHP код:
#0 native fclose () [004056c0] from samp-server.exe 
you are trying to close an non-exists/invalid file or invalid handle, somewhere on your script.

EDIT: complie your script using -d3 and give us logs again
Reply
#6

Quote:
Originally Posted by XeonMaster
Посмотреть сообщение
PHP код:
#0 native fclose () [004056c0] from samp-server.exe 
you are trying to close an non-exists/invalid file or invalid handle, somewhere on your script.

EDIT: complie your script using -d3 and give us logs again
Thanks brow.

So, I put the original gamemode, and opened it and logged in normally, but now, when I compile again, it starts to pop up the new errors.
I've corrected most of them, but there are some that I could not

New log:

Код:
----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3.7-R2, ©2005-2015 SA-MP Team

[01:38:48] filterscripts = ""  (string)
[01:38:48] 
[01:38:48] Server Plugins
[01:38:48] --------------
[01:38:48]  Loading plugin: crashdetect.dll
[01:38:48]   CrashDetect v4.10.1 is OK.
[01:38:48]   Loaded.
[01:38:48]  Loading plugin: dns.dll
[01:38:48] 

*** DNS Plugin v2.4 by Incognito loaded ***

[01:38:48]   Loaded.
[01:38:48]  Loading plugin: sscanf.dll
[01:38:48] 

[01:38:48]  ===============================

[01:38:48]       sscanf plugin loaded.     

[01:38:48]    © 2009 Alex "******" Cole

[01:38:48]    0.3d-R2 500 Players "dnee"

[01:38:48]  ===============================

[01:38:48]   Loaded.
[01:38:48]  Loading plugin: streamer.dll
[01:38:48] 

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

[01:38:48]   Loaded.
[01:38:48]  Loading plugin: Whirlpool.dll
[01:38:48]  
[01:38:48]  ==================
[01:38:48]  
[01:38:48]   Whirlpool loaded
[01:38:48]  
[01:38:48]  ==================
[01:38:48]  
[01:38:48]   Loaded.
[01:38:48]  Loading plugin: xml.dll
[01:38:48]   Loaded.
[01:38:48]  Loaded 6 plugins.

[01:38:48] 
[01:38:48] Filterscripts
[01:38:48] ---------------
[01:38:48]   Loaded 0 filterscripts.

[01:38:49]  
[01:38:49]  
[01:38:49]  
[01:38:49]  ======================================= 
[01:38:49]  |                                     | 
[01:38:49]  |        YSI version 4.00.0001        | 
[01:38:49]  |        By Alex "******" Cole        | 
[01:38:49]  |                                     | 
[01:38:49]  ======================================= 
[01:38:49]  
[01:39:18] Carregando bots, iniciando...
[01:39:18] Loading Bot Number 1
[01:39:18] =============================
[01:39:18] MBRoleplay
[01:39:18] SCRIPT CARREGADO COM SUCESSO!
[01:39:18] =============================
[01:39:18] Number of vehicle models: 28
[01:39:20] Carregando Bot nъmero 1
[01:39:22] Carregando Bot nъmero 2
[01:39:23] [connection] 127.0.0.1:61548 requests connection cookie.
[01:39:24] [connection] incoming connection: 127.0.0.1:61548 id: 0
[01:39:24] Carregando Bot nъmero 3
[01:39:25] Bots carregados, finalizado.
[01:40:02] [connection] 127.0.0.1:64655 requests connection cookie.
[01:40:03] [connection] incoming connection: 127.0.0.1:64655 id: 0
[01:40:03] [join] b4z3ll_Campos has joined the server (0:127.0.0.1)
[01:40:03] [debug] Run time error 4: "Array index out of bounds"
[01:40:03] [debug]  Accessing element at index 118 past array upper bound 117
[01:40:03] [debug] AMX backtrace:
[01:40:03] [debug] #0 00042b60 in public OnConnectInit (playerid=0) at ../gamemodes/OnConnect.pwn:239
[01:40:03] [debug] #1 000447c4 in public Debug_Print0 (... <1 variable argument>) at ../gamemodes/OnConnect.pwn:318
[01:40:03] [debug] #2 0000b4bc in public Debug_Print0 (... <1073741823 variable arguments>) at C:\Users\b4z3ll\Desktop\MBRoleplay 2014\pawno\include\YSI\..\YSI_Data\..\YSI_Internal\..\YSI_Core\y_utils.inc:222
[01:40:03] [debug] #3 00010568 in public Debug_Print0 (... <1 variable argument>) at C:\Users\b4z3ll\Desktop\MBRoleplay 2014\pawno\include\YSI\..\YSI_Data\..\YSI_Coding\..\YSI_Internal\y_cgen.inc:30
[01:40:16] [debug] Run time error 4: "Array index out of bounds"
[01:40:16] [debug]  Accessing element at index 3001 past array upper bound 3000
[01:40:16] [debug] AMX backtrace:
[01:40:16] [debug] #0 00340e28 in public OnLoginInit (playerid=0) at C:\Users\b4z3ll\Desktop\MBRoleplay 2014\gamemodes\AD-RP.pwn:7003
[01:40:16] [debug] #1 003f5294 in public OnPlayerFade (playerid=0, type=1) at C:\Users\b4z3ll\Desktop\MBRoleplay 2014\gamemodes\AD-RP.pwn:19657
[01:40:16] [debug] #2 native CallRemoteFunction () [00474000] from samp-server.exe
[01:40:16] [debug] #3 003f467c in public FadeScreen (playerid=0, type=1) at C:\Users\b4z3ll\Desktop\MBRoleplay 2014\gamemodes\AD-RP.pwn:19591
Reply
#7

Someone?
Reply
#8

Compile using -d3 and show us the logs
Reply
#9

@B4z3ll: just look carefully at your errors:
Quote:

[01:40:03] [debug] #0 00042b60 in public OnConnectInit (playerid=0) at ../gamemodes/OnConnect.pwn:239

You can see OnConnect.pwn:239 - this means the invalid access is happning in OnConnect on line 239. Look there
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)