Car in Interiors

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
  • Also ich hab Pickups gemacht
    und diese sollen nun ein Auto in
    ein Interior teleportieren , das funktioniert
    auch. Aber sobalt das Car drinnen ist , ist es
    unsichtbar!


    else if(pickupid == lcngarage1)
    {
    if(IsPlayerInAnyVehicle(playerid))SetVehiclePos(GetPlayerVehicleID(playerid),1302.519897,-1.787510,1001.028259);
    LinkVehicleToInterior(vehicleid,18);
    else SetPlayerPos(playerid,1302.519897,-1.787510,1001.028259);
    SetPlayerInterior(playerid,18);
    }
    else if(pickupid == lcngarage2)
    {
    if(IsPlayerInAnyVehicle(playerid))SetVehiclePos(GetPlayerVehicleID(playerid),1302.519897,-1.787510,1001.028259);
    LinkVehicleToInterior(vehicleid,18);
    else SetPlayerPos(playerid,1302.519897,-1.787510,1001.028259);
    SetPlayerInterior(playerid,18);
    }
    else if(pickupid == lcngarage3)
    {
    SetPlayerPos(playerid,1304.1829,-56.1414,1002.5012);
    SetPlayerInterior(playerid,18);
    }
    else if(pickupid == lcngaragefausgang)
    {
    SetPlayerPos(playerid,738.6616,-1431.4574,13.5234);
    SetPlayerInterior(playerid,0);
    }
    else if(pickupid == lcngaragecausgang)
    {
    if(IsPlayerInAnyVehicle(playerid))SetVehiclePos(GetPlayerVehicleID(playerid),662.7847,-1417.7565,13.9638);
    LinkVehicleToInterior(vehicleid,0);
    else SetPlayerPos(playerid,662.7847,-1417.7565,13.9638);
    SetPlayerInterior(playerid,0);
    }


    dann bekomm ich aber diese errors


    C:\Users\PC\Desktop\Server_Wichtig\DMD_Server\gamemodes\DMD.pwn(2024) : error 017: undefined symbol "vehicleid"
    C:\Users\PC\Desktop\Server_Wichtig\DMD_Server\gamemodes\DMD.pwn(2025) : error 029: invalid expression, assumed zero
    C:\Users\PC\Desktop\Server_Wichtig\DMD_Server\gamemodes\DMD.pwn(2031) : error 017: undefined symbol "vehicleid"
    C:\Users\PC\Desktop\Server_Wichtig\DMD_Server\gamemodes\DMD.pwn(2032) : error 029: invalid expression, assumed zero
    C:\Users\PC\Desktop\Server_Wichtig\DMD_Server\gamemodes\DMD.pwn(2048) : error 017: undefined symbol "vehicleid"
    C:\Users\PC\Desktop\Server_Wichtig\DMD_Server\gamemodes\DMD.pwn(2049) : error 029: invalid expression, assumed zero
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    6 Errors.



    Einmal editiert, zuletzt von [GTS]Yomo ()

  • else if(pickupid == lcngarage1)
    {
    if(IsPlayerInAnyVehicle(playerid))SetVehiclePos(GetPlayerVehicleID(playerid),1302.519897,-1.787510,1001.028259);
    LinkVehicleToInterior(vehicleid,18);
    else SetPlayerPos(playerid,1302.519897,-1.787510,1001.028259);
    SetPlayerInterior(playerid,18);
    }
    else if(pickupid == lcngarage2)
    {
    if(IsPlayerInAnyVehicle(playerid))SetVehiclePos(GetPlayerVehicleID(playerid),1302.519897,-1.787510,1001.028259);
    LinkVehicleToInterior(GetPlayerVehicleID(playerid),18);
    else SetPlayerPos(playerid,1302.519897,-1.787510,1001.028259);
    SetPlayerInterior(playerid,18);
    }
    else if(pickupid == lcngarage3)
    {
    SetPlayerPos(playerid,1304.1829,-56.1414,1002.5012);
    SetPlayerInterior(playerid,18);
    }
    else if(pickupid == lcngaragefausgang)
    {
    SetPlayerPos(playerid,738.6616,-1431.4574,13.5234);
    SetPlayerInterior(playerid,0);
    }
    else if(pickupid == lcngaragecausgang)
    {
    if(IsPlayerInAnyVehicle(playerid))SetVehiclePos(GetPlayerVehicleID(playerid),662.7847,-1417.7565,13.9638);
    LinkVehicleToInterior(GetPlayerVehicleID(playerid),0);
    else SetPlayerPos(playerid,662.7847,-1417.7565,13.9638);
    SetPlayerInterior(playerid,0);
    }

  • Wenn ich die so setze dann bekomm ich :



    C:\Users\PC\Desktop\Server_Wichtig\DMD_Server\gamemodes\DMD.pwn(2025) : error 029: invalid expression, assumed zero
    C:\Users\PC\Desktop\Server_Wichtig\DMD_Server\gamemodes\DMD.pwn(2032) : error 029: invalid expression, assumed zero
    C:\Users\PC\Desktop\Server_Wichtig\DMD_Server\gamemodes\DMD.pwn(2049) : error 029: invalid expression, assumed zero
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    3 Errors.

    else if(pickupid == lcngarage1)
    {
    if(IsPlayerInAnyVehicle(playerid))SetVehiclePos(GetPlayerVehicleID(playerid),1302.519897,-1.787510,1001.028259);
    LinkVehicleToInterior(GetPlayerVehicleID(playerid),18);
    else SetPlayerPos(playerid,1302.519897,-1.787510,1001.028259);
    SetPlayerInterior(playerid,18);
    }
    else if(pickupid == lcngarage2)
    {
    if(IsPlayerInAnyVehicle(playerid))SetVehiclePos(GetPlayerVehicleID(playerid),1302.519897,-1.787510,1001.028259);
    LinkVehicleToInterior(GetPlayerVehicleID(playerid),18);
    else SetPlayerPos(playerid,1302.519897,-1.787510,1001.028259);
    SetPlayerInterior(playerid,18);
    }
    else if(pickupid == lcngarage3)
    {
    SetPlayerPos(playerid,1304.1829,-56.1414,1002.5012);
    SetPlayerInterior(playerid,18);
    }
    else if(pickupid == lcngaragefausgang)
    {
    SetPlayerPos(playerid,738.6616,-1431.4574,13.5234);
    SetPlayerInterior(playerid,0);
    }
    else if(pickupid == lcngaragecausgang)
    {
    if(IsPlayerInAnyVehicle(playerid))SetVehiclePos(GetPlayerVehicleID(playerid),662.7847,-1417.7565,13.9638);
    LinkVehicleToInterior(GetPlayerVehicleID(playerid),0);
    else SetPlayerPos(playerid,662.7847,-1417.7565,13.9638);
    SetPlayerInterior(playerid,0);
    }