convoy bug

In 10 Minuten startet der nächtliche Backupvorgang! Es kann währenddessen (ca. 10 Minuten) zu Einschränkungen bei der Nutzung des Forums kommen
Weitere Infos findet ihr im Thema Backup des Forums
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
  • Hi leute,
    ich habe ein kleines problem mit einem convoy system also erstmal will ich klar stellen das ich mir nicht die mühe geacht habe sondern ein richtig netter helfer t4125Gamer der hat mir das alles gemacht und bedanke mich das er sich die ganze mühe gemacht hat dafür also das ist der script:
    #include <ocmd>
    #include <a_samp>
    #include <dini>
    #include <utils>
    #define ROT 0x0000000


    #pragma unused ret_memcpy




    #define DIALOG_CONVOY 131
    #define DIALOG_CONVOY_CREATE 132
    #define DIALOG_CONVOY_JOIN 133



    enum convoy
    {
    convoy1,
    convoy2,
    convoy3,
    convoy4,
    convoy5,
    convoy6,
    convoy7,
    convoy8,
    convoy9,
    convoy10,
    convoy11,
    convoyleader
    };


    new ConvoyInfo[convoy];
    new PlayerConvoyInfo[MAX_PLAYERS][convoy];



    public OnFilterScriptInit()
    {
    print("\n--------------------------------------");
    print(" Convoy Filterscript by T4125Gamer geladenen");
    print("--------------------------------------\n");
    return 1;
    }


    public OnFilterScriptExit()
    {
    new string[128];
    format(string,sizeof(string),"/Convoy/%s.txt",convoy);
    dini_Remove(string);
    return 1;

    }
    public OnPlayerDisconnect(playerid, reason)
    {
    PlayerConvoyInfo[playerid][convoyleader] = 0;
    if(PlayerConvoyInfo[playerid][convoy1] == 1)
    {
    PlayerConvoyInfo[playerid][convoy1] = 0;
    }
    else if(PlayerConvoyInfo[playerid][convoy2] == 1)
    {
    PlayerConvoyInfo[playerid][convoy2] = 0;
    }
    else if(PlayerConvoyInfo[playerid][convoy3] == 1)
    {
    PlayerConvoyInfo[playerid][convoy3] = 0;
    }
    else if(PlayerConvoyInfo[playerid][convoy4] == 1)
    {
    PlayerConvoyInfo[playerid][convoy4] = 0;
    }
    else if(PlayerConvoyInfo[playerid][convoy5] == 1)
    {
    PlayerConvoyInfo[playerid][convoy5] = 0;
    }
    else if(PlayerConvoyInfo[playerid][convoy6] == 1)
    {
    PlayerConvoyInfo[playerid][convoy6] = 0;
    }
    else if(PlayerConvoyInfo[playerid][convoy7] == 1)
    {
    PlayerConvoyInfo[playerid][convoy7] = 0;
    }
    else if(PlayerConvoyInfo[playerid][convoy8] == 1)
    {
    PlayerConvoyInfo[playerid][convoy8] = 0;
    }
    else if(PlayerConvoyInfo[playerid][convoy9] == 2)
    {
    PlayerConvoyInfo[playerid][convoy9] = 0;
    }
    else if(PlayerConvoyInfo[playerid][convoy10] == 2)
    {
    PlayerConvoyInfo[playerid][convoy10] = 0;
    }
    return 1;
    }


    public OnPlayerCommandText(playerid, cmdtext[])
    {
    if(strcmp(cmdtext, "/notwork", true) == 0)
    {
    ShowPlayerDialog(playerid,DIALOG_CONVOY,DIALOG_STYLE_LIST,"Convoy Menü","1. Einen neuen Convony erstellen\n2. Einem Convoy beitreten","Wählen","Abbrechen");
    return 1;
    }
    return 0;
    }


    public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
    {
    return 1;
    }


    public OnPlayerExitVehicle(playerid, vehicleid)
    {
    return 1;
    }


    public OnPlayerStateChange(playerid, newstate, oldstate)
    {
    return 1;
    }


    public OnPlayerEnterCheckpoint(playerid)
    {
    return 1;
    }


    public OnPlayerLeaveCheckpoint(playerid)
    {
    return 1;
    }


    public OnPlayerEnterRaceCheckpoint(playerid)
    {
    return 1;
    }


    public OnPlayerLeaveRaceCheckpoint(playerid)
    {
    return 1;
    }


    public OnRconCommand(cmd[])
    {
    return 1;
    }


    public OnPlayerRequestSpawn(playerid)
    {
    return 1;
    }


    public OnObjectMoved(objectid)
    {
    return 1;
    }


    public OnPlayerObjectMoved(playerid, objectid)
    {
    return 1;
    }


    public OnPlayerPickUpPickup(playerid, pickupid)
    {
    return 1;
    }


    public OnVehicleMod(playerid, vehicleid, componentid)
    {
    return 1;
    }


    public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
    {
    return 1;
    }


    public OnVehicleRespray(playerid, vehicleid, color1, color2)
    {
    return 1;
    }


    public OnPlayerSelectedMenuRow(playerid, row)
    {
    return 1;
    }


    public OnPlayerExitedMenu(playerid)
    {
    return 1;
    }


    public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
    {
    return 1;
    }


    public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
    {
    return 1;
    }


    public OnRconLoginAttempt(ip[], password[], success)
    {
    return 1;
    }


    public OnPlayerUpdate(playerid)
    {
    return 1;
    }


    public OnPlayerStreamIn(playerid, forplayerid)
    {
    return 1;
    }


    public OnPlayerStreamOut(playerid, forplayerid)
    {
    return 1;
    }


    public OnVehicleStreamIn(vehicleid, forplayerid)
    {
    return 1;
    }


    public OnVehicleStreamOut(vehicleid, forplayerid)
    {
    return 1;
    }


    public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
    {
    if(dialogid == 132)
    {
    if(response)
    {
    new convoy_create[64];
    new convoy_save = ReturnUser(inputtext);
    format(convoy_create,sizeof(convoy_create),"/Convoy/%s.txt",convoy_save);
    dini_Create(convoy_create);
    dini_IntSet(convoy_create,"Name",convoy_save);
    ConvoyInfo[convoy1] = 1;
    PlayerConvoyInfo[playerid][convoyleader] = 1;
    if(ConvoyInfo[convoy1] == 1)
    {
    new convoy_save1 = ReturnUser(inputtext);
    format(convoy_create,sizeof(convoy_create),"/Convoy/%s.txt",convoy_save1);
    ConvoyInfo[convoy2] = 1;
    PlayerConvoyInfo[playerid][convoyleader] = 2;
    }
    else if(ConvoyInfo[convoy2] == 1)
    {
    new convoy_save2 = ReturnUser(inputtext);
    format(convoy_create,sizeof(convoy_create),"/Convoy/%s.txt",convoy_save2);
    ConvoyInfo[convoy3] = 1;
    PlayerConvoyInfo[playerid][convoyleader] = 3;
    }
    else if(ConvoyInfo[convoy3] == 1)
    {
    new convoy_save3 = ReturnUser(inputtext);
    format(convoy_create,sizeof(convoy_create),"/Convoy/%s.txt",convoy_save3);
    ConvoyInfo[convoy4] = 1;
    PlayerConvoyInfo[playerid][convoyleader] = 4;
    }
    else if(ConvoyInfo[convoy4] == 1)
    {
    new convoy_save4 = ReturnUser(inputtext);
    format(convoy_create,sizeof(convoy_create),"/Convoy/%s.txt",convoy_save4);
    ConvoyInfo[convoy5] = 1;
    PlayerConvoyInfo[playerid][convoyleader] = 5;
    }
    else if(ConvoyInfo[convoy5] == 1)
    {
    new convoy_save5 = ReturnUser(inputtext);
    format(convoy_create,sizeof(convoy_create),"/Convoy/%s.txt",convoy_save5);
    ConvoyInfo[convoy6] = 1;
    PlayerConvoyInfo[playerid][convoyleader] = 6;
    }
    else if(ConvoyInfo[convoy6] == 1)
    {
    new convoy_save6 = ReturnUser(inputtext);
    format(convoy_create,sizeof(convoy_create),"/Convoy/%s.txt",convoy_save6);
    ConvoyInfo[convoy7] = 1;
    PlayerConvoyInfo[playerid][convoyleader] = 7;
    }
    else if(ConvoyInfo[convoy7] == 1)
    {
    new convoy_save7 = ReturnUser(inputtext);
    format(convoy_create,sizeof(convoy_create),"/Convoy/%s.txt",convoy_save7);
    ConvoyInfo[convoy8] = 1;
    PlayerConvoyInfo[playerid][convoyleader] = 8;
    }
    else if(ConvoyInfo[convoy8] == 1)
    {
    new convoy_save8 = ReturnUser(inputtext);
    format(convoy_create,sizeof(convoy_create),"/Convoy/%s.txt",convoy_save8);
    ConvoyInfo[convoy9] = 1;
    PlayerConvoyInfo[playerid][convoyleader] = 9;
    }
    else if(ConvoyInfo[convoy9] == 1)
    {
    new convoy_save9 = ReturnUser(inputtext);
    format(convoy_create,sizeof(convoy_create),"/Convoy/%s.txt",convoy_save9);
    ConvoyInfo[convoy10] = 1;
    PlayerConvoyInfo[playerid][convoyleader] = 10;
    }
    else if(ConvoyInfo[convoy10] == 1)
    {
    new convoy_save10 = ReturnUser(inputtext);
    format(convoy_create,sizeof(convoy_create),"/Convoy/%s.txt",convoy_save10);
    ConvoyInfo[convoy11] = 1;
    PlayerConvoyInfo[playerid][convoyleader] = 11;
    }
    else if(ConvoyInfo[convoy11] == 1)
    {
    SendClientMessage(playerid,ROT,"Error: Es gibt schon 10 Convoys!");
    }
    }
    }
    if(dialogid == 131)
    {
    if(response)
    {
    if(listitem == 0)
    {
    ShowPlayerDialog(playerid,132,DIALOG_STYLE_INPUT,"Convoy Menü","Wie soll dein Convoy heißen?","Wählen","Abbrechen");
    return 1;
    }
    else if(listitem == 1)
    {
    new string[128];
    new convoy_auslesen1 = dini_Int("/Convoy/%s.txt", "Name");
    format(string,sizeof(string),"%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s",convoy_auslesen1,convoy2,convoy3,convoy4,convoy5,convoy6,convoy7,convoy8,convoy9,convoy10);
    ShowPlayerDialog(playerid,DIALOG_CONVOY_JOIN,DIALOG_STYLE_LIST,"Convoy Menü",string,"Wählen","Abbrechen");
    return 1;
    }


    }
    }
    return 1;
    }
    ocmd:convoy(playerid,params[])
    {
    ShowPlayerDialog(playerid,131,DIALOG_STYLE_LIST,"Convoy Menü","1. Einen neuen Convony erstellen\n2. Einem Convoy beitreten","Wählen","Abbrechen");
    return 1;
    }
    public OnPlayerClickPlayer(playerid, clickedplayerid, source)
    {
    return 1;
    }



    das probleme is wenn mann /convoy macht dann kommt ein dialog nur wenn man irgendwo drauf klickt dann passiert 0

    2 Mal editiert, zuletzt von Nixon ()

  • Wenn ich es jetzt verstanden habe wenn du " /work " eintippst & NUR i.wo drauf klickst passiert nichts, hast du dem Convoy auch mal ein Name geben und dann anschließend auf "Auswählen" (what ever) geklickt?


    //Edit, du siehst aber schon du musst bevor du /Convoy eingeben kannst erst mal 1 Convoy erstellen?

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