NPC Problem

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
  • ich wollte die bots in verschiedenen zeit abständen connecten lassen


    #endif
    //Einmalige Timer
    SetTimer("CreateHouseCar", 15053, false); // Hauscars erstellen lassen
    #if NPCSS==1
    SetTimer("ConnectBots", 20000, false); // Bots Connecten lassen
    #if NPCSSS==2
    SetTimer("ConnectBots", 50000, false); // Bots Connecten lassen
    #if NPCSSSS==3
    SetTimer("ConnectBots", 80000, false); // Bots Connecten lassen
    #endif


    es kommt aber folgendes problem
    C:\Users\Daves\Desktop\bayside\gamemodes\miem.pwn(71135) : error 001: expected token: "#endif", but found "-end of file-"


    aber diese endif gibts nicht am ende des gamemodes
    0.o?

  • das endif problem war erst da als ich die timer eingefügt habe



    wie genau müsste der timer aussehen der sich wiederholt


    und wie genau lass ich sie einzeln connecten den wenn ich alle zusammen lasse kommt bei der das der angegriffen wird

  • Globale Variable erstellen
    Ein Timer und abfragen wie die variable ist
    bsp:



    new bob=0;
    public ....()
    {
    switch(bob)
    {
    case 0:{connectnpc(); bob++;}
    case 1:{connectnpc(); bob++;}
    case 2:{connectnpc(); bob++;}
    ..
    }
    return 1;
    }
    //e


    Denk aber daran, das der Timer dann gekillt wird wenn er nichtmehr benötigt wird

    All in all it's just another brick in the wall

  • brüchte da evt hilfe da ich das erste mal mit npc und timern arbeite



    versuche zwar mein bestes

  • so jetzt habe ich die bots per timer connecten lassen jetzt habe ich neues problem -,-



    [13:53:39] [npc:join] Mike has joined the server (0:5.9.147.14)
    [13:53:39] [npc:join] Volker has joined the server (2:5.9.147.14)
    [13:53:39] [npc:join] Ralle has joined the server (3:5.9.147.14)
    [13:53:39] [npc:join] Dominique has joined the server (1:5.9.147.14)
    [13:53:39] [npc:join] Tom has joined the server (4:5.9.147.14)
    [13:53:39] [npc:join] Jack has joined the server (5:5.9.147.14)
    [13:53:39] [npc:join] DJ_Paddy has joined the server (6:5.9.147.14)
    [13:53:39] [npc:join] Lumar has joined the server (8:5.9.147.14)
    [13:53:39] [npc:join] Dennis has joined the server (9:5.9.147.14)
    [13:53:39] [npc:join] Phillip has joined the server (7:5.9.147.14)
    [13:53:39] [npc:join] John has joined the server (10:5.9.147.14)
    [13:53:49] <-| [GANGAUTOS] '0' Gangautos wurden geladen & erstellt.
    [13:53:49] Incoming connection: 5.9.147.14:57222
    [13:53:49] Incoming connection: 5.9.147.14:36636
    [13:53:49] Incoming connection: 5.9.147.14:55703
    [13:53:49] Incoming connection: 5.9.147.14:33444
    [13:53:49] Incoming connection: 5.9.147.14:39998
    [13:53:49] Incoming connection: 5.9.147.14:39268
    [13:53:49] Incoming connection: 5.9.147.14:52115
    [13:53:49] Incoming connection: 5.9.147.14:40968
    [13:53:49] Incoming connection: 5.9.147.14:45835
    [13:53:49] Incoming connection: 5.9.147.14:48363
    [13:53:49] Incoming connection: 5.9.147.14:35346
    [13:53:49] Blocking 5.9.147.14 due to a 'server full' attack (1)
    [13:54:01] [npc:part] Mike has left the server (0:0)
    [13:54:01] [npc:part] Dominique has left the server (1:0)
    [13:54:01] [npc:part] Volker has left the server (2:0)
    [13:54:01] [npc:part] Ralle has left the server (3:0)
    [13:54:01] [npc:part] Tom has left the server (4:0)
    [13:54:01] [npc:part] Jack has left the server (5:0)
    [13:54:01] [npc:part] DJ_Paddy has left the server (6:0)
    [13:54:01] [npc:part] Phillip has left the server (7:0)
    [13:54:01] [npc:part] Lumar has left the server (8:0)
    [13:54:01] [npc:part] Dennis has left the server (9:0)
    [13:54:01] [npc:part] John has left the server (10:0)


    die bots verlassen denn server wieder

  • das die ip kann ja nicht blockiert werden da es die server ip ist o.0? ich selber kann auf diese connecten



    Zitat

    Von T4125Gamer
    Zitat
    Weißt du was das ist ? Die IP wurde wegen Spam Blockiert. Das müsste an irgendeinem Include oder sonstigem Liegen.


    Liegt an 0.3x. Lass nicht so viel Bots auf einmal Connecten


    ich habe sie schon jeweils per 10 sec timer connecten lassen das sie nicht alle auf einmal connecten

  • do.de - Domain-Offensive - Domains für alle und zu super Preisen
  • nein das nicht



    wie gesagt habe sie nun schon per unterschidelichen sec timer


    forward ConnectBots2();
    public ConnectBots2()
    {
    #if NPCSS==1
    ConnectNPC("Hugo","pizza");
    ConnectNPC("Norbert","kampf");
    ConnectNPC("Jan","bsnbar");
    ConnectNPC("Eddy","wohnwagen");
    ConnectNPC("Alberto","handy");
    ConnectNPC("AutoPate","derpate");
    ConnectNPC("Shootiii","shooti");
    ConnectNPC("Vivienn","vivien");
    ConnectNPC("Roman","kirchenbar");
    ConnectNPC("DDealer","dealerquest");
    ConnectNPC("DDDealer","drogen");
    ConnectNPC("Otto","pdj");
    ConnectNPC("Pascal","pascal");
    ConnectNPC("WannisVater","wvater");
    ConnectNPC("Wanni","blow1");
    ConnectNPC("Neko","blow2");
    SetTimer("ConnectBots3", 30000, false);
    #endif
    return 1;
    }


    forward ConnectBots3();
    public ConnectBots3()
    {
    #if NPCSS==1
    ConnectNPC("Maya","rennen");
    ConnectNPC("Michael","clubb");
    ConnectNPC("Patrick","bank1");
    ConnectNPC("Lissa","bank2");
    ConnectNPC("Stefania","stefa");
    ConnectNPC("Magger","Flugbot");
    ConnectNPC("Anna","hotel");
    ConnectNPC("James","casino1");
    ConnectNPC("Semaj","casino2");
    ConnectNPC("Melanie","lotto");
    ConnectNPC("Charlie","ammu");
    ConnectNPC("Martin","shop");
    ConnectNPC("Leo","police");
    ConnectNPC("Sasa","botsasa");
    ConnectNPC("Peter","guard");
    #endif
    return 1;
    }


    forward ConnectBots();
    public ConnectBots()
    {
    #if NPCSS==1
    ConnectNPC("PaulDerBarkeeper","barkeeper");
    ConnectNPC("Daniel","passa1");
    ConnectNPC("Joeline","passa2");
    ConnectNPC("Michaela","michaela");
    ConnectNPC("Christina","feuer");
    ConnectNPC("Jeremy","jeremy");
    ConnectNPC("Jackson","jackson");
    ConnectNPC("Susanna","binco");
    ConnectNPC("Tatjana","bugershot");
    ConnectNPC("Marie","cityhall");
    ConnectNPC("Hagermann","haga");
    ConnectNPC("Nils","nils");
    ConnectNPC("Laura","sekt");
    SetTimer("ConnectBots2", 20000, false);

  • das heist das ganze nochmal o.0 ? nur immer 2 bis bots richtig ?

  • dann stürtzt alles ab -,-
    brauch mal hilfe dabei
    bitte



    //Bots
    #if NPCSS==1
    ConnectNPC("Mike","zivispawnmike");
    ConnectNPC("Dominique","nutte1");
    ConnectNPC("Volker","abody");
    ConnectNPC("Ralle","b3");
    ConnectNPC("Tom","tankwart");
    ConnectNPC("Jack","jack");
    ConnectNPC("DJ_Paddy","adj");
    ConnectNPC("Phillip","abk");
    ConnectNPC("Lumar","ahd");
    ConnectNPC("Dennis","b1");
    #endif


    #if NPCSS==1
    SetTimer("ConnectBots", 10000, false); // Bots Connecten lassen
    #endif


    forward ConnectBots2();
    public ConnectBots2()
    {
    #if NPCSS==1
    ConnectNPC("Hugo","pizza");
    ConnectNPC("Norbert","kampf");
    ConnectNPC("Jan","bsnbar");
    ConnectNPC("Eddy","wohnwagen");
    ConnectNPC("Alberto","handy");
    ConnectNPC("AutoPate","derpate");
    ConnectNPC("Shootiii","shooti");
    ConnectNPC("Vivienn","vivien");
    ConnectNPC("Roman","kirchenbar");
    ConnectNPC("DDealer","dealerquest");
    ConnectNPC("DDDealer","drogen");
    ConnectNPC("Otto","pdj");
    ConnectNPC("Pascal","pascal");
    ConnectNPC("WannisVater","wvater");
    ConnectNPC("Wanni","blow1");
    ConnectNPC("Neko","blow2");
    SetTimer("ConnectBots3", 5000, false);
    #endif
    return 1;
    }


    forward ConnectBots3();
    public ConnectBots3()
    {
    #if NPCSS==1
    ConnectNPC("Maya","rennen");
    ConnectNPC("Michael","clubb");
    ConnectNPC("Patrick","bank1");
    ConnectNPC("Lissa","bank2");
    ConnectNPC("Stefania","stefa");
    ConnectNPC("Magger","Flugbot");
    ConnectNPC("Anna","hotel");
    ConnectNPC("James","casino1");
    ConnectNPC("Semaj","casino2");
    ConnectNPC("Melanie","lotto");
    ConnectNPC("Charlie","ammu");
    ConnectNPC("Martin","shop");
    ConnectNPC("Leo","police");
    ConnectNPC("Sasa","botsasa");
    ConnectNPC("Peter","guard");
    #endif
    return 1;
    }


    forward ConnectBots();
    public ConnectBots()
    {
    #if NPCSS==1
    ConnectNPC("PaulDerBarkeeper","barkeeper");
    ConnectNPC("Daniel","passa1");
    ConnectNPC("Joeline","passa2");
    ConnectNPC("Michaela","michaela");
    ConnectNPC("Christina","feuer");
    ConnectNPC("Jeremy","jeremy");
    ConnectNPC("Jackson","jackson");
    ConnectNPC("Susanna","binco");
    ConnectNPC("Tatjana","bugershot");
    ConnectNPC("Marie","cityhall");
    ConnectNPC("Hagermann","haga");
    ConnectNPC("Nils","nils");
    ConnectNPC("Laura","sekt");
    SetTimer("ConnectBots2", 20000, false);
    #endif



    so ist es aufgebaut



    sobald ich es so weiter führe schmiert alles ab