in Innenraum Spawnen und cars spawnen

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
  • so sieht das ganze aus :)
    if(!strcmp(cmdtext,"/funcar",false,2))
    {
    if(IsInAdmin[playerid] >= 3)


    {
    {
    SendClientMessageToAll(0xFF7800FF,"FUN CAR beginnt");
    SendClientMessageToAll(0xFF7800FF,"es wurden einige Bikes gespawnt");
    }


    {
    AddStaticVehicleEx(468,-1454.1959,1636.2278,1056.4219,220.2260,7,7,-1); // Bike
    AddStaticVehicleEx(468,-1454.1294,1628.4982,1054.4141,224.6127,7,7,-1); // Bike
    AddStaticVehicleEx(468,-1409.1393,1617.7162,1055.3203,185.1324,7,7,-1); // Bike
    AddStaticVehicleEx(468,-1371.4176,1631.7950,1055.7747,85.8281,7,7,-1); // Bike

    AddStaticVehicleEx(468,-1411.1398,1565.6052,1052.5313,182.9390,7,7,-1); // Bike
    AddStaticVehicleEx(468,-1415.7660,1565.4489,1052.5313,183.5656,7,7,-1); // Bike
    AddStaticVehicleEx(468,-1419.8007,1565.1652,1052.5313,183.5656,7,7,-1); // Bike
    AddStaticVehicleEx(468,-1425.2338,1564.9291,1052.5313,183.5656,7,7,-1); // Bike

    AddStaticVehicleEx(468,-1431.3263,1564.7578,1052.5313,185.7591,7,7,-1); // Bike
    AddStaticVehicleEx(468,-1437.0425,1565.2823,1052.5313,179.4923,7,7,-1); // Bike

    }
    }
    else
    {
    SendClientMessage(playerid, rot, "Du bist kein Moderator");
    return 1;
    }

    wo liegt mein Fehler ? oder bessere Frage wo muss ich da "LinkVehicleToInterior(carid,14);" einbauen ?

  • Probier des mal so:



    #define maxfuncars 10;
    new funcar[maxfuncars];
    if(!strcmp(cmdtext,"/funcar",false,2))
    {
    if(IsInAdmin[playerid] >= 3)


    {
    {
    SendClientMessageToAll(0xFF7800FF,"FUN CAR beginnt");
    SendClientMessageToAll(0xFF7800FF,"es wurden einige Bikes gespawnt");
    }


    {
    funcar[0] = AddStaticVehicleEx(468,-1454.1959,1636.2278,1056.4219,220.2260,7,7,-1); // Bike
    funcar[1] = AddStaticVehicleEx(468,-1454.1294,1628.4982,1054.4141,224.6127,7,7,-1); // Bike
    funcar[2] = AddStaticVehicleEx(468,-1409.1393,1617.7162,1055.3203,185.1324,7,7,-1); // Bike
    funcar[3] = AddStaticVehicleEx(468,-1371.4176,1631.7950,1055.7747,85.8281,7,7,-1); // Bike

    funcar[4] = AddStaticVehicleEx(468,-1411.1398,1565.6052,1052.5313,182.9390,7,7,-1); // Bike
    funcar[5] = AddStaticVehicleEx(468,-1415.7660,1565.4489,1052.5313,183.5656,7,7,-1); // Bike
    funcar[6] = AddStaticVehicleEx(468,-1419.8007,1565.1652,1052.5313,183.5656,7,7,-1); // Bike
    funcar[7] = AddStaticVehicleEx(468,-1425.2338,1564.9291,1052.5313,183.5656,7,7,-1); // Bike

    funcar[8] = AddStaticVehicleEx(468,-1431.3263,1564.7578,1052.5313,185.7591,7,7,-1); // Bike
    funcar[9] = AddStaticVehicleEx(468,-1437.0425,1565.2823,1052.5313,179.4923,7,7,-1); // Bike

    for(new k = 0;k<sizeof(maxfuncars);k++)
    {
    LinkVehicleToInterior(funcar[k],14);
    }
    }
    }
    else
    {
    SendClientMessage(playerid, rot, "Du bist kein Moderator");
    return 1;
    }

  • #define maxfuncars 10;
    new funcar[maxfuncars];
    if(!strcmp(cmdtext,"/funcar",false,2))
    {
    if(IsInAdmin[playerid] >= 3)
    {
    SendClientMessageToAll(0xFF7800FF,"FUN CAR beginnt");
    SendClientMessageToAll(0xFF7800FF,"es wurden einige Bikes gespawnt");
    funcar[0] = AddStaticVehicleEx(468,-1454.1959,1636.2278,1056.4219,220.2260,7,7,-1); // Bike
    funcar[1] = AddStaticVehicleEx(468,-1454.1294,1628.4982,1054.4141,224.6127,7,7,-1); // Bike
    funcar[2] = AddStaticVehicleEx(468,-1409.1393,1617.7162,1055.3203,185.1324,7,7,-1); // Bike
    funcar[3] = AddStaticVehicleEx(468,-1371.4176,1631.7950,1055.7747,85.8281,7,7,-1); // Bike
    funcar[4] = AddStaticVehicleEx(468,-1411.1398,1565.6052,1052.5313,182.9390,7,7,-1); // Bike
    funcar[5] = AddStaticVehicleEx(468,-1415.7660,1565.4489,1052.5313,183.5656,7,7,-1); // Bike
    funcar[6] = AddStaticVehicleEx(468,-1419.8007,1565.1652,1052.5313,183.5656,7,7,-1); // Bike
    funcar[7] = AddStaticVehicleEx(468,-1425.2338,1564.9291,1052.5313,183.5656,7,7,-1); // Bike
    funcar[8] = AddStaticVehicleEx(468,-1431.3263,1564.7578,1052.5313,185.7591,7,7,-1); // Bike
    funcar[9] = AddStaticVehicleEx(468,-1437.0425,1565.2823,1052.5313,179.4923,7,7,-1); // Bike
    for(new k = 0;k<sizeof(maxfuncars);k++)
    {
    LinkVehicleToInterior(funcar[k],14);
    }
    }
    else
    {
    return SendClientMessage(playerid, rot, "Du bist kein Moderator");
    }
    }

  • so sieht das ganze aus
    if(!strcmp(cmdtext,"/funcar",false,2))
    {
    new funcar[maxfuncars];
    if(IsInAdmin[playerid] >= 3)
    {
    SendClientMessageToAll(0xFF7800FF,"FUN CAR beginnt");
    SendClientMessageToAll(0xFF7800FF,"es wurden einige Bikes gespawnt");
    funcar[0] = AddStaticVehicleEx(468,-1454.1959,1636.2278,1056.4219,220.2260,7,7,-1); // Bike
    funcar[1] = AddStaticVehicleEx(468,-1454.1294,1628.4982,1054.4141,224.6127,7,7,-1); // Bike
    funcar[2] = AddStaticVehicleEx(468,-1409.1393,1617.7162,1055.3203,185.1324,7,7,-1); // Bike
    funcar[3] = AddStaticVehicleEx(468,-1371.4176,1631.7950,1055.7747,85.8281,7,7,-1); // Bike
    funcar[4] = AddStaticVehicleEx(468,-1411.1398,1565.6052,1052.5313,182.9390,7,7,-1); // Bike
    funcar[5] = AddStaticVehicleEx(468,-1415.7660,1565.4489,1052.5313,183.5656,7,7,-1); // Bike
    funcar[6] = AddStaticVehicleEx(468,-1419.8007,1565.1652,1052.5313,183.5656,7,7,-1); // Bike
    funcar[7] = AddStaticVehicleEx(468,-1425.2338,1564.9291,1052.5313,183.5656,7,7,-1); // Bike
    funcar[8] = AddStaticVehicleEx(468,-1431.3263,1564.7578,1052.5313,185.7591,7,7,-1); // Bike
    funcar[9] = AddStaticVehicleEx(468,-1437.0425,1565.2823,1052.5313,179.4923,7,7,-1); // Bike
    for(new k = 0;k<10;k++)
    {
    LinkVehicleToInterior(funcar[k],14);
    }
    }
    else
    {
    return SendClientMessage(playerid, rot, "Du bist kein Moderator");
    }
    }