Server won't start
#1

hey guys. after a few years break of this game, i wanted to start with a few friends a new server with our old script, at first i had to update the whole includes and the plugins.
at first the server crashed with an error in the logfile, that the Function CreateDynamicObject hasn't been registered. since i've fixed this one the server crashs without any error, but there is now a warning when compiling the file
just wanted to ask you for help, here are some codes, if any other codes are neccesary just say it :>


warning when compiling:
Quote:

C:\Users\User\Desktop\TS, GAR, AMV\GAR\pawno\include\sscanf2.inc(73) : warning 235: public function lacks forward declaration (symbol "OnNPCModeInit")
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

Header size: 11552 bytes
Code size: 2391764 bytes
Data size: 9650840 bytes
Stack/heap size: 32768 bytes; estimated max. usage: unknown, due to recursion
Total requirements:12086924 bytes

1 Warning.

server_log
Quote:

----------
Loaded log file: "server_log.txt".
----------

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

[20:07:41] weburl = "www.sa-mp.com" (string)
[20:07:41]
[20:07:41] Server Plugins
[20:07:41] --------------
[20:07:41] Loading plugin: sscanf.so
[20:07:41]

[20:07:41] ===============================

[20:07:41] sscanf plugin loaded.

[20:07:41] Version: 2.8.2

[20:07:41] © 2012 Alex "******" Cole

[20:07:41] ===============================

[20:07:41] Loaded.
[20:07:41] Loading plugin: streamer.so
[20:07:41]

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

[20:07:41] Loaded.
[20:07:41] Loading plugin: nativechecker.so
[20:07:41] Loaded.
[20:07:41] Loaded 3 plugins.

[20:07:41]
[20:07:41] Filterscripts
[20:07:41] ---------------
[20:07:41] Loading filterscript 'gl_actions.amx'...
[20:07:41] Loading filterscript 'gl_realtime.amx'...
[20:07:41] Loading filterscript 'gl_property.amx'...
[20:07:41]
-----------------------------------
[20:07:41] Grand Larceny Property Filterscript
[20:07:41] -----------------------------------

[20:07:41] Loading filterscript 'gl_mapicon.amx'...
[20:07:41] Loading filterscript 'ls_elevator.amx'...
[20:07:41] Loading filterscript 'attachments.amx'...
[20:07:41] Loading filterscript 'skinchanger.amx'...
[20:07:41]
--Admin Player Skin Changer Loaded

[20:07:41] Loading filterscript 'vspawner.amx'...
[20:07:41]
--Admin Vehicle Spawner Loaded

[20:07:41] Loading filterscript 'ls_mall.amx'...
[20:07:41] Loading filterscript 'ls_beachside.amx'...
[20:07:41]

[20:07:41] |---------------------------------------------------
[20:07:41] |--- LS BeachSide Filterscript
[20:07:41] |-- Script v1.03
[20:07:41] |-- 19th April 2015
[20:07:41] |---------------------------------------------------
[20:07:41] |-- LS BeachSide Building Elevator created
[20:07:41] |---------------------------------------------------
[20:07:41] Loaded 10 filterscripts.
server.cfg
Quote:

echo Executing Server Config...
lanmode 0
rcon_password 123
bind 134.255.225.21
maxplayers 80
port 7790
hostname Drдgenvackerz Reallife
gamemode0 rl 1
filterscripts gl_actions gl_realtime gl_property gl_mapicon ls_elevator attachments skinchanger vspawner ls_mall ls_beachside
plugins sscanf.so streamer.so nativechecker.so
announce 0
query 1
weburl
maxnpc 0
onfoot_rate 40
incar_rate 40
weapon_rate 40
stream_distance 300.0
stream_rate 1000

Reply
#2

use crashdetect plugin and restart it after that give us the log again
Reply
#3

Thank you for your answer!

server_log is now:
Quote:

----------
Loaded log file: "server_log.txt".
----------

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

[21:22:42] weburl = "www.sa-mp.com" (string)
[21:22:42]
[21:22:42] Server Plugins
[21:22:42] --------------
[21:22:42] Loading plugin: sscanf.so
[21:22:42]

[21:22:42] ===============================

[21:22:42] sscanf plugin loaded.

[21:22:42] Version: 2.8.2

[21:22:42] © 2012 Alex "******" Cole

[21:22:42] ===============================

[21:22:42] Loaded.
[21:22:42] Loading plugin: crashdetect.so
[21:22:42] CrashDetect v4.17 is OK.
[21:22:42] Loaded.
[21:22:42] Loading plugin: streamer.so
[21:22:42]

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

[21:22:42] Loaded.
[21:22:42] Loading plugin: nativechecker.so
[21:22:42] Loaded.
[21:22:42] Loaded 4 plugins.

[21:22:42]
[21:22:42] Filterscripts
[21:22:42] ---------------
[21:22:42] Loading filterscript 'gl_actions.amx'...
[21:22:43] Loading filterscript 'gl_realtime.amx'...
[21:22:43] Loading filterscript 'gl_property.amx'...
[21:22:43]
-----------------------------------
[21:22:43] Grand Larceny Property Filterscript
[21:22:43] -----------------------------------

[21:22:43] Loading filterscript 'gl_mapicon.amx'...
[21:22:43] Loading filterscript 'ls_elevator.amx'...
[21:22:43] Loading filterscript 'attachments.amx'...
[21:22:43] Loading filterscript 'skinchanger.amx'...
[21:22:43]
--Admin Player Skin Changer Loaded

[21:22:43] Loading filterscript 'vspawner.amx'...
[21:22:43]
--Admin Vehicle Spawner Loaded

[21:22:43] Loading filterscript 'ls_mall.amx'...
[21:22:43] Loading filterscript 'ls_beachside.amx'...
[21:22:43]

[21:22:43] |---------------------------------------------------
[21:22:43] |--- LS BeachSide Filterscript
[21:22:43] |-- Script v1.03
[21:22:43] |-- 19th April 2015
[21:22:43] |---------------------------------------------------
[21:22:43] |-- LS BeachSide Building Elevator created
[21:22:43] |---------------------------------------------------
[21:22:43] Loaded 10 filterscripts.

[21:22:43] [debug] Server crashed while executing loh.amx
[21:22:43] [debug] AMX backtrace:
[21:22:43] [debug] #0 native fread () from samp03svr
[21:22:43] [debug] #1 0005e510 in public LoadFraktionsKassen () from loh.amx
[21:22:43] [debug] #2 00061148 in public OnGameModeInit () from loh.amx
[21:22:43] [debug] Native backtrace:
[21:22:43] [debug] #0 f7482ca0 in _Z13GetStackTraceRSt6vectorI10StackFrameSaIS0_EEPv () from plugins/crashdetect.so
[21:22:43] [debug] #1 f747bd22 in _ZN11CrashDetect20PrintNativeBacktraceERSoPv () from plugins/crashdetect.so
[21:22:43] [debug] #2 f747c314 in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so
[21:22:43] [debug] #3 f747e964 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so
[21:22:43] [debug] #4 f74825cd in ?? () from plugins/crashdetect.so
[21:22:43] [debug] #5 f7778420 in ?? ()
[21:22:43] [debug] #6 f7778440 in ?? ()
[21:22:43] [debug] #7 f74e5981 in gsignal () from /lib32/libc.so.6
[21:22:43] [debug] #8 f74e8da2 in abort () from /lib32/libc.so.6
[21:22:43] [debug] #9 f74de8d8 in __assert_fail () from /lib32/libc.so.6
[21:22:43] [debug] #10 0809b7a1 in ?? () from ./samp03svr
[21:22:43] [debug] #11 0809bf43 in ?? () from ./samp03svr
[21:22:43] [debug] #12 080950e4 in ?? () from ./samp03svr
[21:22:43] [debug] #13 f747d7b3 in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so
[21:22:43] [debug] #14 099ec438 in ?? () from `ˆtч†tч?С ?С
AС ?С PBС CС 4uч

Reply
#4

post this two callbacks

Quote:

[21:22:43] [debug] #1 0005e510 in public LoadFraktionsKassen () from loh.amx
[21:22:43] [debug] #2 00061148 in public OnGameModeInit () from loh.amx

Quote:

LoadFraktionsKassen ()
OnGameModeInit()

Reply
#5

Quote:

public LoadFraktionsKassen()
{
new File:Kasse = fopen("Fraktionskassen.cfg",io_read);
new idx = 0;
new read[128];
while(idx < sizeof(FraktionsKasse))
{
fread(Kasse,read);
for(new x=0; x<strlen(read); x++)
{
if(read[x]== '\n')
{
read[x] = '\0';
}
}
FraktionsKasse[idx] = strval(read);
idx++;
}
fclose(Kasse);
return 1;
}

can't post OnGameModeInit - its too long, nearly 6k lines - the most of it are objects streamed by streamer.inc (CreateDynamicObjects)
Reply
#6

just post the OnGamemodeinit without objects
Reply
#7

alright :P, this should be everything

Quote:

public OnGameModeInit()
{
//ConnectNPC("Bedienung","bot");
// ConnectNPC("Vagos1","Vagos1"); //VAGOSBOT
// ConnectNPC("Vagos2","Vagos2"); //VAGOSBOT
// ConnectNPC("Vagos3","Vagos3"); //VAGOSBOT
// ConnectNPC("Vagos4","Vagos4"); //VAGOSBOT
// ConnectNPC("Vagos5","Vagos5"); //VAGOSBOT
/// ConnectNPC("Vagos6","Vagos6"); //VAGOSBOT
// ConnectNPC("Vagos7","Vagos7"); //VAGOSBOT
new string[MAX_PLAYER_NAME];
new string1[MAX_PLAYER_NAME];
for(new i = 0; i < AUTOHAUSER; i++)
{
Dtc_Info[i] = CreatePickup(1210, 2, DtcSonstiges[i][0][0],DtcSonstiges[i][0][1],DtcSonstiges[i][0][2],0);
}
// LoadZones();
SetTimer("isPlayerInArea", 1000, 1);
SetTimer("LetDoorsLocked", 1000, 1);
SetTimer("Wetternach1h", 21600000, 1);
lspdvar1 = 1; // INSIDE LSPD DOOR
lspdvar2 = 1;
lspdvar3 = 1;
LSPDZellen = 0;
LoadProperty();
LoadBizz();
LoadBlacklist();
LoadSBizz();
LoadBoxer();
LoadStuff();
LoadIRC();
LoadFamilies();
LoadCK();
LoadTurfs();
LoadPapers();
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), "Nothing");
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), "No-one");
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);
PlayerHaul[PTruck[0]][pCapasity] = 100;
PlayerHaul[PTruck[1]][pCapasity] = 100;
PlayerHaul[PTruck[2]][pCapasity] = 50;
PlayerHaul[PTruck[3]][pCapasity] = 50;
SetGameModeText("German Reallife 1.0 ");//sversion
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), "_________________________________________________ ___________-");
//DERMOTD
//Herzlich Willkomm, Herzlich Willkomm in unserer schцnen neuen Welt!

gettime(ghour, gminute, gsecond);
FixHour(ghour);
ghour = shifthour;
if(!realtime)
{
SetWorldTime(wtime);
}
SetPDistance(10);
AllowInteriorWeapons(1);
AllowAdminTeleport(1);
UsePlayerPedAnims();
EnableStuntBonusForAll(false);
ShowPlayerMarkers(1);
DisableInteriorEnterExits();
EnableM_Bot();

for(new i = 0; i < GetMaxPlayers(); i++)
{
//Tutorial
/*PlayerInfo[i][LetterboxTop] = TextDrawCreate(1.000000,1.000000,"~w~Einleitung~n~ ~n~~n~~n~~n~~n~~n~");
TextDrawUseBox(PlayerInfo[i][LetterboxTop],1);
TextDrawBoxColor(PlayerInfo[i][LetterboxTop],0x000000ff);
TextDrawTextSize(PlayerInfo[i][LetterboxTop],642.000000,20.000000);
TextDrawAlignment(PlayerInfo[i][LetterboxTop],0);
TextDrawBackgroundColor(PlayerInfo[i][LetterboxTop],0x000000ff);
TextDrawFont(PlayerInfo[i][LetterboxTop],2);
TextDrawLetterSize(PlayerInfo[i][LetterboxTop],0.400000,1.400000);
TextDrawColor(PlayerInfo[i][LetterboxTop],0xffffffff);
TextDrawSetOutline(PlayerInfo[i][LetterboxTop],1);
TextDrawSetProportional(PlayerInfo[i][LetterboxTop],1);
TextDrawSetShadow(PlayerInfo[i][LetterboxTop],1);*/

/*PlayerInfo[i][LetterboxBottom] = TextDrawCreate(2.000000,336.000000,"~n~~w~_~n~~n~~ n~~n~~n~~n~~n~~n~");
TextDrawUseBox(PlayerInfo[i][LetterboxBottom],1);
TextDrawBoxColor(PlayerInfo[i][LetterboxBottom],0x000000ff);
TextDrawTextSize(PlayerInfo[i][LetterboxBottom],638.000000,3.000000);
TextDrawAlignment(PlayerInfo[i][LetterboxBottom],0);
TextDrawBackgroundColor(PlayerInfo[i][LetterboxBottom],0x00ffff00);
TextDrawFont(PlayerInfo[i][LetterboxBottom],2);//,1.200000,2.000000);
TextDrawLetterSize(PlayerInfo[i][LetterboxBottom],0.400000,1.300000);
TextDrawColor(PlayerInfo[i][LetterboxBottom],0xffffffff);
TextDrawSetOutline(PlayerInfo[i][LetterboxBottom],1);
TextDrawSetProportional(PlayerInfo[i][LetterboxBottom],1);
TextDrawSetShadow(PlayerInfo[i][LetterboxBottom],5);*/
}
// CreatedCars check
for(new i = 0; i < sizeof(CreatedCars); i++)
{
CreatedCars[i] = 0;
}
// Zones
for(new i = 0; i < sizeof(TurfInfo); i++)
{
Turfs[i] = GangZoneCreate(TurfInfo[i][zMinX],TurfInfo[i][zMinY],TurfInfo[i][zMaxX],TurfInfo[i][zMaxY]);
}
// Player Class's
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);
}
// Car Spawns
//for(new h = 0; h < sizeof(HouseInfo); h++)
//{
//AddStaticVehicleEx(HouseInfo[h][hVec], HouseCarSpawns[h][0], HouseCarSpawns[h][1], HouseCarSpawns[h][2], HouseCarSpawns[h][3], HouseInfo[h][hVcol1], HouseInfo[h][hVcol2], 60000);
//gCarLock[h+1] = 1;
//}//34


//-----------------------------------------------------------------------------------
//------------------------------- VEHICLES -----------------------------------------
// Mьllwagen
for (new v; v < 5; v++){ LinkVehicleToInterior(DromeVehs[v],1); }
//CARBOTCAR = AddStaticVehicleEx(431,1527.1716,-1680.3057,13.4885,179.2000,1,1,-1);
// Heinz = Create3DTextLabel("Bedienung",COLOR_YELLOW,0.0,0.0 ,0.0,5.0,0,0);
//ConnectNPC("Heinz","samp_bot");

for(new c=0;c<CAR_AMOUNT;c++)
{
Gas[c] = GetGasMax(GetVehicleModel©);
}
//------------------------------- PICKUPS ------------------------------------------
for(new h = 0; h < sizeof(HouseInfo); h++)
{
if(HouseInfo[h][hOwned] == 0)
{
AddStaticPickup(1273, 2, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
pickups++;
}
if(HouseInfo[h][hOwned] == 1)
{
AddStaticPickup(1239, 2, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
pickups++;
}
}
for(new h = 0; h < sizeof(BizzInfo); h++)
{
if(BizzInfo[h][bOwned] == 0)
{
AddStaticPickup(1272, 2, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]);
pickups++;
}
if(BizzInfo[h][bOwned] == 1)
{
AddStaticPickup(1239, 2, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]);
pickups++;
}
}
for(new h = 0; h < sizeof(SBizzInfo); h++)
{
if(SBizzInfo[h][sbOwned] == 0)
{
AddStaticPickup(1272, 2, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]);
pickups++;
}
if(SBizzInfo[h][sbOwned] == 1)
{
AddStaticPickup(1239, 2, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]);
pickups++;
}
}

printf("Pickups Max = 2048, Current Pickups = %d",pickups);
if (realtime)
{
new tmphour;
new tmpminute;
new tmpsecond;
gettime(tmphour, tmpminute, tmpsecond);
FixHour(tmphour);
tmphour = shifthour;
SetWorldTime(tmphour+1);
}
Create3DTextLabel("Schwarzmarkt\nNutzen Sie '/enter' um den Schwarzmarkt\nzu betreten!",RED,2709.5466,-1424.1838,16.2500,6.0,0,0);
Create3DTextLabel("Schwarzmarkt\nNutzen Sie '/exit' um den Schwarzmarkt\nzu verlassen!",RED,2715.0737,-1423.9521,16.2500,6.0,0,0);
Create3DTextLabel("Schwarzmarkt\nNutzen Sie '/waffen' um Waffen zu kaufen!",RED,2738.5220,-1423.7097,16.2500,15.0,0,0);
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~LSPD 3DLabels~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Create3DTextLabel("Uniform LSPD\nNutzen Sie '/uniform' um ihre Kleidung\n zu wechseln!",RED,223.4126,185.4840,1003.0313,7.0,0,0 );
Create3DTextLabel("Equip LSPD\nNutzen Sie '/equip' fьr Waffen und andere\n Ausrьstungen!",RED,211.7037,185.3334,1003.0313,7.0 ,0,0);
Create3DTextLabel("Duty LSPD\nNutzen Sie '/duty' um Ihre Arbeit als\n Polizist zu beginnen!",RED,217.5230,184.4352,1003.0313,7.0,0,0 );

//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Driveinґs~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Create3DTextLabel("Drivein Schalter\nNutzen sie /drivein damit wir Ihre Bestellung aufnehmen kцnnen!",RED,1210.4731,-892.8236,42.9234,15.0,0,0);
Create3DTextLabel("Drivein Schalter\nNutzen sie /drivein damit wir Ihre Bestellung aufnehmen kцnnen!",RED,790.1308,-1621.4274,13.3828,15.0,0,0);
Create3DTextLabel("Drivein Schalter\nNutzen sie /drivein damit wir Ihre Bestellung aufnehmen kцnnen!",RED,-2348.5657,1021.3984,50.6953,15.0,0,0);
Create3DTextLabel("Drivein Schalter\nNutzen sie /drivein damit wir Ihre Bestellung aufnehmen kцnnen!",RED,1859.5613,2080.1877,10.8203,15.0,0,0) ;
//-----------------------------------------------------------------------------------
//------------------------------- TIMER --------------------------------------------
synctimer = SetTimer("SyncUp", 60000, 1);
SetTimer("NODMTimer", 1000, 1);
SetTimer("ChangeName", 3500, 1); // alle 3,5 Sekunden den Namen wechseln, zuerst ** German Apocalyps Reallife [GAR] ** danach Startbonus fьr neue User und danach 60.000$, Level 2 und alle Scheine - and again xD
unjailtimer = SetTimer("SetPlayerUnjail", 1000, 1);
othtimer = SetTimer("OtherTimer", 1000, 1);
cartimer = SetTimer("CarCheck", 30000, 1);
pickuptimer = SetTimer("CustomPickups", 1500, 1);
SetTimer("TOTTimer",60000,1);
SetTimer("settime",1000,true);
SetTimer("sethealth",1000,true);
spectatetimer = SetTimer("Spectator", 2000, 1);
idletimer = SetTimer("IdleKick", idletime, 1);
productiontimer = SetTimer("Production", 600000, 1); //10 mins (300000)
accountstimer = SetTimer("SaveAccounts", 900000, 1); //30 mins every account saved
checkgastimer = SetTimer("CheckGas", RunOutTime, 1);
stoppedvehtimer = SetTimer("StoppedVehicle", RunOutTime, 1);
SetTimer("VehStateCheck",300,1);
SetTimer("serverNews", 900000, 1);
// SetTimer("UpdateNews",700000,1);
SetTimer("StreamCheckpoints",1000,1);
SetTimer("IncreasePlayerMinutes",60000,1);
SetTimer( "ShowLotto" , 7200000, true );
//SetTimer("CheckVehicleHealths",1000,1);
SetTimer("UpdateClock",1000,1);
SetTimer("RemoveSpams",2000,1);
SetTimer("Stern",30000,1);
SetTimer("ArenaRespawn",1800000,1);
//-----------------------------------------------------------------------------------

CarInit();


//-----------------------------------------------------------------------------------
//------------------------------- MENЬS --------------------------------------------
ShowMe = CreateMenu("ShowMe", 1, 50.0, 180.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, "Unsichtbar");

HandyShop = CreateMenu("HandyShop", 1, 80.0,150.0,300.0,300.0);
SetMenuColumnHeader(HandyShop, 0, "Willkommen.");
AddMenuItem(HandyShop, 0, "Nokia 3330 $ 200");
AddMenuItem(HandyShop, 0, "Nokia 6500 $ 300");
AddMenuItem(HandyShop, 0, "Nokia N95 $ 500");
AddMenuItem(HandyShop, 0, "Sony C905 $ 700");
AddMenuItem(HandyShop, 0, "Motorola Q9h $ 900");
AddMenuItem(HandyShop, 0, "BlackBerry BOLD $ 1100");
AddMenuItem(HandyShop, 0, "iPhone $ 1500");
AddMenuItem(HandyShop, 0, "****** HTC Magic $ 1600");

//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 GPS");
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, "Gunshop");
AddMenuItem(Navigation, 0, "Exit Menu");

Geschlecht = CreateMenu("Geschlecht:",1,200.0,180.0,200.0);
AddMenuItem(Geschlecht,0," Maennlich");
AddMenuItem(Geschlecht,0," Weiblich");

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");


Land = CreateMenu("Herkunft:",1,200.0,180.0,200.0);
AddMenuItem(Land,0," Deutschland");
AddMenuItem(Land,0," Цsterreich");
AddMenuItem(Land,0," Schweiz");
AddMenuItem(Land,0," Niederlande");

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.218;
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, "12 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");

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, "GAR Spezial Pizza");
AddMenuItem(CBKM, 0, "MENU_VERLASSEN");


//-----------------------------------------------------------------------------------
//------------------------------- TEXTDRAWS ----------------------------------------
//Copyright = TextDrawCreate(10,428,"Forum: www.german-apocalyps-reallife.de");
TextDrawLetterSize(Copyright,0.5,1.3);
TextDrawColor(Copyright,COLOR_BLACK);
TextDrawSetShadow(Copyright,0);
TextDrawShowForAll(Copyright);

Time = TextDrawCreate(547.000000,28.000000,"--");

TextDrawFont(Date,3);
TextDrawLetterSize(Date,0.399999,1.600000);
TextDrawColor(Date,COLOR_ORANGE);

Forum0 = TextDrawCreate(1.000000, 432.000000, "Forum: ---");
TextDrawBackgroundColor(Forum0, 65535);
TextDrawFont(Forum0, 1);
TextDrawLetterSize(Forum0, 0.319999, 1.399999);
TextDrawColor(Forum0, -1);
TextDrawSetOutline(Forum0, 1);
TextDrawSetProportional(Forum0, 1);
TextDrawShowForAll(Forum0);

Forum1 = TextDrawCreate(431.000000, 432.000000, "Teamspeak 3: 37.114.61.101");
TextDrawBackgroundColor(Forum1, 65535);
TextDrawFont(Forum1, 1);
TextDrawLetterSize(Forum1, 0.319999, 1.399999);
TextDrawColor(Forum1, -1);
TextDrawSetOutline(Forum1, 1);
TextDrawSetProportional(Forum1, 1);
TextDrawShowForAll(Forum1);

Forum2 = TextDrawCreate(177.000000, 433.000000, "<<< >>>");
TextDrawBackgroundColor(Forum2, 255);
TextDrawFont(Forum2, 1);
TextDrawLetterSize(Forum2, 0.319999, 1.399999);
TextDrawColor(Forum2, -16776961);
TextDrawSetOutline(Forum2, 0);
TextDrawSetProportional(Forum2, 1);
TextDrawSetShadow(Forum2, 1);
TextDrawShowForAll(Forum2);

Forum3 = TextDrawCreate(32.000000, 327.000000, "German Apocalyps Reallife 1. 0");
TextDrawBackgroundColor(Forum3, 255);
TextDrawFont(Forum3, 0);
TextDrawLetterSize(Forum3, 0.270000, 1.000000);
TextDrawColor(Forum3, 16711935);
TextDrawSetOutline(Forum3, 0);
TextDrawSetProportional(Forum3, 1);
TextDrawSetShadow(Forum3, 1);
TextDrawShowForAll(Forum3);
/* healthamhud = TextDrawCreate(547.000000,11.000000," ");

TextDrawBackgroundColor(healthamhud, -16777176);
TextDrawFont(healthamhud, 2);
TextDrawLetterSize(healthamhud, 0.230000, 1.000000);
TextDrawColor(healthamhud, -1);
TextDrawSetOutline(healthamhud, 0);
TextDrawSetProportional(healthamhud, 1);
TextDrawSetShadow(healthamhud, 1);*/

Ruhezone = TextDrawCreate(250.000000, 2.000000, "NO DM Zone");
TextDrawBackgroundColor(Ruhezone, 16711935);
TextDrawFont(Ruhezone, 1);
TextDrawLetterSize(Ruhezone, 0.659999, 3.000000);
TextDrawColor(Ruhezone, -16776961);
TextDrawSetOutline(Ruhezone, 1);
TextDrawSetProportional(Ruhezone, 0);

Date = TextDrawCreate(547.000000,11.000000,"--");

TextDrawFont(Time,3);
TextDrawLetterSize(Time,0.399999,1.600000);
TextDrawColor(Time,COLOR_ORANGE);

Uhrzeit = TextDrawCreate(547.000000,22.000000," ");
TextDrawAlignment(Uhrzeit,0);
TextDrawBackgroundColor(Uhrzeit,0x000000ff);
TextDrawFont(Uhrzeit,3);
TextDrawLetterSize(Uhrzeit,0.599999,2.299999);
TextDrawColor(Uhrzeit,0xffffffff);
TextDrawSetOutline(Uhrzeit,2);
TextDrawSetProportional(Uhrzeit,1);
TextDrawSetShadow(Uhrzeit,10);

//Forum = TextDrawCreate(326.000000, 430.000000, "**Folgt**");
TextDrawBackgroundColor(Forum, 65535);
TextDrawFont(Forum, 2);
TextDrawLetterSize(Forum, 0.500000, 1.000000);
TextDrawColor(Forum, -1);
TextDrawSetOutline(Forum, 1);
TextDrawSetProportional(Forum, 1);

AdminDutyTextdraw = TextDrawCreate(547.000000, 54.000000, "Admin on Duty");
TextDrawBackgroundColor(AdminDutyTextdraw, 255);
TextDrawFont(AdminDutyTextdraw, 1);
TextDrawLetterSize(AdminDutyTextdraw, 0.250000, 1.000000);
TextDrawColor(AdminDutyTextdraw, -16776961);
TextDrawSetOutline(AdminDutyTextdraw, 0);
TextDrawSetProportional(AdminDutyTextdraw, 1);
TextDrawSetShadow(AdminDutyTextdraw, 1);

/*Version = TextDrawCreate(12.000000, 426.000000, " ");
TextDrawBackgroundColor(Version, 255);
TextDrawFont(Version, 3);
TextDrawLetterSize(Version, 0.379998, 1.600030);
TextDrawColor(Version, -1);
TextDrawSetOutline(Version, 1);
TextDrawSetProportional(Version, 1);
new Vstr[33]; format(Vstr, sizeof Vstr, "German-Apocalyps-Reallife v1.0");
TextDrawSetString(Version, Vstr);*/


return 1;
}

Reply
#8

There a lots of stocks (functions) here

it's need time to check all them !
Reply
#9

i dont think that there is any problem... i haven't done anything in the script since 2014 and in 2014 there was no problem to run it... :/
Reply
#10

now we are in 2017 a lots of things has been changed like MySQL And Ini versions :/

SA-MP Structure change since 2015 <-- (some callbacks) a lots changed bro
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)