LSPD car Bugs

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
  • Die LSOD Fahrzeuge werden nicht gespawnt/angezeigt.
    ich hab auch alles richtig gemacht.



    Ich habe alles gemacht was man machen muss.
    aber es geht nicht.
    Bei den LVPD cars
    hab ich heute auch gemacht.
    aber dort werden die angezeigt.


    //NEW LSPD Fahrzeuge by Dennis_Jetlag
    LSPDCars[0] = AddStaticVehicle(596,1595.6089,-1712.1707,5.6726,0.5185,79,1); // PD1
    LSPDCars[1] = AddStaticVehicle(596,1591.4084,-1712.1677,5.6701,359.8560,79,1); // PD2
    LSPDCars[2] = AddStaticVehicle(596,1583.3914,-1711.9835,5.6105,1.0313,79,1); // pd3
    LSPDCars[3] = AddStaticVehicle(596,1578.8973,-1711.9851,5.6176,358.7379,79,1); // pd4NEW
    LSPDCars[4] = AddStaticVehicle(596,1574.4535,-1711.9850,5.6085,1.3399,79,1); // pd5
    LSPDCars[5] = AddStaticVehicle(596,1570.5175,-1711.8796,5.5718,0.0329,79,1); // pd6
    LSPDCars[6] = AddStaticVehicle(596,1558.7830,-1711.9232,5.6109,0.6612,79,1); // pd7
    LSPDCars[7] = AddStaticVehicle(601,1526.1775,-1644.1746,5.6510,180.7206,79,1); // SWAT
    LSPDCars[8] = AddStaticVehicle(601,1530.7343,-1644.3223,5.6494,179.1590,79,1); // SWAT2
    LSPDCars[9] = AddStaticVehicle(603,1527.4778,-1687.9943,5.7286,269.7517,79,1); // P1
    LSPDCars[10] = AddStaticVehicle(603,1527.4772,-1683.8997,5.7284,270.0224,79,1); // P2
    LSPDCars[11] = AddStaticVehicle(523,1561.9368,-1713.4443,5.4639,335.4416,79,1); // HPV1
    LSPDCars[12] = AddStaticVehicle(523,1563.7273,-1713.1272,5.4641,337.6309,79,1); // HPV2
    LSPDCars[13] = AddStaticVehicle(523,1565.2708,-1713.3748,5.4630,333.2018,79,1); // HPV3
    LSPDCars[14] = AddStaticVehicle(523,1566.7854,-1713.7715,5.4620,332.4232,79,1); // HPV4
    LSPDCars[15] = AddStaticVehicle(560,1546.7249,-1684.3317,5.5940,91.5453,79,1); // S1NEW
    LSPDCars[16] = AddStaticVehicle(560,1546.8883,-1680.0826,5.5973,87.7976,79,1); // S2
    LSPDCars[17] = AddStaticVehicle(560,1546.6638,-1675.8719,5.5435,90.3051,79,1); // S3
    LSPDCars[18] = AddStaticVehicle(560,1546.6956,-1671.9731,5.5894,89.0745,79,1); // S4
    LSPDCars[19] = AddStaticVehicle(411,1546.5542,-1667.9999,5.6177,89.4609,79,1); // I1
    LSPDCars[20] = AddStaticVehicle(411,1546.6765,-1663.2744,5.6177,90.3228,79,1); // I2
    LSPDCars[21] = AddStaticVehicle(411,1546.6364,-1658.9127,5.6175,89.6604,79,1); // I3
    LSPDCars[22] = AddStaticVehicle(427,1545.5237,-1655.2477,6.0225,90.4220,79,1); // PP1
    LSPDCars[23] = AddStaticVehicle(427,1545.8116,-1651.0800,6.0291,89.5551,79,1); // PP2
    LSPDCars[24] = AddStaticVehicle(528,1538.7269,-1643.5381,5.9345,180.9691,79,1); // SA1
    LSPDCars[25] = AddStaticVehicle(528,1534.5743,-1643.2745,5.9328,181.4904,79,1); // SA2
    //Selfmade Cars by Dennis_Jetlag ENDE

  • Ja ich habe das alles:


    new LSPDCars[26];


    public IsACopCar(carid)
    {
    for(new h = 0; h < sizeof(LSPDCars); h++){
    if(carid == LSPDCars[h]){
    return 1;
    }
    }
    for(new h = 0; h < sizeof(SFPDCars); h++){
    if(carid == SFPDCars[h]){
    return 1;
    }
    }
    for(new h = 0; h < sizeof(LVPDCars); h++){
    if(carid == LVPDCars[h]){
    return 1;
    }
    }
    for(new h = 0; h < sizeof(FBICars); h++){
    if(carid == FBICars[h]){
    return 1;
    }
    }
    return 0;
    }


    //NEW LSPD Fahrzeuge by Dennis_Jetlag
    LSPDCars[0] = AddStaticVehicle(596,1595.6089,-1712.1707,5.6726,0.5185,79,1); // PD1
    LSPDCars[1] = AddStaticVehicle(596,1591.4084,-1712.1677,5.6701,359.8560,79,1); // PD2
    LSPDCars[2] = AddStaticVehicle(596,1583.3914,-1711.9835,5.6105,1.0313,79,1); // pd3
    LSPDCars[3] = AddStaticVehicle(596,1578.8973,-1711.9851,5.6176,358.7379,79,1); // pd4NEW
    LSPDCars[4] = AddStaticVehicle(596,1574.4535,-1711.9850,5.6085,1.3399,79,1); // pd5
    LSPDCars[5] = AddStaticVehicle(596,1570.5175,-1711.8796,5.5718,0.0329,79,1); // pd6
    LSPDCars[6] = AddStaticVehicle(596,1558.7830,-1711.9232,5.6109,0.6612,79,1); // pd7
    LSPDCars[7] = AddStaticVehicle(601,1526.1775,-1644.1746,5.6510,180.7206,79,1); // SWAT
    LSPDCars[8] = AddStaticVehicle(601,1530.7343,-1644.3223,5.6494,179.1590,79,1); // SWAT2
    LSPDCars[9] = AddStaticVehicle(603,1527.4778,-1687.9943,5.7286,269.7517,79,1); // P1
    LSPDCars[10] = AddStaticVehicle(603,1527.4772,-1683.8997,5.7284,270.0224,79,1); // P2
    LSPDCars[11] = AddStaticVehicle(523,1561.9368,-1713.4443,5.4639,335.4416,79,1); // HPV1
    LSPDCars[12] = AddStaticVehicle(523,1563.7273,-1713.1272,5.4641,337.6309,79,1); // HPV2
    LSPDCars[13] = AddStaticVehicle(523,1565.2708,-1713.3748,5.4630,333.2018,79,1); // HPV3
    LSPDCars[14] = AddStaticVehicle(523,1566.7854,-1713.7715,5.4620,332.4232,79,1); // HPV4
    LSPDCars[15] = AddStaticVehicle(560,1546.7249,-1684.3317,5.5940,91.5453,79,1); // S1NEW
    LSPDCars[16] = AddStaticVehicle(560,1546.8883,-1680.0826,5.5973,87.7976,79,1); // S2
    LSPDCars[17] = AddStaticVehicle(560,1546.6638,-1675.8719,5.5435,90.3051,79,1); // S3
    LSPDCars[18] = AddStaticVehicle(560,1546.6956,-1671.9731,5.5894,89.0745,79,1); // S4
    LSPDCars[19] = AddStaticVehicle(411,1546.5542,-1667.9999,5.6177,89.4609,79,1); // I1
    LSPDCars[20] = AddStaticVehicle(411,1546.6765,-1663.2744,5.6177,90.3228,79,1); // I2
    LSPDCars[21] = AddStaticVehicle(411,1546.6364,-1658.9127,5.6175,89.6604,79,1); // I3
    LSPDCars[22] = AddStaticVehicle(427,1545.5237,-1655.2477,6.0225,90.4220,79,1); // PP1
    LSPDCars[23] = AddStaticVehicle(427,1545.8116,-1651.0800,6.0291,89.5551,79,1); // PP2
    LSPDCars[24] = AddStaticVehicle(528,1538.7269,-1643.5381,5.9345,180.9691,79,1); // SA1
    LSPDCars[25] = AddStaticVehicle(528,1534.5743,-1643.2745,5.9328,181.4904,79,1); // SA2
    //Selfmade Cars by Dennis_Jetlag ENDE



    for(new h = 0; h < sizeof(LSPDCars); h++){
    if(vehicleid == LSPDCars[h] && h <= 28){
    SetVehicleVirtualWorld(vehicleid,14);
    LinkVehicleToInterior(vehicleid,18);
    break;
    }}


    if(vehicleid == LSPDCars[19] || vehicleid == LSPDCars[20])
    {
    SetVehicleHealth(vehicleid, 3000);
    }
    if(Locked[vehicleid] == 1){
    Locked[vehicleid] = 0;
    ForAllPlayers(i){
    SetVehicleParamsForPlayer(vehicleid,i, 0, 0);
    break;
    }}


    das ist ALLES SELFMADE by Dennis_Jetlag
    :D


    Aber bei SFPD/LVPD geht das ja alles.
    Darum hab ich KEINE ahnung mehr


    Die Fahrzeuge stehen normal in der Garage, des LSPD's



    FEHLER GEFUNDEN

    Der Fehler:


    for(new h = 0; h < sizeof(LSPDCars); h++){
    if(vehicleid == LSPDCars[h] && h <= 28){
    SetVehicleVirtualWorld(vehicleid,14);
    LinkVehicleToInterior(vehicleid,18);
    break;
    }}


    Da ich aber die Normale welt habe muss ich das machen:


    for(new h = 0; h < sizeof(LSPDCars); h++){
    if(vehicleid == LSPDCars[h] && h <= 28){
    SetVehicleVirtualWorld(vehicleid,0);
    LinkVehicleToInterior(vehicleid,0);
    break;
    }}


    Aber danke auch so für die Hilfe

    Einmal editiert, zuletzt von Krrboy ()