Autospawnener => Autohaus

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
  • Zeile (11) : Unbekannte Variable : "pickupid"
    Zeile (24) : error 025: function heading differs from prototype
    Zeile (26) : Unbekannte Variable : "pickupid"
    Zeile (28) : Unbekannte Variable : "playerid"
    xDD

  • #include <a_samp>
    #define Dialog 4670


    new carpickup;


    public OnFilterScriptInit()
    {
    print("\n--------------------------------------");
    print("Flugzeugautohaus");
    print("--------------------------------------\n");
    carpickup = AddStaticPickup(picupid,1,x,y,z,-1);
    return 1;
    }


    public OnFilterScriptExit()
    {
    print("\n----------------------------------");
    print("Flugzeugautohaus");
    print("----------------------------------\n");
    return 1;
    }



    public OnPlayerPickUpPickup(playerid, pickupid)
    {
    if(pickupid==carpickup)
    {
    ShowPlayerDialog(playerid, Dialog, DIALOG_STYLE_LIST, "Auto Dialog", "Beagle\nCropduster\nDodo\nRustler\nSkimmer\nStuntplane\nMaverick\nSeasparrow\nSparrow", "Spawn", "Abbrechen");
    }
    return 1;
    }





    public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
    {
    if(dialogid == Dialog)
    {
    switch(listitem)
    {
    case 0:
    {
    new Float:X, Float:Y, Float:Z, Float:Ang, Int, pVeh;
    Int = GetPlayerInterior(playerid);
    GetPlayerPos(playerid, X, Y, Z);
    GetPlayerFacingAngle(playerid, Ang);
    GetPlayerInterior(playerid);
    pVeh = CreateVehicle(511, X, Y, Z, Ang, 0, 0, -1);
    LinkVehicleToInterior(pVeh, Int);
    PutPlayerInVehicle(playerid, pVeh, 0);
    GivePlayerMoney(playerid,-2000);
    }
    case 1:
    {
    new Float:X, Float:Y, Float:Z, Float:Ang, Int, pVeh;
    Int = GetPlayerInterior(playerid);
    GetPlayerPos(playerid, X, Y, Z);
    GetPlayerFacingAngle(playerid, Ang);
    pVeh = CreateVehicle(512, X, Y, Z, Ang, 0, 0, -1);
    LinkVehicleToInterior(pVeh, Int);
    PutPlayerInVehicle(playerid, pVeh, 0);
    GivePlayerMoney(playerid,-2000);
    }
    case 2:
    {
    new Float:X, Float:Y, Float:Z, Float:Ang, Int, pVeh;
    Int = GetPlayerInterior(playerid);
    GetPlayerPos(playerid, X, Y, Z);
    GetPlayerFacingAngle(playerid, Ang);
    pVeh = CreateVehicle(593, X, Y, Z, Ang, 0, 0, -1);
    LinkVehicleToInterior(pVeh, Int);
    PutPlayerInVehicle(playerid, pVeh, 0);
    GivePlayerMoney(playerid,-2000);
    }
    case 3:
    {
    new Float:X, Float:Y, Float:Z, Float:Ang, Int, pVeh;
    Int = GetPlayerInterior(playerid);
    GetPlayerPos(playerid, X, Y, Z);
    GetPlayerFacingAngle(playerid, Ang);
    pVeh = CreateVehicle(476, X, Y, Z, Ang, 0, 0, -1);
    LinkVehicleToInterior(pVeh, Int);
    PutPlayerInVehicle(playerid, pVeh, 0);
    GivePlayerMoney(playerid,-2000);
    }
    case 4:
    {
    new Float:X, Float:Y, Float:Z, Float:Ang, Int, pVeh;
    Int = GetPlayerInterior(playerid);
    GetPlayerPos(playerid, X, Y, Z);
    GetPlayerFacingAngle(playerid, Ang);
    pVeh = CreateVehicle(460, X, Y, Z, Ang, 0, 0, -1);
    LinkVehicleToInterior(pVeh, Int);
    PutPlayerInVehicle(playerid, pVeh, 0);
    GivePlayerMoney(playerid,-2000);
    }
    case 5:
    {
    new Float:X, Float:Y, Float:Z, Float:Ang, Int, pVeh;
    Int = GetPlayerInterior(playerid);
    GetPlayerPos(playerid, X, Y, Z);
    GetPlayerFacingAngle(playerid, Ang);
    pVeh = CreateVehicle(513, X, Y, Z, Ang, 0, 0, -1);
    LinkVehicleToInterior(pVeh, Int);
    PutPlayerInVehicle(playerid, pVeh, 0);
    GivePlayerMoney(playerid,-2000);
    }
    case 6:
    {
    new Float:X, Float:Y, Float:Z, Float:Ang, Int, pVeh;
    Int = GetPlayerInterior(playerid);
    GetPlayerPos(playerid, X, Y, Z);
    GetPlayerFacingAngle(playerid, Ang);
    pVeh = CreateVehicle(487, X, Y, Z, Ang, 0, 0, -1);
    LinkVehicleToInterior(pVeh, Int);
    PutPlayerInVehicle(playerid, pVeh, 0);
    GivePlayerMoney(playerid,-2000);
    }
    case 7:
    {
    new Float:X, Float:Y, Float:Z, Float:Ang, Int, pVeh;
    Int = GetPlayerInterior(playerid);
    GetPlayerPos(playerid, X, Y, Z);
    GetPlayerFacingAngle(playerid, Ang);
    pVeh = CreateVehicle(447, X, Y, Z, Ang, 0, 0, -1);
    LinkVehicleToInterior(pVeh, Int);
    PutPlayerInVehicle(playerid, pVeh, 0);
    GivePlayerMoney(playerid,-2000);
    }
    case 8:
    {
    new Float:X, Float:Y, Float:Z, Float:Ang, Int, pVeh;
    Int = GetPlayerInterior(playerid);
    GetPlayerPos(playerid, X, Y, Z);
    GetPlayerFacingAngle(playerid, Ang);
    pVeh = CreateVehicle(469, X, Y, Z, Ang, 0, 0, -1);
    LinkVehicleToInterior(pVeh, Int);
    PutPlayerInVehicle(playerid, pVeh, 0);
    GivePlayerMoney(playerid,-2000);
    }
    }
    }
    return 1;
    }



    Freundliche Grüsse
    Vince

  • #include <a_samp>
    #define Dialog 4670


    new carpickup;


    public OnFilterScriptInit()
    {
    print("\n--------------------------------------");
    print("Flugzeugautohaus");
    print("--------------------------------------\n");
    carpickup = AddStaticPickup(1314,1,x,y,z,-1);
    return 1;
    }


    public OnFilterScriptExit()
    {
    print("\n----------------------------------");
    print("Flugzeugautohaus");
    print("----------------------------------\n");
    return 1;
    }



    public OnPlayerPickUpPickup(playerid, pickupid)
    {
    if(pickupid==carpickup)
    {
    ShowPlayerDialog(playerid, Dialog, DIALOG_STYLE_LIST, "Auto Dialog", "Beagle\nCropduster\nDodo\nRustler\nSkimmer\nStuntplane\nMaverick\nSeasparrow\nSparrow", "Spawn", "Abbrechen");
    }
    return 1;
    }





    public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
    {
    if(dialogid == Dialog)
    {
    switch(listitem)
    {
    case 0:
    {
    new Float:X, Float:Y, Float:Z, Float:Ang, Int, pVeh;
    Int = GetPlayerInterior(playerid);
    GetPlayerPos(playerid, X, Y, Z);
    GetPlayerFacingAngle(playerid, Ang);
    GetPlayerInterior(playerid);
    pVeh = CreateVehicle(511, X, Y, Z, Ang, 0, 0, -1);
    LinkVehicleToInterior(pVeh, Int);
    PutPlayerInVehicle(playerid, pVeh, 0);
    GivePlayerMoney(playerid,-2000);
    }
    case 1:
    {
    new Float:X, Float:Y, Float:Z, Float:Ang, Int, pVeh;
    Int = GetPlayerInterior(playerid);
    GetPlayerPos(playerid, X, Y, Z);
    GetPlayerFacingAngle(playerid, Ang);
    pVeh = CreateVehicle(512, X, Y, Z, Ang, 0, 0, -1);
    LinkVehicleToInterior(pVeh, Int);
    PutPlayerInVehicle(playerid, pVeh, 0);
    GivePlayerMoney(playerid,-2000);
    }
    case 2:
    {
    new Float:X, Float:Y, Float:Z, Float:Ang, Int, pVeh;
    Int = GetPlayerInterior(playerid);
    GetPlayerPos(playerid, X, Y, Z);
    GetPlayerFacingAngle(playerid, Ang);
    pVeh = CreateVehicle(593, X, Y, Z, Ang, 0, 0, -1);
    LinkVehicleToInterior(pVeh, Int);
    PutPlayerInVehicle(playerid, pVeh, 0);
    GivePlayerMoney(playerid,-2000);
    }
    case 3:
    {
    new Float:X, Float:Y, Float:Z, Float:Ang, Int, pVeh;
    Int = GetPlayerInterior(playerid);
    GetPlayerPos(playerid, X, Y, Z);
    GetPlayerFacingAngle(playerid, Ang);
    pVeh = CreateVehicle(476, X, Y, Z, Ang, 0, 0, -1);
    LinkVehicleToInterior(pVeh, Int);
    PutPlayerInVehicle(playerid, pVeh, 0);
    GivePlayerMoney(playerid,-2000);
    }
    case 4:
    {
    new Float:X, Float:Y, Float:Z, Float:Ang, Int, pVeh;
    Int = GetPlayerInterior(playerid);
    GetPlayerPos(playerid, X, Y, Z);
    GetPlayerFacingAngle(playerid, Ang);
    pVeh = CreateVehicle(460, X, Y, Z, Ang, 0, 0, -1);
    LinkVehicleToInterior(pVeh, Int);
    PutPlayerInVehicle(playerid, pVeh, 0);
    GivePlayerMoney(playerid,-2000);
    }
    case 5:
    {
    new Float:X, Float:Y, Float:Z, Float:Ang, Int, pVeh;
    Int = GetPlayerInterior(playerid);
    GetPlayerPos(playerid, X, Y, Z);
    GetPlayerFacingAngle(playerid, Ang);
    pVeh = CreateVehicle(513, X, Y, Z, Ang, 0, 0, -1);
    LinkVehicleToInterior(pVeh, Int);
    PutPlayerInVehicle(playerid, pVeh, 0);
    GivePlayerMoney(playerid,-2000);
    }
    case 6:
    {
    new Float:X, Float:Y, Float:Z, Float:Ang, Int, pVeh;
    Int = GetPlayerInterior(playerid);
    GetPlayerPos(playerid, X, Y, Z);
    GetPlayerFacingAngle(playerid, Ang);
    pVeh = CreateVehicle(487, X, Y, Z, Ang, 0, 0, -1);
    LinkVehicleToInterior(pVeh, Int);
    PutPlayerInVehicle(playerid, pVeh, 0);
    GivePlayerMoney(playerid,-2000);
    }
    case 7:
    {
    new Float:X, Float:Y, Float:Z, Float:Ang, Int, pVeh;
    Int = GetPlayerInterior(playerid);
    GetPlayerPos(playerid, X, Y, Z);
    GetPlayerFacingAngle(playerid, Ang);
    pVeh = CreateVehicle(447, X, Y, Z, Ang, 0, 0, -1);
    LinkVehicleToInterior(pVeh, Int);
    PutPlayerInVehicle(playerid, pVeh, 0);
    GivePlayerMoney(playerid,-2000);
    }
    case 8:
    {
    new Float:X, Float:Y, Float:Z, Float:Ang, Int, pVeh;
    Int = GetPlayerInterior(playerid);
    GetPlayerPos(playerid, X, Y, Z);
    GetPlayerFacingAngle(playerid, Ang);
    pVeh = CreateVehicle(469, X, Y, Z, Ang, 0, 0, -1);
    LinkVehicleToInterior(pVeh, Int);
    PutPlayerInVehicle(playerid, pVeh, 0);
    GivePlayerMoney(playerid,-2000);
    }
    }
    }
    return 1;
    }


    Sollte dann so gehen eigentlich^^



    Freundliche Grüsse
    Vince