Bots connecten nicht

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
  • Ok, habs übersehen laut Serverlog connecten diese, doch funktionieren tuen diese nicht wirklich. Ich selber starte auch immer mit der UID 0.


    Grüße,


    Code
    ----------Loaded log file: "server_log.txt".----------SA-MP Dedicated Server----------------------v0.3z, (C)2005-2014 SA-MP Team[20:44:06] [20:44:06] Server Plugins[20:44:06] --------------[20:44:06]  Loading plugin: mysql.so[20:44:06]   > MySQL plugin R7 successfully loaded.[20:44:06]   Loaded.[20:44:06]  Loading plugin: sscanf.so[20:44:06] [20:44:06]  ===============================[20:44:06]       sscanf plugin loaded.     [20:44:06]    (c) 2009 Alex "Y_Less" Cole[20:44:06]    0.3d-R2 500 Players "dnee"[20:44:06]  ===============================[20:44:06]   Loaded.[20:44:06]  Loading plugin: streamer.so[20:44:06] *** Streamer Plugin v2.6.1 by Incognito loaded ***[20:44:06]   Loaded.[20:44:06]  Loading plugin: nativechecker.so[20:44:06]   Loaded.[20:44:06]  Loaded 4 plugins.[20:44:07] [20:44:07] Filterscripts[20:44:07] ---------------[20:44:07]   Loading filterscript 'gl_actions.amx'...[20:44:07]   Loading filterscript 'gl_realtime.amx'...[20:44:07]   Loading filterscript 'gl_mapicon.amx'...[20:44:07]   Loading filterscript 'ls_mall.amx'...[20:44:07]   Loading filterscript 'attachments.amx'...[20:44:07]   Loading filterscript 'skinchanger.amx'...[20:44:07] --Admin Player Skin Changer Loaded[20:44:07]   Loading filterscript 'vspawner.amx'...[20:44:07] --Admin Vehicle Spawner Loaded[20:44:07]   Loaded 7 filterscripts.[20:44:07] 		... GamemodeInit[20:44:07] SERVER:		Verbindung zur Datenbank wurde erfolgreich hergestellt.[20:44:07] Host: vweb16.nitrado.net,User: ni31914_2sql2,Datanbank: ni31914_2sql2,Passwort: ****[20:44:07] Scriptversion: GER 2.0b,Mapversion Life 2.2,Url: www.german-elite-reallife.de,Scripter&Mapper: Dean_Hunter,Maximale NPC´s: 13[20:44:07] --------------------------------[20:44:07] 		Laden ...[20:44:07] Incoming connection: 178.33.168.72:37352[20:44:07] Incoming connection: 178.33.168.72:43745[20:44:07] - Globale Timer gestartet. | Bots connected. -[20:44:07] 		Laden erfolgreich.[20:44:07] --------------------------------[20:44:07] - Server brauchte für das Hochfahren 127 ms -[20:44:07] Server bereit für Spieler ... Sanktionen können nun ausgeführt werden.[20:44:07] Paradise Roleplay Its Possible GER 2.0b[20:44:07] --------------------------------[20:44:07] Dieses Script [Version: Its Possible GER 2.0b] steht unter Datenschutz und darf[20:44:07] nur von dem jenigen Besitzer benutzt/verwendet werden.[20:44:07] Falls diese Richtlinien nicht eingehalten werden,werden[20:44:07] Rechtlicheschritte gegen sie eingeleitet.[20:44:07] © Copyright & Gründer by Fernandez_Alvarez[20:44:07] --------------------------------[20:44:07] Paradise Roleplay Its Possible GER 2.0b[20:44:07] Number of vehicle models: 86[20:44:07] Incoming connection: 178.33.168.72:35196[20:44:07] Incoming connection: 178.33.168.72:53738[20:44:07] Incoming connection: 178.33.168.72:35825[20:44:07] Incoming connection: 178.33.168.72:34470[20:44:07] Incoming connection: 178.33.168.72:56080[20:44:07] Incoming connection: 178.33.168.72:39053[20:44:07] Incoming connection: 178.33.168.72:34227[20:44:07] Incoming connection: 178.33.168.72:45684[20:44:07] Incoming connection: 178.33.168.72:35452[20:44:07] Blocking 178.33.168.72 due to a 'server full' attack (1)[20:44:09] - Gangzonen geladen 14/14 -[20:44:09] - Blitzer geladen 2/50 -[20:44:09] - Minen geladen 0/20 -[20:44:09] - XmasObject geladen 0/100 -[20:44:09] - Drogenpflanzen geladen 0/50 -[20:44:09] - Funkmasten geladen 7/20 -


    /e: Recordings ect sind vorhanden.

  • new bots,Botimer; Botimer = SetTimer("bot",1000,true);
    forward bot();
    public bot()
    {
    bots++;
    switch(bots)
    {
    case 0:{ConnectNPC("Name","Name");}
    case 1:{ConnectNPC("Name","Name");}
    case 2:{ConnectNPC("Name","Name");}
    [..]
    case 15:{KillTimer(Botimer);}
    }
    }
    Sollte doch auch funktionieren, oder?

  • Spoiler anzeigen
    forward ConnectNPC();
    forward ConnectNPC2();
    forward ConnectNPC3();
    forward ConnectNPC4();
    forward ConnectNPC5();
    forward ConnectNPC6();
    forward ConnectNPC7();
    forward ConnectNPC8();
    forward ConnectNPC9();
    forward ConnectNPC10();
    forward ConnectNPC11();
    forward ConnectNPC12();
    forward ConnectNPC13();
    public ConnectNPC()
    {
    ConnectNPC("[BOT]PanzerBot","armypanzerbot");
    return 1;
    }
    public ConnectNPC2()
    {
    ConnectNPC("[BOT]ZugBot","SAzugbot");
    return 1;
    }
    public ConnectNPC3()
    {
    ConnectNPC("[BOT]Shamal","LStoSFshamalBOT");
    return 1;
    }
    public ConnectNPC4()
    {
    ConnectNPC("[BOT]AT400","LStoLVat400BOT");
    return 1;
    }
    public ConnectNPC5()
    {
    ConnectNPC("[BOT]OpiumDealer","opiumdealer");
    return 1;
    }
    public ConnectNPC6()
    {
    ConnectNPC("[BOT]DKDealer","dkdealer");
    return 1;
    }
    public ConnectNPC7()
    {
    ConnectNPC("[BOT]F.NinowBot","SFtrambot");
    return 1;
    }
    public ConnectNPC8()
    {
    ConnectNPC("[BOT]C4Transport","ARMYtransport");
    return 1;
    }
    public ConnectNPC9()
    {
    ConnectNPC("[BOT]Bank","bankbot")
    return 1;
    }
    public ConnectNPC10()
    {
    ConnectNPC("[BOT]Antibot","antibot");
    return 1;
    }
    public ConnectNPC11()
    {
    ConnectNPC("[BOT]StadthalleLS","stadthallenbot");
    return 1;
    }
    public ConnectNPC(12)
    {
    ConnectNPC("[BOT]StadthalleSF","stadthallenbot");
    return 1;
    }
    public ConnectNPC13()
    {
    ConnectNPC("[BOT]Prister","pristerbot");
    return 1;
    }

    Spoiler anzeigen
    public OnGameModeInit()
    {
    SetTimer("ConnectNPC",10000,0);
    SetTimer("ConnectNPC2",20000,0);
    SetTimer("ConnectNPC3",30000,0);
    SetTimer("ConnectNPC4",40000,0);
    SetTimer("ConnectNPC5",50000,0);
    SetTimer("ConnectNPC6",60000,0);
    SetTimer("ConnectNPC7",70000,0);
    SetTimer("ConnectNPC8",80000,0);
    SetTimer("ConnectNPC9",90000,0);
    SetTimer("ConnectNPC10",100000,0);
    SetTimer("ConnectNPC11",110000,0);
    SetTimer("ConnectNPC12",120000,0);
    SetTimer("ConnectNPC13",130000,0);

    Code
    C:\Users\olli962\Desktop\samp\server123\gamemodes\GeTmyselfmade.pwn(4579) : warning 217: loose indentationC:\Users\olli962\Desktop\samp\server123\gamemodes\GeTmyselfmade.pwn(14176) : warning 217: loose indentationC:\Users\olli962\Desktop\samp\server123\gamemodes\GeTmyselfmade.pwn(14176) : error 029: invalid expression, assumed zeroC:\Users\olli962\Desktop\samp\server123\gamemodes\GeTmyselfmade.pwn(14176) : warning 202: number of arguments does not match definitionC:\Users\olli962\Desktop\samp\server123\gamemodes\GeTmyselfmade.pwn(14176) : warning 202: number of arguments does not match definitionC:\Users\olli962\Desktop\samp\server123\gamemodes\GeTmyselfmade.pwn(14177) : error 029: invalid expression, assumed zeroC:\Users\olli962\Desktop\samp\server123\gamemodes\GeTmyselfmade.pwn(14177) : error 017: undefined symbol "ConnectNPC2"C:\Users\olli962\Desktop\samp\server123\gamemodes\GeTmyselfmade.pwn(14178) : error 029: invalid expression, assumed zeroC:\Users\olli962\Desktop\samp\server123\gamemodes\GeTmyselfmade.pwn(14178) : error 017: undefined symbol "ConnectNPC3"C:\Users\olli962\Desktop\samp\server123\gamemodes\GeTmyselfmade.pwn(14179) : error 029: invalid expression, assumed zeroC:\Users\olli962\Desktop\samp\server123\gamemodes\GeTmyselfmade.pwn(14179) : error 017: undefined symbol "ConnectNPC4"C:\Users\olli962\Desktop\samp\server123\gamemodes\GeTmyselfmade.pwn(14180) : error 029: invalid expression, assumed zeroC:\Users\olli962\Desktop\samp\server123\gamemodes\GeTmyselfmade.pwn(14180) : error 017: undefined symbol "ConnectNPC5"C:\Users\olli962\Desktop\samp\server123\gamemodes\GeTmyselfmade.pwn(14181) : error 029: invalid expression, assumed zeroC:\Users\olli962\Desktop\samp\server123\gamemodes\GeTmyselfmade.pwn(14181) : error 017: undefined symbol "ConnectNPC6"C:\Users\olli962\Desktop\samp\server123\gamemodes\GeTmyselfmade.pwn(14182) : error 029: invalid expression, assumed zeroC:\Users\olli962\Desktop\samp\server123\gamemodes\GeTmyselfmade.pwn(14182) : error 017: undefined symbol "ConnectNPC7"C:\Users\olli962\Desktop\samp\server123\gamemodes\GeTmyselfmade.pwn(14183) : error 029: invalid expression, assumed zero

  • do.de - Domain-Offensive - Domains für alle und zu super Preisen
  • Jetzt habs ich es so:

    Spoiler anzeigen


    forward ConnectNPC();
    forward ConnectNPC2();

    Spoiler anzeigen
    public ConnectNPC()
    {
    ConnectNPC("[BOT]PanzerBot","armypanzerbot");
    ConnectNPC("[BOT]ZugBot","SAzugbot");
    ConnectNPC("[BOT]Shamal","LStoSFshamalBOT");
    ConnectNPC("[BOT]AT400","LStoLVat400BOT");
    ConnectNPC("[BOT]OpiumDealer","opiumdealer");
    ConnectNPC("[BOT]DKDealer","dkdealer");
    ConnectNPC("[BOT]F.NinowBot","SFtrambot");
    return 1;
    }
    public ConnectNPC2()
    {
    ConnectNPC("[BOT]C4Transport","ARMYtransport");
    ConnectNPC("[BOT]Bank","bankbot")
    ConnectNPC("[BOT]Antibot","antibot");
    ConnectNPC("[BOT]StadthalleLS","stadthallenbot");
    ConnectNPC("[BOT]StadthalleSF","stadthallenbot");
    ConnectNPC("[BOT]Prister","pristerbot");
    return 1;
    }

    Spoiler anzeigen
    public OnGameModeInit()
    {
    SetTimer("ConnectNPC",10000,0);
    SetTimer("ConnectNPC2",20000,0);

    Code
    C:\Users\olli962\Desktop\samp\server123\gamemodes\GeTmyselfmade.pwn(4568) : warning 217: loose indentationC:\Users\olli962\Desktop\samp\server123\gamemodes\GeTmyselfmade.pwn(14165) : warning 217: loose indentationC:\Users\olli962\Desktop\samp\server123\gamemodes\GeTmyselfmade.pwn(14165) : error 029: invalid expression, assumed zeroC:\Users\olli962\Desktop\samp\server123\gamemodes\GeTmyselfmade.pwn(14165) : warning 202: number of arguments does not match definitionC:\Users\olli962\Desktop\samp\server123\gamemodes\GeTmyselfmade.pwn(14165) : warning 202: number of arguments does not match definitionC:\Users\olli962\Desktop\samp\server123\gamemodes\GeTmyselfmade.pwn(14166) : error 029: invalid expression, assumed zeroC:\Users\olli962\Desktop\samp\server123\gamemodes\GeTmyselfmade.pwn(14166) : error 017: undefined symbol "ConnectNPC2"C:\Users\olli962\Desktop\samp\server123\gamemodes\GeTmyselfmade.pwn(14168) : error 029: invalid expression, assumed zeroC:\Users\olli962\Desktop\samp\server123\gamemodes\GeTmyselfmade.pwn(14168) : warning 202: number of arguments does not match definitionC:\Users\olli962\Desktop\samp\server123\gamemodes\GeTmyselfmade.pwn(14168) : warning 202: number of arguments does not match definitionC:\Users\olli962\Desktop\samp\server123\gamemodes\GeTmyselfmade.pwn(14169) : error 001: expected token: ";", but found "{"C:\Users\olli962\Desktop\samp\server123\gamemodes\GeTmyselfmade.pwn(14179) : warning 225: unreachable codeC:\Users\olli962\Desktop\samp\server123\gamemodes\GeTmyselfmade.pwn(14179) : error 029: invalid expression, assumed zeroC:\Users\olli962\Desktop\samp\server123\gamemodes\GeTmyselfmade.pwn(14179) : error 017: undefined symbol "ConnectNPC2"C:\Users\olli962\Desktop\samp\server123\gamemodes\GeTmyselfmade.pwn(14183) : error 001: expected token: ";", but found "-identifier-"C:\Users\olli962\Desktop\samp\server123\gamemodes\GeTmyselfmade.pwn(14204) : warning 225: unreachable codeC:\Users\olli962\Desktop\samp\server123\gamemodes\GeTmyselfmade.pwn(14204) : warning 217: loose indentationPawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase

  • :|




    Und gibt es noch fehler?



    Kannst du mir vllt via TV Helfen?