My server crashes.
#1

Due to this:
Код:
[debug] #0 ???????? in public Itter_OnGameModeInit () from gamemode_2.2.4.amx
[debug] #1 native CallLocalFunction () from samp-server.exe
[debug] #2 ???????? in public OnGameModeInit () from gamemode_2.2.4.amx
I loaded "crashdetect" plugin and this appeared to server-log..

[I THINK THAT IT'S SCRIPT'S BUG SO I POSTED IT HERE]
Reply
#2

Well the only way to resolve that is to debug your OnGameModeInit, that's where the bug occurs.

Comment out OnGameModeInit, and uncomment it until till it starts. The crash detect plugin isn't that specific as the problem occurs with an SA Function which you've likely done something wrong with.

You could post your OnGameModeInit here, although they are usually huge and no ones going to care enough to read it.
Reply
#3

It's in German but anyway..I also removed maps and texdraws..

Код:
public OnGameModeInit()
{
	connection = mysql_init(LOG_ONLY_ERRORS, 1);
	mysql_connect(MySql_Host, MySql_User, MySql_Password, MySql_Database,connection,1);
	if(mysql_ping(connection) == 0)
	{
		print("MySQL-Verbindung wurde erfolgreich hergestellt");
	}
	else
	{
	    print("MySQL-Verbindung konnte nicht hergestellt werden");
	    print("Zweiter Versuch...");
		mysql_connect(MySql_Host, MySql_User, MySql_Password, MySql_Database,connection,1);
		if(mysql_ping(connection) == 0)
		{
		    print("MySQL-Verbindung wurde erfolgreich hergestellt");
		}
		else
		{
	    	print("MySQL-Verbindung konnte nicht hergestellt werden");
	    	print("Info: Der Server wird nun beendet");
	    	SendRconCommand("exit");
	    	return 1;
	    }
	}

	for(new i = 0; i < sizeof(Rubbish); i++)
	{
		RubbishObject[i] = CreateDynamicObject(2672,Rubbish[i][0],Rubbish[i][1],Rubbish[i][2],Rubbish[i][3],Rubbish[i][4],Rubbish[i][5]);
		RubbishControl[i][0] = 1;
	}

	for(new i = 0; i < 12; i++)
	{
		if(i == 4)
		{
			PaintballWaffen[i] = 29;
		}
		else
		{
			PaintballWaffen[i] = -1;
		}
	}
//	lspdskins = LoadModelSelectionMenu("lspdskins.txt");
//	skinlist = LoadModelSelectionMenu("skins.txt");
//	f_init();

	// ZUG CP's
/*	ZCP[0][zpx] = -1944.3750;
 	ZCP[0][zpy] = 98.5029;
    ZCP[0][zpz] = 26.1223;
	ZCP[0][verdienst] = 150;
	// 2
	ZCP[1][zpx] = -1944.3750;
 	ZCP[1][zpy] = 108.7055;
    ZCP[1][zpz] = 26.1223;
	ZCP[1][verdienst] = 270;*/
	// ZUGFAHRER ZЬGE
	ManualVehicleEngineAndLights();
    new string[MAX_PLAYER_NAME];
    new string1[MAX_PLAYER_NAME];
	//ConnectNPC("Stripbot","Stripbot");//Das erste BulletLS steht fьr den Namen hier im Script, das 2te fьr den Namen der .rec Datei
	//ConnectNPC("busbotall","busbotall");//Das erste BulletLS steht fьr den Namen hier im Script, das 2te fьr den Namen der .rec Datei
	//ConnectNPC("zugbot2","zugbot2");//Das erste BulletLS steht fьr den Namen hier im Script, das 2te fьr den Namen der .rec Datei
	fahrschulewsvar = 1;
	LSPDZellen = 0;
	FBIZellen = 0;
	zeitstatus = 0;
	//WetterTimer();
	//SetTimer("WetterTimer", 3600000, 1); //1 Std.
	SetTimer("Plantation", 60000, 1);
	LoadDrugSystem();
	LoadBizz();
	LoadEvents();
	LoadBlacklist();
	LoadSBizz();
	LoadBoxer();
	LoadStuff();
	LoadIRC();
	LoadFamilies();
	LoadPapers();
	LoadGWB();



	//SetTimer("herztimer",1000*60*30,true);
	SetTimer("playersekunde",1000,true);
	SetTimer("aimbotcheck",1000*60*5,true);

	//restarttimer = SetTimer("Autorestart",1000*60,true);

	LoadContracts();
	loadnavipoins();
	LoadAdminKasse();
	LoadHartzKasse();
	//LoadServerSettings();
	loadradio();
	loadlohn();
	loadsaveboxen();
	LoadFraktionsKassen();
	IRCInfo[0][iPlayers] = 0; IRCInfo[1][iPlayers] = 0; IRCInfo[2][iPlayers] = 0;
	IRCInfo[3][iPlayers] = 0; IRCInfo[4][iPlayers] = 0; IRCInfo[5][iPlayers] = 0;
	IRCInfo[6][iPlayers] = 0; IRCInfo[7][iPlayers] = 0; IRCInfo[8][iPlayers] = 0;
	IRCInfo[9][iPlayers] = 0;
	News[hTaken1] = 0; News[hTaken2] = 0; News[hTaken3] = 0; News[hTaken4] = 0; News[hTaken5] = 0;
	format(string, sizeof(string), "Nichts");
	strmid(News[hAdd1], string, 0, strlen(string), 255);
	strmid(News[hAdd2], string, 0, strlen(string), 255);
	strmid(News[hAdd3], string, 0, strlen(string), 255);
	strmid(News[hAdd4], string, 0, strlen(string), 255);
	strmid(News[hAdd5], string, 0, strlen(string), 255);
	format(string1, sizeof(string1), "Keiner");
	strmid(News[hContact1], string1, 0, strlen(string1), 255);
	strmid(News[hContact2], string1, 0, strlen(string1), 255);
	strmid(News[hContact3], string1, 0, strlen(string1), 255);
	strmid(News[hContact4], string1, 0, strlen(string1), 255);
	strmid(News[hContact5], string1, 0, strlen(string1), 255);
	new PropertyString[256];
	SetGameModeText("[D.S.Z]German Roleplay "#SCRIPT_VERSION"");//sversion
	SendRconCommand("mapname [D.S.Z]Reloaded "#SCRIPT_VERSION"");
	format(objstore, sizeof(objstore), "MOLE: Ich habe nichts, bitte komme spдter nochmal.");
	format(cbjstore, sizeof(cbjstore), "HQ: Es ist nicht in deiner Nдhe.");
	format(motd, sizeof(motd), "_____________________________________________________________");
	SetPDistance(10);
	AllowInteriorWeapons(1);
	AllowAdminTeleport(1);
	EnableStuntBonusForAll(false);
    ShowPlayerMarkers(1);
	DisableInteriorEnterExits();
	ResetElevatorQueue();
	Elevator_Initialize();

	/*Info Leiste*/
	/*HalfSecTimer = SetTimer("HalfSecUpdate",500,1);
	//SetTimer("UpdateClock",1000,1);

	Box = TextDrawCreate(0.0,TACHO_TDY-2,"~n~ ~n~ ~n~");
	TextDrawLetterSize(Box,0.1,3.0);
	TextDrawColor(Box,TACHO_BG);
	TextDrawBackgroundColor(Box,TACHO_BG);
	TextDrawUseBox(Box,1);
	TextDrawBoxColor(Box,TACHO_BG);

	Box2 = TextDrawCreate(320.0,TACHO_TDY-25.5,"~n~ ~n~");
	TextDrawTextSize(Box2,180,100);
	TextDrawAlignment(Box2,2);
	TextDrawColor(Box2,TACHO_BG);
	TextDrawBackgroundColor(Box2,TACHO_BG);
	TextDrawUseBox(Box2,1);
	TextDrawBoxColor(Box2,TACHO_BG);

	ServerName = TextDrawCreate(30.0,TACHO_TDY,"Die Sieben Zwerge");
	TextDrawFont(ServerName,1);
	TextDrawLetterSize(ServerName,0.32,1.4);
	TextDrawSetShadow(ServerName,0);
	TextDrawSetOutline(ServerName,2);
	TextDrawColor(ServerName,TACHO_COL);
	TextDrawBackgroundColor(ServerName,TACHO_BOR);

	HP = TextDrawCreate(503.0,TACHO_TDY,"HP: ~w~dsz-rolplay.de");
	TextDrawFont(HP,1);
	TextDrawLetterSize(HP,0.3,1.3);
	TextDrawSetShadow(HP,0);
	TextDrawSetOutline(HP,1);
	TextDrawColor(HP,TACHO_COL);
	TextDrawBackgroundColor(HP,TACHO_BOR);

	Uhr = TextDrawCreate(595.000000,26.000000,"00:00");
	TextDrawLetterSize(Uhr,0.7,2.0);
	TextDrawFont(Uhr,3);
	TextDrawAlignment(Uhr,2);
	TextDrawSetOutline(Uhr,2);*/

	//Intro
	/*ITextdraw0 = TextDrawCreate(195.500, 135.186, "Willkommen auf");
	TextDrawLetterSize(ITextdraw0, 0.449, 1.600);
	TextDrawAlignment(ITextdraw0, 1);
	TextDrawColor(ITextdraw0, -8978177);
	TextDrawSetOutline(ITextdraw0, 1);
	TextDrawBackgroundColor(ITextdraw0, 51);
	TextDrawFont(ITextdraw0, 0);
	TextDrawSetProportional(ITextdraw0, 1);

	ITextdraw1 = TextDrawCreate(262.000, 150.062, "Die");
	TextDrawLetterSize(ITextdraw1, 0.449, 1.600);
	TextDrawAlignment(ITextdraw1, 1);
	TextDrawColor(ITextdraw1, -1);
	TextDrawSetOutline(ITextdraw1, 1);
	TextDrawBackgroundColor(ITextdraw1, 51);
	TextDrawFont(ITextdraw1, 0);
	TextDrawSetProportional(ITextdraw1, 1);*/

	ITextdraw2 = TextDrawCreate(331.500, 179.998, "box");
	TextDrawLetterSize(ITextdraw2, 0.000, 6.973);
	TextDrawTextSize(ITextdraw2, 140.000, 0.000);
	TextDrawAlignment(ITextdraw2, 1);
	TextDrawColor(ITextdraw2, 0);
	TextDrawUseBox(ITextdraw2, 1);
	TextDrawBoxColor(ITextdraw2, -8978330);
	TextDrawFont(ITextdraw2, 0);

	ITextdraw3 = TextDrawCreate(526.500, 180.061, "box");
	TextDrawLetterSize(ITextdraw3, 0.000, 6.921);
	TextDrawTextSize(ITextdraw3, 334.500, 0.000);
	TextDrawAlignment(ITextdraw3, 1);
	TextDrawColor(ITextdraw3, 0);
	TextDrawUseBox(ITextdraw3, 1);
	TextDrawBoxColor(ITextdraw3, -8978330);
	TextDrawFont(ITextdraw3, 0);

	ITextdraw4 = TextDrawCreate(155.000, 320.686, "Forum: www.DSZ-Roleplay.de");
	TextDrawLetterSize(ITextdraw4, 0.280, 1.088);
	TextDrawAlignment(ITextdraw4, 1);
	TextDrawColor(ITextdraw4, -1);
	TextDrawSetOutline(ITextdraw4, 1);
	TextDrawBackgroundColor(ITextdraw4, 51);
	TextDrawFont(ITextdraw4, 1);
	TextDrawSetProportional(ITextdraw4, 1);

	ITextdraw5 = TextDrawCreate(357.000, 320.747, "TeamSpeak: ts.DSZ-Roleplay.com");
	TextDrawLetterSize(ITextdraw5, 0.280, 1.088);
	TextDrawAlignment(ITextdraw5, 1);
	TextDrawColor(ITextdraw5, -1);
	TextDrawSetOutline(ITextdraw5, 1);
	TextDrawBackgroundColor(ITextdraw5, 51);
	TextDrawFont(ITextdraw5, 1);
	TextDrawSetProportional(ITextdraw5, 1);

	ITextdraw6 = TextDrawCreate(174.000, 204.311, "Login / Register");
	TextDrawLetterSize(ITextdraw6, 0.449, 1.600);
	TextDrawTextSize(ITextdraw6, 297.500, 9.625);
	TextDrawAlignment(ITextdraw6, 1);
	TextDrawColor(ITextdraw6, -1);
	//TextDrawUseBox(ITextdraw6, 1);
	//TextDrawBoxColor(ITextdraw6, 102);
	TextDrawSetOutline(ITextdraw6, 1);
	TextDrawBackgroundColor(ITextdraw6, 51);
	TextDrawFont(ITextdraw6, 1);
	TextDrawSetProportional(ITextdraw6, 1);
	TextDrawSetSelectable(ITextdraw6, true);

	ITextdraw7 = TextDrawCreate(393.500, 203.936, "Serverinfo");
	TextDrawLetterSize(ITextdraw7, 0.449, 1.600);
	TextDrawTextSize(ITextdraw7, 473.500, 14.875);
	TextDrawAlignment(ITextdraw7, 1);
	TextDrawColor(ITextdraw7, -1);
	//TextDrawUseBox(ITextdraw7, 1);
	//TextDrawBoxColor(ITextdraw7, 102);
	TextDrawSetOutline(ITextdraw7, 1);
	TextDrawBackgroundColor(ITextdraw7, 51);
	TextDrawFont(ITextdraw7, 1);
	TextDrawSetProportional(ITextdraw7, 1);
	TextDrawSetSelectable(ITextdraw7, true);

	ITextdraw8 = TextDrawCreate(494.000, 166.684, ""#SCRIPT_VERSION"");
	TextDrawLetterSize(ITextdraw8, 0.277, 0.976);
	TextDrawAlignment(ITextdraw8, 1);
	TextDrawColor(ITextdraw8, -1);
	TextDrawSetOutline(ITextdraw8, -1);
	TextDrawBackgroundColor(ITextdraw8, 51);
	TextDrawFont(ITextdraw8, 0);
	TextDrawSetProportional(ITextdraw8, 1);

	ITextdraw9 = TextDrawCreate(432.000, 253.186, "box");
	TextDrawLetterSize(ITextdraw9, 0.000, 6.921);
	TextDrawTextSize(ITextdraw9, 239.500, 0.000);
	TextDrawAlignment(ITextdraw9, 1);
	TextDrawColor(ITextdraw9, 0);
	TextDrawUseBox(ITextdraw9, 1);
	TextDrawBoxColor(ITextdraw9, -8978330);
	TextDrawFont(ITextdraw9, 0);

	ITextdraw10 = TextDrawCreate(261.500, 277.436, "Passwort vergessen");
	TextDrawLetterSize(ITextdraw10, 0.449, 1.600);
	TextDrawTextSize(ITextdraw10, 414.500, 9.187);
	TextDrawAlignment(ITextdraw10, 1);
	TextDrawColor(ITextdraw10, -1);
	//TextDrawUseBox(ITextdraw10, 1);
	//TextDrawBoxColor(ITextdraw10, 102);
	TextDrawSetOutline(ITextdraw10, 1);
	TextDrawBackgroundColor(ITextdraw10, 51);
	TextDrawFont(ITextdraw10, 1);
	TextDrawSetProportional(ITextdraw10, 1);
	TextDrawSetSelectable(ITextdraw10, true);

	/*ITextdraw9 = TextDrawCreate(369.500, 159.687, "Role");
	TextDrawLetterSize(ITextdraw9, 0.449, 1.600);
	TextDrawAlignment(ITextdraw9, 1);
	TextDrawColor(ITextdraw9, -1);
	TextDrawSetOutline(ITextdraw9, 1);
	TextDrawBackgroundColor(ITextdraw9, 51);
	TextDrawFont(ITextdraw9, 0);
	TextDrawSetProportional(ITextdraw9, 1);

	ITextdraw10 = TextDrawCreate(393.500, 159.750, "play");
	TextDrawLetterSize(ITextdraw10, 0.449, 1.600);
	TextDrawAlignment(ITextdraw10, 1);
	TextDrawColor(ITextdraw10, -8978177);
	TextDrawSetOutline(ITextdraw10, 1);
	TextDrawBackgroundColor(ITextdraw10, 51);
	TextDrawFont(ITextdraw10, 0);
	TextDrawSetProportional(ITextdraw10, 1);

	ITextdraw11 = TextDrawCreate(287.500, 150.562, "Sieben");
	TextDrawLetterSize(ITextdraw11, 0.449, 1.600);
	TextDrawAlignment(ITextdraw11, 1);
	TextDrawColor(ITextdraw11, -8977409);
	TextDrawSetOutline(ITextdraw11, 1);
	TextDrawBackgroundColor(ITextdraw11, 51);
	TextDrawFont(ITextdraw11, 0);
	TextDrawSetProportional(ITextdraw11, 1);

	ITextdraw12 = TextDrawCreate(328.500, 150.187, "Zwerge");
	TextDrawLetterSize(ITextdraw12, 0.449, 1.600);
	TextDrawAlignment(ITextdraw12, 1);
	TextDrawColor(ITextdraw12, -1);
	TextDrawSetOutline(ITextdraw12, 1);
	TextDrawBackgroundColor(ITextdraw12, 51);
	TextDrawFont(ITextdraw12, 0);
	TextDrawSetProportional(ITextdraw12, 1);*/

	//RestartTextDraw
	SRTextdraw5 = TextDrawCreate(197.000000, 319.000000, "Server Restart in 5 Minuten!");
	TextDrawBackgroundColor(SRTextdraw5, 255);
	TextDrawFont(SRTextdraw5, 3);
	TextDrawLetterSize(SRTextdraw5, 0.500000, 1.400000);
	TextDrawColor(SRTextdraw5, 16711935);
	TextDrawSetOutline(SRTextdraw5, 1);
	TextDrawSetProportional(SRTextdraw5, 1);
	TextDrawUseBox(SRTextdraw5, 1);
	TextDrawBoxColor(SRTextdraw5, 83886217);
	TextDrawTextSize(SRTextdraw5, 463.000000, -30.000000);

	SRTextdraw4 = TextDrawCreate(197.000000, 319.000000, "Server Restart in 4 Minuten!");
	TextDrawBackgroundColor(SRTextdraw4, 255);
	TextDrawFont(SRTextdraw4, 3);
	TextDrawLetterSize(SRTextdraw4, 0.500000, 1.400000);
	TextDrawColor(SRTextdraw4, 16711935);
	TextDrawSetOutline(SRTextdraw4, 1);
	TextDrawSetProportional(SRTextdraw4, 1);
	TextDrawUseBox(SRTextdraw4, 1);
	TextDrawBoxColor(SRTextdraw4, 83886217);
	TextDrawTextSize(SRTextdraw4, 464.000000, -30.000000);

	SRTextdraw3 = TextDrawCreate(197.000000, 319.000000, "Server Restart in 3 Minuten!");
	TextDrawBackgroundColor(SRTextdraw3, 255);
	TextDrawFont(SRTextdraw3, 3);
	TextDrawLetterSize(SRTextdraw3, 0.500000, 1.400000);
	TextDrawColor(SRTextdraw3, 16711935);
	TextDrawSetOutline(SRTextdraw3, 1);
	TextDrawSetProportional(SRTextdraw3, 1);
	TextDrawUseBox(SRTextdraw3, 1);
	TextDrawBoxColor(SRTextdraw3, 83886217);
	TextDrawTextSize(SRTextdraw3, 463.000000, -30.000000);

	SRTextdraw2 = TextDrawCreate(133.000000, 319.000000, "Server Restart in 2 Minuten! Bitte Ausloggen!");
	TextDrawBackgroundColor(SRTextdraw2, 255);
	TextDrawFont(SRTextdraw2, 3);
	TextDrawLetterSize(SRTextdraw2, 0.500000, 1.400000);
	TextDrawColor(SRTextdraw2, -65281);
	TextDrawSetOutline(SRTextdraw2, 1);
	TextDrawSetProportional(SRTextdraw2, 1);
	TextDrawUseBox(SRTextdraw2, 1);
	TextDrawBoxColor(SRTextdraw2, 83886217);
	TextDrawTextSize(SRTextdraw2, 570.000000, -30.000000);

	SRTextdraw1 = TextDrawCreate(133.000000, 319.000000, "Server Restart in 1 Minute ! Bitte Ausloggen!");
	TextDrawBackgroundColor(SRTextdraw1, 255);
	TextDrawFont(SRTextdraw1, 3);
	TextDrawLetterSize(SRTextdraw1, 0.500000, 1.400000);
	TextDrawColor(SRTextdraw1, -16776961);
	TextDrawSetOutline(SRTextdraw1, 1);
	TextDrawSetProportional(SRTextdraw1, 1);
	TextDrawUseBox(SRTextdraw1, 1);
	TextDrawBoxColor(SRTextdraw1, 83886217);
	TextDrawTextSize(SRTextdraw1, 570.000000, -30.000000);

	//Intro
	newlogin0 = TextDrawCreate(269.000000, 134.000000, "_");
	TextDrawAlignment(newlogin0, 2);
	TextDrawBackgroundColor(newlogin0, 255);
	TextDrawFont(newlogin0, 1);
	TextDrawLetterSize(newlogin0, 0.500000, 22.299987);
	TextDrawColor(newlogin0, 30);
	TextDrawSetOutline(newlogin0, 0);
	TextDrawSetProportional(newlogin0, 1);
	TextDrawSetShadow(newlogin0, 1);
	TextDrawUseBox(newlogin0, 1);
	TextDrawBoxColor(newlogin0, 80);
	TextDrawTextSize(newlogin0, 0.000000, 787.000000);

	newlogin1 = TextDrawCreate(250.000000, -27.000000, "_");
	TextDrawAlignment(newlogin1, 2);
	TextDrawBackgroundColor(newlogin1, 255);
	TextDrawFont(newlogin1, 1);
	TextDrawLetterSize(newlogin1, 0.500000, 17.300004);
	TextDrawColor(newlogin1, -1);
	TextDrawSetOutline(newlogin1, 0);
	TextDrawSetProportional(newlogin1, 1);
	TextDrawSetShadow(newlogin1, 1);
	TextDrawUseBox(newlogin1, 1);
	TextDrawBoxColor(newlogin1, 200);
	TextDrawTextSize(newlogin1, 0.000000, 787.000000);

	newlogin2 = TextDrawCreate(250.000000, 341.000000, "_");
	TextDrawAlignment(newlogin2, 2);
	TextDrawBackgroundColor(newlogin2, 255);
	TextDrawFont(newlogin2, 1);
	TextDrawLetterSize(newlogin2, 0.500000, 16.200000);
	TextDrawColor(newlogin2, -1);
	TextDrawSetOutline(newlogin2, 0);
	TextDrawSetProportional(newlogin2, 1);
	TextDrawSetShadow(newlogin2, 1);
	TextDrawUseBox(newlogin2, 1);
	TextDrawBoxColor(newlogin2, 200);
	TextDrawTextSize(newlogin2, 0.000000, 787.000000);

	newlogin3 = TextDrawCreate(284.000000, 31.000000, "Willkommen");
	TextDrawBackgroundColor(newlogin3, 255);
	TextDrawFont(newlogin3, 3);
	TextDrawLetterSize(newlogin3, 0.529999, 1.900000);
	TextDrawColor(newlogin3, -156);
	TextDrawSetOutline(newlogin3, 0);
	TextDrawSetProportional(newlogin3, 1);
	TextDrawSetShadow(newlogin3, 1);

	newlogin4 = TextDrawCreate(325.000000, 51.000000, "AUF");
	TextDrawBackgroundColor(newlogin4, 255);
	TextDrawFont(newlogin4, 2);
	TextDrawLetterSize(newlogin4, 0.440000, 1.700000);
	TextDrawColor(newlogin4, -156);
	TextDrawSetOutline(newlogin4, 0);
	TextDrawSetProportional(newlogin4, 1);
	TextDrawSetShadow(newlogin4, 1);

	newlogin5 = TextDrawCreate(246.000000, 73.000000, "DSZ");
	TextDrawBackgroundColor(newlogin5, 255);
	TextDrawFont(newlogin5, 3);
	TextDrawLetterSize(newlogin5, 0.779999, 3.699998);
	TextDrawColor(newlogin5, -1);
	TextDrawSetOutline(newlogin5, 1);
	TextDrawSetProportional(newlogin5, 1);

	//newlogin6 = TextDrawCreate(79.000000, 103.000000, ".");
	newlogin6 = TextDrawCreate(179.000000, 103.000000, ".");
	TextDrawBackgroundColor(newlogin6, 255);
	TextDrawFont(newlogin6, 1);
	TextDrawLetterSize(newlogin6, 29.940078, 1.000000);
	TextDrawColor(newlogin6, -1);
	TextDrawSetOutline(newlogin6, 1);
	TextDrawSetProportional(newlogin6, 1);

	newlogin7 = TextDrawCreate(281.000000, 114.000000, "Role");
	TextDrawBackgroundColor(newlogin7, 255);
	TextDrawFont(newlogin7, 2);
	TextDrawLetterSize(newlogin7, 0.470000, 1.500000);
	TextDrawColor(newlogin7, 513867775);
	TextDrawSetOutline(newlogin7, 1);
	TextDrawSetProportional(newlogin7, 1);

	newlogin8 = TextDrawCreate(390.000000, 113.000000, ""#SCRIPT_VERSION"");
	TextDrawBackgroundColor(newlogin8, 255);
	TextDrawFont(newlogin8, 2);
	TextDrawLetterSize(newlogin8, 0.270000, 1.200000);
	TextDrawColor(newlogin8, -156);
	TextDrawSetOutline(newlogin8, 0);
	TextDrawSetProportional(newlogin8, 1);
	TextDrawSetShadow(newlogin8, 1);

	newlogin9 = TextDrawCreate(340.000000, 73.000000, "Die Sieben Zwerge");
	TextDrawBackgroundColor(newlogin9, 255);
	TextDrawFont(newlogin9, 3);
	TextDrawLetterSize(newlogin9, 0.779999, 3.699998);
	TextDrawColor(newlogin9, 346095615);
	TextDrawSetOutline(newlogin9, 1);
	TextDrawSetProportional(newlogin9, 1);

	newlogin10 = TextDrawCreate(337.000000, 114.000000, "Play");
	TextDrawBackgroundColor(newlogin10, 255);
	TextDrawFont(newlogin10, 2);
	TextDrawLetterSize(newlogin10, 0.470000, 1.500000);
	TextDrawColor(newlogin10, -1);
	TextDrawSetOutline(newlogin10, 1);
	TextDrawSetProportional(newlogin10, 1);

	for(new v=1; v<MAX_VEHICLES; v++)
	{
		SetVehicleNumberPlate(v, "dsz-rl.de");
		carhatneon[v] = 0;
	}
	InitialFraks();
	SupportBubble=TextDrawCreate(502.5,150.0,"~w~Meldungen:~N~_~N~_~N~_~N~_~N~_~N~_~N~_~N~_~N~_~N~_");
	TextDrawFont(SupportBubble,2);
	TextDrawSetProportional(SupportBubble,1);
	TextDrawLetterSize(SupportBubble,0.45,1.6);
	TextDrawUseBox(SupportBubble,true);
	TextDrawBoxColor(SupportBubble,0x0000009A);
	TextDrawSetShadow(SupportBubble,false);
	new Float:S_TextPos=0.0,S_NumText[12],S_Nums=1;
	new si; while(si<sizeof(SupportInfo)){
	    SupportInfo[si][Ssys_Benutzt] = -255;
	    SupportInfo[si][Ssys_FromID] = -255;
	    format(S_NumText,sizeof(S_NumText),"~g~[%d]",S_Nums);
		SupportInfo[si][S_Nummern]=TextDrawCreate(502.5,185.0+S_TextPos,S_NumText);
		TextDrawFont(SupportInfo[si][S_Nummern],1);
		TextDrawSetProportional(SupportInfo[si][S_Nummern],1);
		TextDrawLetterSize(SupportInfo[si][S_Nummern],0.18,0.8);
		TextDrawSetShadow(SupportInfo[si][S_Nummern],0);
		SupportInfo[si][S_Text]=TextDrawCreate(518.0,185.0+S_TextPos,"~g~Keine Meldung");
		TextDrawFont(SupportInfo[si][S_Text],1);
		TextDrawSetProportional(SupportInfo[si][S_Text],1);
		TextDrawLetterSize(SupportInfo[si][S_Text],0.18,0.8);
		TextDrawSetShadow(SupportInfo[si][S_Text],0);
		S_TextPos+=5.75;
		S_Nums++;
		si++;
	}
	// Init our text display
	txtAnimHelper = TextDrawCreate(610.0, 400.0,
	"~b~~k~~PED_LOCK_TARGET~ ~w~um die Animation zu beenden");
	TextDrawUseBox(txtAnimHelper, 0);
	TextDrawFont(txtAnimHelper, 2);
	TextDrawSetShadow(txtAnimHelper,0); // no shadow
    TextDrawSetOutline(txtAnimHelper,1); // thickness 1
    TextDrawBackgroundColor(txtAnimHelper,0x000000FF);
    TextDrawColor(txtAnimHelper,0xFFFFFFFF);
    TextDrawAlignment(txtAnimHelper,3); // align right
	for(new i; i < GetMaxPlayers(); i++){
	    if(IsPlayerConnected(i) && i != INVALID_PLAYER_ID){
			SetPVarInt(i,"Showed",0);
		}
	}
	// CreatedCars check
	for(new v=1; v<MAX_VEHICLES; v++)
    {
        carhatneon[v] = 0;
    }

	for(new i = 0; i < sizeof(CreatedCars); i++)
	{
	    CreatedCars[i] = 0;
	}
	for(new i = 0; i <= sizeof(Peds)-1; i++)
	{
		AddPlayerClass(Peds[i][0],1958.3783,1343.1572,1100.3746,269.1425,-1,-1,-1,-1,-1,-1);
	}
	LoadProperty();
    mysql_query("UPDATE accounts SET Adjustable = '0'");
	nodm1 = GangZoneCreate(1160.849365, -977.852722, 1232.849365, -873.852722);//BSN
	nodm2 = GangZoneCreate(-1997.372314, 84.072692, -1941.372314, 220.072692);//Bahnhof SF
	nodm3 = GangZoneCreate(1065.120849, -1569.983276, 1185.120849, -1417.983276);//Einkaufszentrum
	nodm4 = GangZoneCreate(-2195.342529, -287.523559, -2011.342529, -79.523559);//Fahrschule
 	nodm5 = GangZoneCreate(455.340240, -1581.744995, 519.340209, -1437.744995);//Noobspawn
	nodm6 = GangZoneCreate(1388.671875, -1886.71875, 1593.75, -1746.09375);//Stadthalle
	//nodmsilv = GangZoneCreate(457.03125, -2185.546875, 767.578125, -1992.1875);//Stadthalle

	sperrzone = GangZoneCreate(-87.890625, 1652.34375, 404.296875, 2156.25);

 	//Rent System
 	nrg1 = AddStaticVehicle(522,546.29998779,-1290.69995117,16.89999962,2.00000000,-1,-1); //NRG-500
	nrg2 = AddStaticVehicle(522,543.20001221,-1290.69995117,16.89999962,1.99841309,-1,-1); //NRG-500
	fcr1 = AddStaticVehicle(521,540.20001221,-1290.90002441,16.89999962,0.00000000,-1,-1); //FCR-900
	fcr2 = AddStaticVehicle(521,538.09997559,-1291.00000000,16.89999962,0.00000000,-1,-1); //FCR-900
	pat1 = AddStaticVehicle(470,552.79998779,-1263.30004883,17.39999962,220.00000000,-1,-1); //Patriot
	pat2 = AddStaticVehicle(470,549.20001221,-1265.50000000,17.39999962,219.99572754,-1,-1); //Patriot
	sultan1 = AddStaticVehicle(560,543.20001221,-1270.00000000,17.10000038,220.00000000,-1,-1); //Sultan
	sultan2 = AddStaticVehicle(560,546.00000000,-1268.00000000,17.00000000,219.99572754,-1,-1); //Sultan
	infi1 = AddStaticVehicle(411,540.00000000,-1272.50000000,17.00000000,218.00000000,-1,-1); //Infernus
	infi2 = AddStaticVehicle(411,537.29998779,-1274.69995117,17.00000000,217.99621582,-1,-1); //Infernus
	hot = AddStaticVehicle(502,533.50000000,-1277.40002441,17.20000076,222.00000000,-1,-1); //Hotring Racer A
	comet = AddStaticVehicle(480,529.90002441,-1280.80004883,17.10000038,238.00000000,-1,-1); //Comet
	hotknife = AddStaticVehicle(434,533.70001221,-1290.09997559,17.39999962,0.00000000,-1,-1); //Hotknife
	bf = AddStaticVehicle(424,529.00000000,-1286.30004883,17.10000038,284.00000000,-1,-1); //BF Injection

 	Zug[0][fid] = AddStaticVehicleEx(449,-2006.5000,136.7354,27.9973,180.0000,1,1,-1);
	Zug[1][fid] = AddStaticVehicleEx(449,-2006.5000,147.5728,27.9973,180.0000,1,1,-1);
	Zug[2][fid] = AddStaticVehicleEx(449,-2006.5000,158.2648,27.9973,180.0000,1,1,-1);
	Zug[3][fid] = AddStaticVehicleEx(449,-2006.5000,185.4301,27.9973,180.0000,1,1,-1);
	Zug[4][fid] = AddStaticVehicleEx(449,-2006.5000,197.7151,27.9973,180.0000,1,1,-1);

	FSCar[0] = AddStaticVehicle(560,1552.1752,-1774.4695,13.2520,270.1876,1,1); // FSCar1
	FSCar[1] = AddStaticVehicle(560,1552.1823,-1778.7209,13.2519,269.8154,1,1); // FSCar2
	FSCar[2] = AddStaticVehicle(560,1552.0453,-1783.2217,13.2519,270.0228,1,1); // FSCar2
	FSCar[3] = AddStaticVehicle(560,1552.1259,-1788.3160,13.2518,271.2924,1,1); // FSCar3
	FSCar[4] = AddStaticVehicle(560,1552.2614,-1792.6219,13.2517,270.5884,1,1); // FSCar4

	FSCarText[0] = Create3DTextLabel("| Fahrschulauto |\nNicht angreifen!",0xFFAA00FF,0.0,0.0,0.0,30,0,0);
	Attach3DTextLabelToVehicle(FSCarText[0],FSCar[0],0.0,0.0,0.0);

	FSCarText[1] = Create3DTextLabel("| Fahrschulauto |\nNicht angreifen!",0xFFAA00FF,0.0,0.0,0.0,30,0,0);
	Attach3DTextLabelToVehicle(FSCarText[1],FSCar[1],0.0,0.0,0.0);

	FSCarText[2] = Create3DTextLabel("| Fahrschulauto |\nNicht angreifen!",0xFFAA00FF,0.0,0.0,0.0,30,0,0);
	Attach3DTextLabelToVehicle(FSCarText[2],FSCar[2],0.0,0.0,0.0);

	FSCarText[3] = Create3DTextLabel("| Fahrschulauto |\nNicht angreifen!",0xFFAA00FF,0.0,0.0,0.0,30,0,0);
	Attach3DTextLabelToVehicle(FSCarText[3],FSCar[3],0.0,0.0,0.0);

	FSCarText[4] = Create3DTextLabel("| Fahrschulauto |\nNicht angreifen!",0xFFAA00FF,0.0,0.0,0.0,30,0,0);
	Attach3DTextLabelToVehicle(FSCarText[4],FSCar[4],0.0,0.0,0.0);


	AddStaticPickup(1239,23,2779.3071,-2417.6174,13.3333,0); // /getpaket i Punkt
	Create3DTextLabel("Paketlieferanten Punkt\n /getpaket\nPakete laden",0xFFAA00FF,2779.3071,-2417.6174,13.3333,30.0,0); // /getpaket Text

	AddStaticPickup(1239,1,2471.0193,-1750.0208,1.9000,0); // /getpaket i Punkt
	Create3DTextLabel("-| {FF8200}Immobilienmakler{FFFFFF} |-\n /immobilien\n/findhaus",0xFFFFFFFF,2471.0193,-1750.0208,1.9000,6.0,0); // /getpaket Text

	AddStaticPickup(1239,23,1485.9834,-998.8322,28.0759); // /getpin i Punkt
	AddStaticPickup(1239,23,1446.1014,-1004.1183,33.8809); // Banktresor
	Create3DTextLabel("Bank Schalter\n/getpin /getcard\nPIN Code und Bankkarte",0xFFAA00FF,1485.9834,-998.8322,28.0759,5.0,0); // /getpin Text
	Create3DTextLabel(">> Bank von San Andreas <<\nGebe '/exit' ein, um das Gebдude zu verlassen",0xFFAA00FF,1461.3235,-1007.3925,28.0759,2.0,0);
	Create3DTextLabel(">> Banktresor <<\nTдter: /closesaferoom\nPolizei: /banksaferoom",0xFFAA00FF,1446.1014,-1004.1183,33.8809,3.0,0);

	//Pickup Kampfstyle
	AddStaticPickup(1239, 1, 760.5883,5.7983,1000.7083);
	Create3DTextLabel("Benutze:\n/changefightstyle\num deinen Kampstyle zu wechseln",0xFFAA00FF,760.5883,5.7983,1000.7083,20.0,-1); // /getpin Text

	AddStaticPickup(1239,1,2098.2563,-1802.4960,13.5543); //Pickup Pizza
	CreateDynamic3DTextLabel("Benutze:\n/Pizzabote\num den Job anzunehmen!" ,0xFFFFFFFF,2098.2563,-1802.4960,13.5543,5); // Schwarzmarkt Vorne


	//Hut Laden
	AddStaticPickup(1239,1,1100.2570,-1501.6738,15.7969,0);//Hьteladen info punkt
	Create3DTextLabel("Hьte Shop",COLOR_GRAD2,1100.2570,-1501.6738,15.7969,10,0,1);

	AddStaticPickup(1239, 1, 1092.2244,-1505.0039,15.8759);
	Create3DTextLabel("Hьte Shop\nTippe: /hutmenu Um ein Hut zu kaufen",COLOR_ORANGE,1092.2244,-1505.0039,15.8759,5,0,1);

	//MAPS AND VEHICLES ETC

	lspdinside = CreateObject(1508,228.189224,149.707275,1003.023437,0.000000,0.000000,179.915008); //widedoorlvpd1
 	lspdinside2 = CreateObject(1508,228.169174,159.683166,1003.023437,0.000000,0.000000,179.915008); //cpy_widedoorlvpd1
 	lspdinside3 = CreateObject(1508,231.374679,169.906127,1002.970153,0.000000,0.000000,89.373283); // cpy_cpy_widedoorlvp
 	sfpdinside = CreateObject(2952,239.6796875,118.6474609375,1002.1047363281,0,0,0); //door1
 	sfpdinside2 = CreateObject(2952,253.14453125,110.1552734375,1002.1047363281,0,0,0); //door3
 	fbiinside = CreateObject(5020,246.36054993,72.47512054,1004.32519531,0.00000000,0.00000000,90.00000000); //FBI oben

	MVTor = CreateObject(971, 1589.148315, -1638.497070, 15.292543, 0.0000, 0.0000, 180.0000); //LSPD Tor
	SFPDTor = CreateObject(10184, -1631.78, 688.24, 8.68, 0.00, 0.00, 90.00);//Ausfahrt nach garage
	SFPDTor1 = CreateObject(968,-1572.18359375,658.8369140625,6.8281240463257,0,89,90); //object (barrierturn) (1)
	SFPDTor2 = CreateObject(968,-1701.4208984375,687.474609375,24.643125534058,0,271,90); //object (barrierturn) (2)

	//--------------------------tore------------------------------
	//Medic = CreateObject(988, 1141.5, -1291.27832, 13.41, 0.0000, 0.0000, 180);

	CreateDynamicObject(980,1100.57421875,2292.94433594,6.59370422,0.00000000,0.00000000,270.00000000); //gate2 auf
    yakuzzahaupt = CreateObject(980, 1792.0274658203, -1434.2565917969, 15.193693161011, 0.0000, 0.0000, 0.0);
	yakuzza = CreateObject(971, 1725.89453125, -1379.947265625, 16.146776199341, 0.0000, 0.0000, 269.20349121094);
    //zu

//	Hitman = CreateObject(980,-489.35839844,-562.80468750,27.29864311,0.00000000,0.00000000,0.00000000); //object(airportgate) (1)

	HellAngles = CreateObject(7657,2287.41308594,603.21972656,11.52715492,0.00000000,0.00000000,180.00000000); //htor1 zu
 	HellAnglesBoot = CreateObject(991,2293.89257812,550.68511963,5.32611465,0.00000000,0.00000000,0.00000000); //tor1 zu
 	HellAnglesBoot2 = CreateObject(991,2359.71484375,550.61132812,5.40084839,0.00000000,0.00000000,0.00000000); //tor2 zu

	mecha1 = CreateObject(971,-1920.59997559,279.00000000,43.59999847,0.00000000,0.00000000,0.00000000); //x=-1930=zu geschw.3
	mecha2 = CreateObject(971,-1913.54626465,279.00000000,43.59999847,0.00000000,0.00000000,0.00000000); //geschw 4
	mecha3 = CreateObject(980,1444.65954590,-1334.50622559,15.31619263,0.00000000,0.00000000,270.00000000); //auf=y=-1341.5062255859
	mecha4 = CreateObject(980,1444.70178223,-1323.03881836,15.30958748,0.00000000,0.00000000,270.00000000); //auf=y=-1317.0388183594
    //--------------------------tore------------------------------

	house29 = CreateObject(976, 324.541504, -1185.746216, 75.446060, 0.0000, 0.0000, 218.9067);
	house80 = CreateObject(974, 417.39999390,-1251.00000000,50.20000076,0.00000000,0.00000000,21.00000000);
	house41 = CreateObject(976, 999.07653808594, -645.56768798828, 120.82972717285, 0.0000, 2, 24.088012695313);
	house132 = CreateObject(980,1245.50000000,-767.29998779,91.40000153,0.00000000,0.00000000,0.25000000); //object(airportgate) (1)
	house42 = CreateObject(971,263.30691528,-1333.51733398,55.82236481,0.00000000,0.75000000,214.75000000);
	house10 = CreateObject(971, 200.54979, -1386.52197, 48.31569,   0.18000, 0.00000, 46.20000);
	house24 = CreateObject(971,261.61523438,-1231.75097656,73.57868958,356.01196289,6.00952148,215.40893555);
	house16 = CreateObject(980,282.59277344,-1319.92773438,55.45948792,0.00000000,0.00000000,32.74475098);
	//house105 = CreateObject(980,1535.41015625,-1451.41503906,14.61092949,0.00000000,0.00000000,0.00000000);
	house12 = CreateObject(8674,210.97772217,-1350.30932617,50.79999924,0.00000000,0.00000000,42.00000000);
	house95_1 = CreateObject(980,2507.32128906,1603.60351562,12.35801506,0.00000000,0.00000000,0.00000000); //object(airportgate) (2)
	house95_2 = CreateObject(980,2567.30175781,1483.52832031,12.34526825,0.00000000,0.00000000,0.00000000); //object(airportgate) (3)

	house59 = CreateObject(971, 832.90, -866.31, 67.21,   0.00, 0.00, 20.80);

	house155_1 = CreateObject(971, 1149.14, 1362.68, 10.06,   0.00, 0.00, 0.00);
	house155_2 = CreateObject(971, 1140.32, 1362.69, 10.06,   0.00, 0.00, 0.00);
	house155_3 = CreateObject(971, 1131.52, 1362.70, 10.06,   0.00, 0.00, 0.00);

	house53_1 = CreateObject(980, 2702.42, 737.50, 12.36,   0.00, 0.00, 90.00);
	house53_2 = CreateObject(980, 2702.42, 750.84, 12.36,   0.00, 0.00, 90.00);
	//
	army_vorne1 = CreateObject(19313, 134.65, 1941.49, 21.09,   0.00, 0.00, 0.00);
	army_garage = CreateObject(980, 213.78, 1875.45, 13.33,   0.00, 0.00, 0.00);
	army_seite = CreateObject(5422, 96.72, 1920.80, 19.18,   0.00, 0.00, 0.00);
	army_flug1 = CreateObject(19313, 285.66, 1819.94, 19.35,   0.00, 0.00, 90.00);
	//
	wcctor = CreateObject(980, 786.467102, -1152.395630, 25.392490, 0.0000, 0.0000, 270.0000);
	wcctor2 = CreateObject(980, 664.891663, -1308.773438, 15.234329, 0.0000, 0.0000, 0.0000,0);
	wcctor1 = CreateObject(980, 660.214783, -1227.483398, 17.710842, 0.0000, 0.0000, 239.6878,0);
	//

	//OamtLS = CreateObject(971, 924.210754, -1216.086304, 16.024687, 0.0000, 0.0000, 90.0000);
	//OamtLS2 = CreateObject(971, 924.129578, -1216.344849, 23.140125, 0.0000, 179.5181, 89.1405);

	pdtor = CreateObject(968, 1544.679077, -1630.782959, 13.079567, 0.0000, 269.7592, 270.0000);
	CreateDynamicObject(985, 1544.524780, -1635.024292, 14.114604, 0.0000, 0.0000, 88.5219);
	CreateDynamicObject(985, 1542.285522, -1620.788452, 14.090232, 0.0000, 0.0000, 125.4778);
	PDLift = CreateObject(986, 1570.737793, -1633.661011, 12.264572, 90.2408, 0.0000, 0.0000);
	fbi2 = CreateObject(971, 2334.928467, 2443.505371, 8.008367, 0.0000, 0.0000, 56.2500);// Tor 2
	fbi3 = CreateObject(971, 2294.054443, 2499.248291, 5.523099, 0.0000, 0.0000, 90.0000);// TOR 3
	CreateDynamicObject(1495, 2248.744141, 2487.058838, 10.031902, 0.0000, 0.0000, 270.0000);
	/* ~~~~~~~~~~~~~~~~~INNEN TORE IM FBI PD~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
												//1003.2188
	fbi6 = CreateObject(974, 253.0571,109.3200,91003.2188, 0.0000, 0.0000, 270.0000);//TOR_LINKS1
	fbi7 = CreateObject(974, 253.0739,125.4527,91003.2188, 0.0000, 0.0000, 270.0000);//TOR_LINKS2
	fbi8 = CreateObject(974, 239.5395,125.0995,91003.2257, 0.0000, 0.0000, 270.0000);//TOR_RECHTS2
	fbi9 = CreateObject(974, 239.5698,117.6777,91003.2188, 0.0000, 0.0000, 270.0000);//TOR_RECHTS1

	CarInit();

	//-----------------------------------------------------------------------------------
	//-------------------------------  MENЬS --------------------------------------------
    ShowMe = CreateMenu("ShowMe", 1, 50.0, 220.0, 200.0, 200.0);
    SetMenuColumnHeader(ShowMe, 0, "ShowMe");
	AddMenuItem(ShowMe, 0, "Gelb");
	AddMenuItem(ShowMe, 0, "Rot");
	AddMenuItem(ShowMe, 0, "Gruen");
	AddMenuItem(ShowMe, 0, "Blau");
	AddMenuItem(ShowMe, 0, "Pink");
	AddMenuItem(ShowMe, 0, "Schwarz");
	AddMenuItem(ShowMe, 0, "Orange"); // 0xFF9600FF
	AddMenuItem(ShowMe, 0, "Braun"); // 0x652B00FF
	AddMenuItem(ShowMe, 0, "Unsichtbar");

	HandyShop = CreateMenu("HandyShop", 1, 80.0,150.0,300.0,300.0);
	SetMenuColumnHeader(HandyShop, 0, "Willkommen.");
	AddMenuItem(HandyShop, 0, "LG KP 9999       		$ 200");
	AddMenuItem(HandyShop, 0, "Samsung Galexy S Plus 2	$ 500");
	AddMenuItem(HandyShop, 0, "Samsung Galaxy S50       $ 1.000");
	AddMenuItem(HandyShop, 0, "Samsung Nota     		$ 1.500");
	AddMenuItem(HandyShop, 0, "HTC Sensatiens   		$ 2.000");
	AddMenuItem(HandyShop, 0, "LG Optimus Call  		$ 2.800");
	AddMenuItem(HandyShop, 0, "HTC Desires HP   		$ 3.900");
	AddMenuItem(HandyShop, 0, "iZwerg 					$ 10.000");
	//Uhrenshop
	UhrenShop = CreateMenu("HandyShop", 1, 80.0,150.0,300.0,300.0);
	SetMenuColumnHeader(UhrenShop, 0, "Willkommen.");
	AddMenuItem(UhrenShop, 0, "Rolex     $ 100.000");
	AddMenuItem(UhrenShop, 0, "Breitling $ 80.000");
	AddMenuItem(UhrenShop, 0, "Junghans  $ 55.000");
	AddMenuItem(UhrenShop, 0, "Zeiss     $ 35.000");
	AddMenuItem(UhrenShop, 0, "Swatch    $ 10.000");

	//Tourist Guide
 	Navigation = CreateMenu("Navigation", 1, 50.0, 180.0, 200.0, 200.0);
    SetMenuColumnHeader(Navigation, 0, "LS Touristen Guide");
    AddMenuItem(Navigation, 0, "Stadthalle");
    AddMenuItem(Navigation, 0, "Krankenhaus");
    AddMenuItem(Navigation, 0, "Polizei");
    AddMenuItem(Navigation, 0, "Zivi Spawn");
    AddMenuItem(Navigation, 0, "Arbeitsamt");
    AddMenuItem(Navigation, 0, "City Bank");
    AddMenuItem(Navigation, 0, "Handyladen");
    AddMenuItem(Navigation, 0, "Uhrenladen");
    AddMenuItem(Navigation, 0, "Exit Menu");



	BOMB = CreateMenu("Bombe:",1,200.0,180.0,200.0);
    SetMenuColumnHeader(BOMB, 0, "Waehle einen Draht!");
	AddMenuItem(BOMB,0,">>~r~ Rot");//rot,gelb,grьn,blau
	AddMenuItem(BOMB,0,">>~y~ Gelb");
	AddMenuItem(BOMB,0,">>~g~ Gruen");
	AddMenuItem(BOMB,0,">>~b~ Blau");

	BOMBD = CreateMenu("Bombe:",1,200.0,180.0,200.0);
    SetMenuColumnHeader(BOMBD, 0, "Waehle einen Draht!");
	AddMenuItem(BOMBD,0,">>~r~ Rot");//rot,gelb,grьn,blau
	AddMenuItem(BOMBD,0,">>~y~ Gelb");
	AddMenuItem(BOMBD,0,">>~g~ Gruen");
	AddMenuItem(BOMBD,0,">>~b~ Blau");

	PruefungMenu = CreateMenu(" ",1, 70.0, 180.0, 30.0);
	AddMenuItem(PruefungMenu,0,"a)");
	AddMenuItem(PruefungMenu,0,"b)");
	AddMenuItem(PruefungMenu,0,"c)");
	AddMenuItem(PruefungMenu,0,"d)");

    CreatePickup(1274, 1, 233.7505,112.1678,1010.2188);
	FBI = CreateMenu("Ausrьstungen", 2, 233.0, 100.0, 150.0, 50.0);
    AddMenuItem(FBI, 0, "FBI 1 [rank1,2]");
	AddMenuItem(FBI, 0, "FBI 2 [rank3]");
	AddMenuItem(FBI, 0, "FBI 3 [rank4]");
	AddMenuItem(FBI, 0, "FBI 4 [rank5,6]");
	AddMenuItem(FBI, 0, "FBI 5 [leader]");
    AddMenuItem(FBI, 0, "SEK 1");
	AddMenuItem(FBI, 0, "SEK 2");
	AddMenuItem(FBI, 0, "SEK 3");
	AddMenuItem(FBI, 0, "SEK 4");
	AddMenuItem(FBI, 0, "SEK 5");
	AddMenuItem(FBI, 0, "SSW+H");
	AddMenuItem(FBI, 0, "MENU_VERLASSEN");

	BSMK = CreateMenu("BSMK", 2, 233.0, 100.0, 150.0, 50.0);
    AddMenuItem(BSMK, 0, "3 Chicken Nuggets");
	AddMenuItem(BSMK, 0, "9 Chicken Nuggets");
	AddMenuItem(BSMK, 0, "20 Chicken Nuggets");
	AddMenuItem(BSMK, 0, "Cheesburger");
	AddMenuItem(BSMK, 0, "Chickenburger");
	AddMenuItem(BSMK, 0, "MC CHICKEN");
	AddMenuItem(BSMK, 0, "Pommes");
	AddMenuItem(BSMK, 0, "Big Mac");
	AddMenuItem(BSMK, 0, "Fisch Mac");
	AddMenuItem(BSMK, 0, "Cola");
	AddMenuItem(BSMK, 0, "MENU_VERLASSEN");

	DONUT = CreateMenu("DONUT", 2, 233.0, 100.0, 150.0, 50.0);
    AddMenuItem(DONUT, 0, "Apple-Zimt");
	AddMenuItem(DONUT, 0, "Banana Frosted");
	AddMenuItem(DONUT, 0, "Chocolate Creme");
	AddMenuItem(DONUT, 0, "Strawberry");
	AddMenuItem(DONUT, 0, "Himbeer-Vanille");
	AddMenuItem(DONUT, 0, "Sugar Donut");
	AddMenuItem(DONUT, 0, "Nougat-Vanille");
	AddMenuItem(DONUT, 0, "Glazed Donut");
	AddMenuItem(DONUT, 0, "Double Chocolate");
	AddMenuItem(DONUT, 0, "Butternut");
	AddMenuItem(DONUT, 0, "MENU_VERLASSEN");

	RESTAURANT = CreateMenu("RESTAURANT", 2, 233.0, 100.0, 150.0, 50.0);
    AddMenuItem(DONUT, 0, "Cafй");
	AddMenuItem(DONUT, 0, "Cola");
	AddMenuItem(DONUT, 0, "Limonade");
	AddMenuItem(DONUT, 0, "Salat");
	AddMenuItem(DONUT, 0, "Nudeln mit Sose");
	AddMenuItem(DONUT, 0, "Schnitzel mit Pommes");
	AddMenuItem(DONUT, 0, "Hummer mit Garnelen");
	AddMenuItem(DONUT, 0, "Wirsing-Eintopf mit Mettenden");
	AddMenuItem(DONUT, 0, "Lammkeule");
	AddMenuItem(DONUT, 0, "Eis");
	AddMenuItem(DONUT, 0, "MENU_VERLASSEN");

	PMK = CreateMenu("PMK", 2, 233.0, 100.0, 150.0, 50.0);
    AddMenuItem(PMK, 0, "Pommes mit Ketchup");
	AddMenuItem(PMK, 0, "Toast");
	AddMenuItem(PMK, 0, "Schnitzel mit Salat");
	AddMenuItem(PMK, 0, "Pizza");
	AddMenuItem(PMK, 0, "Kotlett");
	AddMenuItem(PMK, 0, "Gulasch");
	AddMenuItem(PMK, 0, "Grillhuhn");
	AddMenuItem(PMK, 0, "GemьЯe Suppe");
	AddMenuItem(PMK, 0, "Cola");
	AddMenuItem(PMK, 0, "Bier");
	AddMenuItem(PMK, 0, "MENU_VERLASSEN");

	CBKM = CreateMenu("CBKM", 2, 233.0, 100.0, 150.0, 50.0);
    AddMenuItem(CBKM, 0, "Magerita");
	AddMenuItem(CBKM, 0, "Gemьse Pizza");
	AddMenuItem(CBKM, 0, "Schinken");
	AddMenuItem(CBKM, 0, "Pizza ala Luigi");
	AddMenuItem(CBKM, 0, "Cola");
	AddMenuItem(CBKM, 0, "Sprite");
	AddMenuItem(CBKM, 0, "Fanta");
	AddMenuItem(CBKM, 0, "Red Bull");
	AddMenuItem(CBKM, 0, "Ice Tea");
	AddMenuItem(CBKM, 0, "FoD Spezial Pizza");
	AddMenuItem(CBKM, 0, "MENU_VERLASSEN");


		//-----------------------------------------------------------------------------------
							//TEXTDRAWS

		//-----------------------------------------------------------------------------------
	SetTimer("OnFireUpdate", 500, 1);
	for(new i; i < MAX_PLAYERS; i++)
	{
	    ExtTimer[i] = -1;
	}

	SetTimer("BrandTimer", 600000 + random(3600000),true);
	//----------------------------kalender-----------------------------------------------------------
	return 1;
}
Reply
#4

Compile script with -d3/-d2 command in pawn.cfg - then you will get the line of error.
Reply
#5

Quote:

C:\Users\Administrator\Desktop\DSZ\gamemodes\gamem ode_2.2.4.pwn(89840) : warning 203: symbol is never used: "ret_memcpy"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

Header size: 22828 bytes
Code size: 3738424 bytes
Data size: 9943260 bytes
Stack/heap size: 32768 bytes; estimated max. usage: unknown, due to recursion
Total requirements:13737280 bytes

1 Warning.

This?
Reply
#6

Exactly! Now when the server crashes just post the server_log.txt here.
Reply
#7

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

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

[13:20:57] filterscripts = ""  (string)
[13:20:57] weburl = "www.sa-mp.com"  (string)
[13:20:57] 
[13:20:57] Server Plugins
[13:20:57] --------------
[13:20:57]  Loading plugin: sscanf
[13:20:57] 

[13:20:57]  ===============================

[13:20:57]       sscanf plugin loaded.     

[13:20:57]          Version:  2.8.1        

[13:20:57]    © 2012 Alex "******" Cole  

[13:20:57]  ===============================

[13:20:57]   Loaded.
[13:20:57]  Loading plugin: crashdetect
[13:20:57]   CrashDetect v4.14 is OK.
[13:20:57]   Loaded.
[13:20:57]  Loading plugin: streamer
[13:20:58]   Loaded.
[13:20:58]  Loading plugin: Whirlpool
[13:20:58]  
[13:20:58]  ==================
[13:20:58]  
[13:20:58]   Whirlpool loaded
[13:20:58]  
[13:20:58]  ==================
[13:20:58]  
[13:20:58]   Loaded.
[13:20:58]  Loading plugin: mysql
[13:20:58]  SA:MP MySQL Plugin v2.1.1 Loaded.
[13:20:58]   Loaded.
[13:20:58]  Loading plugin: nativechecker
[13:20:58] [MySQL] Thread running. Threadsafe: Yes.
[13:20:58]   Loaded.
[13:20:58]  Loaded 6 plugins.

[13:20:58] 
[13:20:58] Filterscripts
[13:20:58] ---------------
[13:20:58]   Loaded 0 filterscripts.

[13:20:58] [MySQL] Connected (0) to 'samp_dsz'@'localhost via TCP/IP'.
[13:20:58] [MySQL] Server Version 5.5.36.
[13:20:58] MySQL-Verbindung wurde erfolgreich hergestellt
[13:20:58] [debug] Server crashed while executing gamemode_2.2.4.amx
[13:20:58] [debug] AMX backtrace:
[debug] #0 ???????? in public Itter_OnGameModeInit () from gamemode_2.2.4.amx
[debug] #1 native CallLocalFunction () from samp-server.exe
[debug] #2 ???????? in public OnGameModeInit () from gamemode_2.2.4.amx
Reply
#8

Put this anyware in your script

#pragma unused ret_memcpy

And the error must be somewhere in "OnGameModeInit"
Reply
#9

I know that..But how will this help?
Reply
#10

I mean debug mode - create new file and name it pawn.cfg in folder pawno which will be contest this below

Код:
-d2 -r
Now compile your gamemode and run server - then crashdetect should type error line.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)