Server schaltet sich wegen dem public aus

Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!

Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
  • hay leute ich mache gerade so ein kleines spawn system und
    mein problem ist das mein server immer beim timer automatisch aus geht
    hier ma mein code ich hoffe ihr könnt mir helfen


    forward spawncheckplayer(playerid);
    #define PLAYERSPAWN 30


    if(spawncheck)
    {
    SetPlayerPos(playerid,1.808619,32.384357,1199.593750);
    SetPlayerInterior(playerid, 1);
    SendClientMessage(playerid,LIGHTBLUE,"Pilot: Sehr geehrte fluggäste wir werden in wenigen sekunden landen bitte schnallen sie sich an");
    SetTimerEx("spawncheckplayer",PLAYERSPAWN*500,0,"i",playerid);
    }
    //wegen diesen public \/\/\/\/\/
    public spawncheckplayer(playerid)
    {
    SetPlayerSpawn(playerid);
    SendClientMessage(playerid,COLOR_GRÜN,"");
    SendClientMessage(playerid,COLOR_GRÜN,"");
    SendClientMessage(playerid,COLOR_GRÜN,"");
    SendClientMessage(playerid,COLOR_GRÜN,"");
    SendClientMessage(playerid,COLOR_GRÜN,"");
    SendClientMessage(playerid,COLOR_GRÜN,"");
    SendClientMessage(playerid,COLOR_GRÜN,"|____________Willkommen auf German Creative Reallife____________|");
    SendClientMessage(playerid,LIGHTBLUE,"Gut das du uns gefunden hast unser Server ist 100% Selfmade, ");
    SendClientMessage(playerid,LIGHTBLUE,"Scripter:BeGo Mapper:BeGo, Der Anfang ist für jeden Spieler schwer");
    SendClientMessage(playerid,LIGHTBLUE,"drucke die taste T um den Chat zu öffnen gib ein /gps und fahre zur");
    SendClientMessage(playerid,LIGHTBLUE,"Stadthalle und zum Arbeitsamt um die ein Personalausweis und eine Arbeit zu besorgen");
    SendClientMessage(playerid,COLOR_GRÜN,"Viel Spaß auf unserem Server.");
    return 1;
    }

    public SetPlayerSpawn(playerid)
    {
    if(Spieler[playerid][Fraktion] == 1)//lspd
    {
    SetPlayerPos(playerid, 1552.0333,-1675.4128,16.1110);
    SetPlayerFacingAngle(playerid, 96.6153);
    SetPlayerInterior(playerid, 0);
    SetPlayerHealth(playerid,100);
    SetPlayerSkin(playerid,267);
    SetPlayerColor(playerid,COLOR_WITHE);
    }
    else if(Spieler[playerid][Fraktion] == 2)//sfpd
    {
    SetPlayerPos(playerid, -1605.5817,713.7036,13.3172);
    SetPlayerFacingAngle(playerid,0.9174);
    SetPlayerInterior(playerid, 0);
    SetPlayerHealth(playerid,100);
    SetPlayerSkin(playerid,281);
    SetPlayerColor(playerid,COLOR_WITHE);
    }
    else if(Spieler[playerid][Fraktion] == 3)//army
    {
    SetPlayerPos(playerid,-1345.2780,491.2906,11.2027);
    SetPlayerFacingAngle(playerid,58.7698);
    SetPlayerInterior(playerid, 0);
    SetPlayerHealth(playerid,100);
    SetPlayerSkin(playerid,287);
    SetPlayerColor(playerid,COLOR_WITHE);
    }
    else if(Spieler[playerid][Fraktion] == 4)//fbi
    {
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid,938.1675,1733.2258,8.8516);
    SetPlayerFacingAngle(playerid,90.5695);
    SetPlayerHealth(playerid,100);
    SetPlayerSkin(playerid,285);
    SetPlayerColor(playerid,COLOR_WITHE);
    }
    else if(Spieler[playerid][Fraktion] == 5)//fahrschule
    {
    SetPlayerPos(playerid,1018.1644,-1549.7819,14.8657);
    SetPlayerFacingAngle(playerid, 271.0877);
    SetPlayerInterior(playerid, 0);
    SetPlayerHealth(playerid,100);
    SetPlayerSkin(playerid,171);
    SetPlayerColor(playerid,COLOR_WITHE);
    }
    else if(Spieler[playerid][Fraktion] == 6)//oamt
    {
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid,733.8798,-1337.9785,13.5328);
    SetPlayerFacingAngle(playerid,179.3954);
    SetPlayerHealth(playerid,100);
    SetPlayerSkin(playerid,71);
    SetPlayerColor(playerid,COLOR_WITHE);
    }
    else if(Spieler[playerid][Fraktion] == 7)//sanitäter
    {
    SetPlayerPos(playerid,1177.2114,-1323.2378,14.0595);
    SetPlayerFacingAngle(playerid,271.7365);
    SetPlayerInterior(playerid, 0);
    SetPlayerHealth(playerid,100);
    SetPlayerSkin(playerid,70);
    SetPlayerColor(playerid,COLOR_WITHE);
    }
    else if(Spieler[playerid][Fraktion] == 8)//Präsident
    {
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid,1124.6547,-2036.8260,69.8836);
    SetPlayerFacingAngle(playerid,271.4893);
    SetPlayerHealth(playerid,100);
    SetPlayerSkin(playerid,166);
    SetPlayerColor(playerid,COLOR_WITHE);
    }
    else if(Spieler[playerid][Fraktion] == 9)//Taxi los santos
    {
    SetPlayerPos(playerid,2047.4993,-1918.5044,13.5469);
    SetPlayerFacingAngle(playerid,1.8606);
    SetPlayerInterior(playerid, 0);
    SetPlayerHealth(playerid,100);
    SetPlayerSkin(playerid,189);
    SetPlayerColor(playerid,COLOR_WITHE);
    }
    else if(Spieler[playerid][Fraktion] == 10)//Radiosender
    {
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid,-2051.5503,459.3559,35.1719);
    SetPlayerFacingAngle(playerid,134.1466);
    SetPlayerSkin(playerid,57);
    SetPlayerHealth(playerid,100);
    SetPlayerColor(playerid,COLOR_WITHE);
    }
    else if(Spieler[playerid][Fraktion] == 11)//feuerwehr
    {
    SetPlayerPos(playerid,-2048.8694,67.0758,28.6456);
    SetPlayerFacingAngle(playerid,316.8483);
    SetPlayerInterior(playerid,0);
    SetPlayerHealth(playerid,100);
    SetPlayerSkin(playerid,277);
    SetPlayerColor(playerid,COLOR_WITHE);
    }
    else if(Spieler[playerid][Fraktion] == 12)//Ballas
    {
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid,2000.1754,-1115.6766,27.1318);
    SetPlayerFacingAngle(playerid,180.0835);
    SetPlayerInterior(playerid, 0);
    SetPlayerHealth(playerid,100);
    SetPlayerSkin(playerid,120);
    SetPlayerColor(playerid,COLOR_WITHE);
    }
    else if(Spieler[playerid][Fraktion] == 13)//Russische mafia
    {
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid,299.6094,-1155.2856,80.9299);
    SetPlayerFacingAngle(playerid,130.4360);
    SetPlayerInterior(playerid, 0);
    SetPlayerHealth(playerid,100);
    SetPlayerSkin(playerid,223);
    SetPlayerColor(playerid,COLOR_WITHE);
    }
    else if(Spieler[playerid][Fraktion] == 14)//Yakuza
    {
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid,-2720.9783,-317.3900,7.8438);
    SetPlayerFacingAngle(playerid,44.4714);
    SetPlayerInterior(playerid, 0);
    SetPlayerHealth(playerid,100);
    SetPlayerSkin(playerid,122);
    SetPlayerColor(playerid,COLOR_WITHE);
    }
    else if(Spieler[playerid][Fraktion] == 15)//hitman
    {
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid,-1447.7078,-1507.5901,101.7513);
    SetPlayerFacingAngle(playerid,268.9872);
    SetPlayerInterior(playerid, 0);
    SetPlayerHealth(playerid,100);
    SetPlayerSkin(playerid,294);
    SetPlayerColor(playerid,COLOR_WITHE);
    }
    else if(Spieler[playerid][Fraktion] == 16)//Grove STreet
    {
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid,2495.3145,-1687.1287,13.5152);
    SetPlayerFacingAngle(playerid,2.1369);
    SetPlayerInterior(playerid, 0);
    SetPlayerHealth(playerid,100);
    SetPlayerSkin(playerid,105);
    SetPlayerColor(playerid,COLOR_WITHE);
    }
    else if(Spieler[playerid][Fraktion] == 17)//Varrios Aztecas
    {
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid,1804.3085,-2122.5779,13.5543);
    SetPlayerFacingAngle(playerid,359.3275);
    SetPlayerInterior(playerid, 0);
    SetPlayerHealth(playerid,100);
    SetPlayerSkin(playerid,115);
    SetPlayerColor(playerid,COLOR_WITHE);
    }
    else if(Spieler[playerid][Fraktion] == 18)//Rifas
    {
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid,-2142.2852,-247.8815,36.5156);
    SetPlayerFacingAngle(playerid,92.7903);
    SetPlayerInterior(playerid, 0);
    SetPlayerHealth(playerid,100);
    SetPlayerSkin(playerid,114);
    SetPlayerColor(playerid,COLOR_WITHE);
    }
    else if(Spieler[playerid][Fraktion] == 19)//Terroristen
    {
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid,-516.1055,-504.4598,25.5234);
    SetPlayerFacingAngle(playerid,354.8876);
    SetPlayerInterior(playerid, 0);
    SetPlayerHealth(playerid,100);
    SetPlayerSkin(playerid,221);
    SetPlayerColor(playerid,COLOR_WITHE);
    }
    else if(Spieler[playerid][Fraktion] == 20)//La Cosa Nostra
    {
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid,2772.1003,-1628.2522,12.1775);
    SetPlayerFacingAngle(playerid,269.8782);
    SetPlayerInterior(playerid, 0);
    SetPlayerSkin(playerid,113);
    SetPlayerHealth(playerid,100);
    SetPlayerColor(playerid,COLOR_WITHE);
    }
    else if(Spieler[playerid][insel] == 1)
    {
    SetPlayerPos(playerid,492.1396,-6180.4932,4.4078);
    SetPlayerFacingAngle(playerid,218.6852);
    SetPlayerHealth(playerid,55);
    SetPlayerSkin(playerid,4);
    SetPlayerColor(playerid,COLOR_WHITE);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid,0);
    }
    else if(Spieler[playerid][sf] == 1)
    {
    SetPlayerPos(playerid,-2419.1582,334.0072,35.1787);
    SetPlayerHealth(playerid,55);
    SetPlayerSkin(playerid,4);
    SetPlayerColor(playerid,COLOR_WHITE);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid,0);
    }
    else if(Spieler[playerid][ls] == 1)
    {
    SetPlayerPos(playerid, 394.7374,-1520.9480,32.2734);
    SetPlayerFacingAngle(playerid,134.1689);
    SetPlayerHealth(playerid,55);
    SetPlayerSkin(playerid,4);
    SetPlayerColor(playerid,COLOR_WHITE);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid,0);
    }
    else if(Spieler[playerid][lv] == 1)
    {
    SetPlayerPos(playerid,2222.0198,1838.7148,10.8203);
    SetPlayerHealth(playerid,55);
    SetPlayerSkin(playerid,4);
    SetPlayerColor(playerid,COLOR_WHITE);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid,0);
    }
    return 1;
    }
    Ich glaube ich habe dort nur mist gemacht was überhaupt nicht richtig funktioniert ^^


    MFG


    BE_GO


    Beiträge:
    50[x] 100[x] 200[x] 500[] 1000[]



    [ MAP ] Boot Steg

    2 Mal editiert, zuletzt von Be_Go ()

  • Hast du schon einmal die Fehlermeldung angeschaut? Was steht im Log? Wie sieht die Funktion SetPlayerSpawn aus?


    Wie sollen wir dir helfen, wenn du uns nur die Hälfte der benötigten Infos gibst?

    nanosMalte


    Zitat

    Zitat von Goldkiller




    Obwohl MiniYoda das Wörtchen "Dynamisch" in der Deutschen SA-MP szene mit durchaus fatalen Folgen verbreitete, so hat er dennoch bewiesen, dass er das Handwerk PAWN hervorragend beherrscht. Er gehört definitiv zu den kompetentesten Scriptern die man bei SA-MP.DE finden kann.

  • debugge das mal und guck ab wann der aus geht

  • z.b. bei jeden so in der art ist auch ne möglichkeit


    print("1");
    print("2");
    ....


    Oder wie es bloody schon gesagt hat

  • bekomme das dann raus


    [12:37:58] Incoming connection: 127.0.0.1:4373
    [12:37:58] [join] BeGo has joined the server (0:127.0.0.1)
    [12:38:42] [debug] Server crashed while executing selfemade.amx
    [12:38:42] [debug] AMX backtrace:
    [12:38:42] [debug] #0 native SendClientMessage () [004701c0] from samp-server.exe
    [12:38:42] [debug] #1 00044bc4 in public spawncheckplayer () from selfemade.amx
    [12:38:42] [debug] Native backtrace:
    [12:38:44] [debug] #0 00b4155f in ?? () from C:\Programme\Rockstar Games\plugins\crashdetect.dll
    [12:38:44] [debug] #1 00b42844 in ?? () from C:\Programme\Rockstar Games\plugins\crashdetect.dll
    [12:38:44] [debug] #2 00b4470e in ?? () from C:\Programme\Rockstar Games\plugins\crashdetect.dll
    [12:38:44] [debug] #3 7c864191 in UnhandledExceptionFilter () from C:\WINXP\system32\kernel32.dll
    [12:38:44] [debug] #4 0049cc86 in ?? () from C:\Programme\Rockstar Games\samp-server.exe
    [12:38:44] [debug] #5 004960c0 in ?? () from C:\Programme\Rockstar Games\samp-server.exe
    [12:38:44] [debug] #6 7c817077 in RegisterWaitForInputIdle () from C:\WINXP\system32\kernel32.dll


    Beiträge:
    50[x] 100[x] 200[x] 500[] 1000[]



    [ MAP ] Boot Steg

    Einmal editiert, zuletzt von Be_Go ()

  • Welche Serverversion ist das?
    hast du mal versucht es auf einen anderen Server zu versuchen?


    und versuch mal das hier



    SetTimerEx("spawncheckplayer",PLAYERSPAWN*500,0,"d",playerid);


    villeicht klappt es villeicht aber auch nicht
    wenn fragen sind frag ;)