Kleine Frage zu den Bots

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
  • Hallo
    Ich habe mal eine Frage zu den Bots ich habe heute bots gemacht es funktioniert alles super
    jetzt habe ich 1 neuen bot gemacht der connected auch geht aber dan wieder die anderen nicht hier mein Code ausm Gamemode:

    //Onplayerspawn:


    else if(!strcmp(playername,"Busline1",true))
    {
    PutPlayerInVehicle(playerid,7,0);
    SetPlayerColor(playerid,0xFFFFFFFF);
    }


    public SetupPlayerForClassSelection(playerid)
    {


    new botname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, botname, sizeof(botname));
    if(IsPlayerNPC(playerid) || !strcmp(botname, "Busline1", true))
    {
    gPlayerLogged[playerid] = 1;
    Eingeloggt[playerid] = 1;
    new npcname[64];
    SpawnPlayer(playerid);
    GetPlayerName(playerid,npcname,64);
    }
    .....
    }



    //Ongamemodei...
    ConnectNPC("Busline1","busline_1");


    //Im Ordner npcmodes habe ich eine datei die heißt: busline_2.pwn und busline_2.amx
    //Inhalt der PWN:


    //
    // A Driver NPC that goes around a path continuously
    // Kye 2009
    //


    #include <a_npc>


    #define NUM_PLAYBACK_FILES 3
    new gPlaybackFileCycle=0;
    main(){}
    NextPlayback()
    {
    // Reset the cycle count if we reach the max
    if(gPlaybackFileCycle==NUM_PLAYBACK_FILES) gPlaybackFileCycle = 0;


    if(gPlaybackFileCycle==0) {
    StartRecordingPlayback(PLAYER_RECORDING_TYPE_DRIVER,"busline_1_1");
    }
    else if(gPlaybackFileCycle==1) {
    StartRecordingPlayback(PLAYER_RECORDING_TYPE_DRIVER,"busline_1_1");
    }
    else if(gPlaybackFileCycle==2) {
    StartRecordingPlayback(PLAYER_RECORDING_TYPE_DRIVER,"busline_1_1");
    }
    gPlaybackFileCycle++;
    }
    public OnRecordingPlaybackEnd()
    {
    NextPlayback();
    }
    public OnNPCEnterVehicle(vehicleid, seatid)
    {
    NextPlayback();
    }


    //------------------------------------------


    public OnNPCExitVehicle()
    {
    StopRecordingPlayback();
    gPlaybackFileCycle = 0;
    }


    //------------------------------------------

    Ich hoffe mir kann jemand helfen


    mfg
    alex2009

    Name: [AM] German RealLife
    SAMP IP: 94.199.242.79:7777
    TS³ IP: 94.199.242.79:9987

    Homepage: http://www.gta-clan.com

    2 Mal editiert, zuletzt von alex2009 ()

  • ja so in ähnliches problem habe ich auch aber bei mir zeiggt er sobald jemand auf den server kommt an "Bot hat unseren Server Verlassen (Lost Conection)" sprich Time Out,


    wie kannein Bot denn einen Tome Out kriegen oder was mache ich falsch?

    [align=center]Kart Racing
    !!!Wir fahren auf SIEG nicht auf Ankommen!!!