Small problem
#1

I have this script

Код:
     if(dialogid == 16214)
        {
                if(response)
                {
                    if(listitem == 0)
                    {

                        new neon = CreateObject(18648,0,0,0,0,0,0,100.0);
                        new neon1 = CreateObject(18648,0,0,0,0,0,0,100.0);
                        new neon2 = CreateObject(18648,0,0,0,0,0,0,100.0);
                        AttachObjectToVehicle(neon2, GetPlayerVehicleID(playerid), -0.0, -1.5, -1, 2.0, 2.0, 3.0);
                        AttachObjectToVehicle(neon, GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
                        AttachObjectToVehicle(neon1, GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
                        SendClientMessage(playerid, COLOR_PURPLE, "You have took out the Neon Tube from the trunk and Installet it");

                        }
                        if(listitem == 1)
                        {
                        new neongreen = CreateObject(18649,0,0,0,0,0,0,100.0);
                        new neongreen1 = CreateObject(18649,0,0,0,0,0,0,100.0);
                        AttachObjectToVehicle(neongreen, GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
                        AttachObjectToVehicle(neongreen1, GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
                        SendClientMessage(playerid, COLOR_PURPLE, "You have took out the Neon Tube from the trunk and Installet it");
                        }
                        if(listitem == 2)
                        {
                        new neonyellow = CreateObject(18650,0,0,0,0,0,0,100.0);
                        new neonyellow1 = CreateObject(18650,0,0,0,0,0,0,100.0);
                        AttachObjectToVehicle(neonyellow, GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
                        AttachObjectToVehicle(neonyellow1, GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
                        SendClientMessage(playerid, COLOR_PURPLE, "You have took out the Neon Tube from the trunk and Installet it");
                        }
                        if(listitem == 3)
                        {
                        new neonwhite = CreateObject(18652,0,0,0,0,0,0,100.0);
                        new neonwhite1 = CreateObject(18652,0,0,0,0,0,0,100.0);
                        AttachObjectToVehicle(neonwhite, GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
                        AttachObjectToVehicle(neonwhite1, GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
                        SendClientMessage(playerid, COLOR_PURPLE, "You have took out the Neon Tube from the trunk and Installet it");
                        }
                        if(listitem == 4)
                        {
                        new neonpink = CreateObject(18651,0,0,0,0,0,0,100.0);
                        new neonpink1 = CreateObject(18651,0,0,0,0,0,0,100.0);
                        AttachObjectToVehicle(neonpink, GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
                        AttachObjectToVehicle(neonpink1, GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
                        SendClientMessage(playerid, COLOR_PURPLE, "You have took out the Neon Tube from the trunk and Installet it");
                        }
                        if(listitem == 5)
                        {
                        new neonred = CreateObject(18647,0,0,0,0,0,0,100.0);
                        new neonred1 = CreateObject(18647,0,0,0,0,0,0,100.0);
                        AttachObjectToVehicle(neonred, GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
                        AttachObjectToVehicle(neonred1, GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
                        SendClientMessage(playerid, COLOR_PURPLE, "You have took out the Neon Tube from the trunk and Installet it");
            }
                }
        }
But all works but neon doesnt show up why i dont know. It says neon was installed but it doesnt show up wahts wrong in this?
Reply
#2

Bump! please help
Reply
#3

Did you test it at night? Because the neons only glowing at night.
Reply
#4

Yeah i tested at night only
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)