Bodenbeleuchtung Problem

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
  • Hallo ,


    Ich habe in mein Script ein Neonshop eingebaut..
    Am anfang hat das alles funktioniert doch nach dem ich vieles editiert habe und mal mein Neonshop testen wollte ,habe ich gemerkt
    dass die Objekte nicht angezeigt werden.
    Also normal sind ya 2Stangen da die dann es beleuchten aber diese Objekte erscheinen nicht

  • if(dialogid == Neon) //Neon Röhren
    {
    if(response)
    {
    if(listitem == 0) //Blau + bei Pawno fängt fast alles bei 0 an deswegen listitem == 0
    {
    new vehid,neon,neon1;
    vehid = GetPlayerVehicleID(playerid);
    neon = CreateStreamObject(18648,0,0,0,0,0,0,283);
    neon1 = CreateStreamObject(18648,0,0,0,0,0,0,283);
    AttachObjectToVehicle(neon, vehid, 0.8,0,-0.70,0,0,0);
    AttachObjectToVehicle(neon1, vehid, -0.8,0,-0.70,0,0,0);
    }
    if(listitem == 1) //Grün
    {
    new vehid,neon,neon1;
    vehid = GetPlayerVehicleID(playerid);
    neon = CreateStreamObject(18649,0,0,0,0,0,0,283);
    neon1 = CreateStreamObject(18649,0,0,0,0,0,0,283);
    AttachObjectToVehicle(neon, vehid, 0.8,0,-0.70,0,0,0);
    AttachObjectToVehicle(neon1, vehid, -0.8,0,-0.70,0,0,0);
    }
    if(listitem == 2) //Rot
    {
    new vehid,neon,neon1;
    vehid = GetPlayerVehicleID(playerid);
    neon = CreateStreamObject(18647,0,0,0,0,0,0,283);
    neon1 = CreateStreamObject(18647,0,0,0,0,0,0,283);
    AttachObjectToVehicle(neon, vehid, 0.8,0,-0.70,0,0,0);
    AttachObjectToVehicle(neon1, vehid, -0.8,0,-0.70,0,0,0);
    }
    if(listitem == 3) //Weiß
    {
    new vehid,neon,neon1;
    vehid = GetPlayerVehicleID(playerid);
    neon = CreateStreamObject(18652,0,0,0,0,0,0,283);
    neon1 = CreateStreamObject(18652,0,0,0,0,0,0,283);
    AttachObjectToVehicle(neon, vehid, 0.8,0,-0.70,0,0,0);
    AttachObjectToVehicle(neon1, vehid, -0.8,0,-0.70,0,0,0);
    }
    if(listitem == 4) //Gelb
    {
    new vehid,neon,neon1;
    vehid = GetPlayerVehicleID(playerid);
    neon = CreateStreamObject(18650,0,0,0,0,0,0,283);
    neon1 = CreateStreamObject(18650,0,0,0,0,0,0,283);
    AttachObjectToVehicle(neon, vehid, 0.8,0,-0.70,0,0,0);
    AttachObjectToVehicle(neon1, vehid, -0.8,0,-0.70,0,0,0);
    }
    if(listitem == 5) //Pink
    {
    new vehid,neon,neon1;
    vehid = GetPlayerVehicleID(playerid);
    neon = CreateStreamObject(18651,0,0,0,0,0,0,283);
    neon1 = CreateStreamObject(18651,0,0,0,0,0,0,283);
    AttachObjectToVehicle(neon, vehid, 0.8,0,-0.70,0,0,0);
    AttachObjectToVehicle(neon1, vehid, -0.8,0,-0.70,0,0,0);
    }
    }
    }

  • Anscheinend nicht also
    AttachStreamObjectToPlayer <-- geht aber AttachstreamObjectToVehicle nicht
    dann kommt ein fehler undefined AttachStreamObjectToVehicle

  • also ich habs so gemacht^^
    SetPVarInt(playerid, "neonröhre1", CreateObject(18648,0,0,0,0,0,0));
    AttachObjectToVehicle(GetPVarInt(playerid, "neonröhre1"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);


    //edit
    muss noch dazu sagen dass ichs noch nicht getestet hab^^

    Einmal editiert, zuletzt von hacken ()

  • Kannste mir das ma Vormachen
    also es hir dem anpassen :


    if(dialogid == Neon) //Neon Röhren
    {
    if(response)
    {
    if(listitem == 0) //Blau + bei Pawno fängt fast alles bei 0 an deswegen listitem == 0
    {
    new vehid,neon,neon1;
    vehid = GetPlayerVehicleID(playerid);
    neon = CreateStreamObject(18648,0,0,0,0,0,0,283);
    neon1 = CreateStreamObject(18648,0,0,0,0,0,0,283);
    AttachObjectToVehicle(neon, vehid, 0.8,0,-0.70,0,0,0);
    AttachObjectToVehicle(neon1, vehid, -0.8,0,-0.70,0,0,0);
    }

  • if(dialogid == Neon) //Neon Röhren
    {
    if(response)
    {
    if(listitem == 0) //Blau + bei Pawno fängt fast alles bei 0 an deswegen listitem == 0
    {
    new vehid;
    vehid = GetPlayerVehicleID(playerid);
    SetPVarInt(playerid, "Status", 1);
    SetPVarInt(playerid, "neon", CreateObject(18648,0,0,0,0,0,0));
    SetPVarInt(playerid, "neon1", CreateObject(18648,0,0,0,0,0,0));
    AttachObjectToVehicle(GetPVarInt(playerid, "neon"), vehid, -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(GetPVarInt(playerid, "neon1"), vehid, 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    }
    nehme ich an^^


    //edit komisch iwie verschoben

  • do.de - Domain-Offensive - Domains für alle und zu super Preisen
  • hacken
    so funktioniert es nicht


    Master_FM
    CreateObject war es ya am anfang..


    Trooper
    1.ich hab es nicht selber geschreiben hab ich auch nie gesagt..
    2.Weiss ich das problem ist das die röhren nicht erstellt werden.

  • Ich habe leider ein Problem das bei mir Objekte wie Leuchten (z.B. Blaulichtleuchte) manchmal nicht funktionieren... Im ganzen Script verwende ich nen Streamer (Plugin Streamer), und wenn ich dann nen CreateObject erstelle kommt er damit nicht klar.. Manchmal zeigt ers an, manchmal nicht.. Richtig gescriptet ist es. Gibt es da eine Lösung?

  • geht es dan so?

  • also
    ich habs jez ma getestet und es funzzt un bei mir siehts so aus:


    cmd:
    if (strcmp(cmdtext, "/neon", true)==0){
    if (IsPlayerInAnyVehicle(playerid)){
    ShowPlayerDialog(playerid, neondialog, DIALOG_STYLE_LIST, "Wähle eine Farbe", "Blau\nRot\nGruen\nWeis\nPink\nGelb\nNeon ausbauen", "Select", "Cancel");
    }else{SendClientMessage(playerid, rot, "Du bist in keinem Auto");}
    return 1;}


    if(dialogid == neondialog)
    {
    if(response)
    {
    if(listitem == 0)
    {
    //Blau
    SetPVarInt(playerid, "Status", 1);
    SetPVarInt(playerid, "neon", CreateObject(18648,0,0,0,0,0,0));
    SetPVarInt(playerid, "neon1", CreateObject(18648,0,0,0,0,0,0));
    AttachObjectToVehicle(GetPVarInt(playerid, "neon"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(GetPVarInt(playerid, "neon1"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    SendClientMessage(playerid, 0xFFFFFFAA, "Neon eingebaut");
    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
    if(!IsPlayerAdmin(playerid)){GivePlayerMoney(playerid, -200);}
    }
    if(listitem == 1)
    {
    //Rot
    SetPVarInt(playerid, "Status", 1);
    SetPVarInt(playerid, "neon2", CreateObject(18647,0,0,0,0,0,0));
    SetPVarInt(playerid, "neon3", CreateObject(18647,0,0,0,0,0,0));
    AttachObjectToVehicle(GetPVarInt(playerid, "neon2"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(GetPVarInt(playerid, "neon3"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    SendClientMessage(playerid, 0xFFFFFFAA, "Neon eingebaut");
    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
    if(!IsPlayerAdmin(playerid)){GivePlayerMoney(playerid, -200);}


    }
    if(listitem == 2)
    {
    //Gruen
    SetPVarInt(playerid, "Status", 1);
    SetPVarInt(playerid, "neon4", CreateObject(18649,0,0,0,0,0,0));
    SetPVarInt(playerid, "neon5", CreateObject(18649,0,0,0,0,0,0));
    AttachObjectToVehicle(GetPVarInt(playerid, "neon4"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(GetPVarInt(playerid, "neon5"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    SendClientMessage(playerid, 0xFFFFFFAA, "Neon eingebaut");
    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
    if(!IsPlayerAdmin(playerid)){GivePlayerMoney(playerid, -200);}


    }
    if(listitem == 3)
    {
    //Weis
    SetPVarInt(playerid, "Status", 1);
    SetPVarInt(playerid, "neon6", CreateObject(18652,0,0,0,0,0,0));
    SetPVarInt(playerid, "neon7", CreateObject(18652,0,0,0,0,0,0));
    AttachObjectToVehicle(GetPVarInt(playerid, "neon6"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(GetPVarInt(playerid, "neon7"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    SendClientMessage(playerid, 0xFFFFFFAA, "Neon eingebaut");
    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
    if(!IsPlayerAdmin(playerid)){GivePlayerMoney(playerid, -200);}
    }
    if(listitem == 4)
    {
    //pink
    SetPVarInt(playerid, "Status", 1);
    SetPVarInt(playerid, "neon8", CreateObject(18651,0,0,0,0,0,0));
    SetPVarInt(playerid, "neon9", CreateObject(18651,0,0,0,0,0,0));
    AttachObjectToVehicle(GetPVarInt(playerid, "neon8"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(GetPVarInt(playerid, "neon9"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    SendClientMessage(playerid, 0xFFFFFFAA, "Neon eingebaut");
    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
    if(!IsPlayerAdmin(playerid)){GivePlayerMoney(playerid, -200);}
    }
    if(listitem == 5)
    {
    //Gelb
    SetPVarInt(playerid, "Status", 1);
    SetPVarInt(playerid, "neon10", CreateObject(18650,0,0,0,0,0,0));
    SetPVarInt(playerid, "neon11", CreateObject(18650,0,0,0,0,0,0));
    AttachObjectToVehicle(GetPVarInt(playerid, "neon10"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    AttachObjectToVehicle(GetPVarInt(playerid, "neon11"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    SendClientMessage(playerid, 0xFFFFFFAA, "Neon eingebaut");
    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 10.0);
    if(!IsPlayerAdmin(playerid)){GivePlayerMoney(playerid, -200);}
    }
    if(listitem == 6)
    {
    //remove neon
    DestroyObject(GetPVarInt(playerid, "neon"));
    DeletePVar(playerid, "Status");
    DestroyObject(GetPVarInt(playerid, "neon1"));
    DeletePVar(playerid, "Status");
    DestroyObject(GetPVarInt(playerid, "neon2"));
    DeletePVar(playerid, "Status");
    DestroyObject(GetPVarInt(playerid, "neon3"));
    DeletePVar(playerid, "Status");
    DestroyObject(GetPVarInt(playerid, "neon4"));
    DeletePVar(playerid, "Status");
    DestroyObject(GetPVarInt(playerid, "neon5"));
    DeletePVar(playerid, "Status");
    DestroyObject(GetPVarInt(playerid, "neon6"));
    DeletePVar(playerid, "Status");
    DestroyObject(GetPVarInt(playerid, "neon7"));
    DeletePVar(playerid, "Status");
    DestroyObject(GetPVarInt(playerid, "neon8"));
    DeletePVar(playerid, "Status");
    DestroyObject(GetPVarInt(playerid, "neon9"));
    DeletePVar(playerid, "Status");
    DestroyObject(GetPVarInt(playerid, "neon10"));
    DeletePVar(playerid, "Status");
    DestroyObject(GetPVarInt(playerid, "neon11"));
    DeletePVar(playerid, "Status");
    SendClientMessage(playerid, 0xFFFFFFAA, "Alle Neons ausgebaut");
    if(!IsPlayerAdmin(playerid)){GivePlayerMoney(playerid, -300);}
    }
    }
    }

  • danke geht bei mir auch ^^

    KLICK HIER DRAUF>>>>>><<<<<<<KLICK HIER DRAUF

  • Braucht man nicht dafür eine Include das es funktioniert ?