create/remove object bugs
#1

pawn Код:
stock NaikinamiObijektai(playerid)
    {
            //Laukas Nr. 1
            RemoveBuildingForPlayer(playerid, 13228, 351.9141, -268.3203, 10.2578, 0.0);
            RemoveBuildingForPlayer(playerid, 13208, 351.9141, -268.3203, 10.2578, 0.0);
            //Laukas Nr. 2
            RemoveBuildingForPlayer(playerid, 13414, 50.1797, -43.2813, 0.9844, 0.25);
            RemoveBuildingForPlayer(playerid, 13050, 50.1797, -43.2813, 0.9844, 0.25);
    }
    //Laukų material...
    stock Laukai()
    {
        new Laukas[2];
            //Laukas Nr. 1
            Laukas[0] = CreateObject(13208, 351.9141, -268.3203, 10.2578,0.00, 0.00, 0.00);
            /*
            //Pasodintas...
            SetObjectMaterial(Laukas[0],7,13050,"ce_ground11","sw_crops");
            SetObjectMaterial(Laukas[0],8,13050,"ce_ground11","sw_crops");
            SetObjectMaterial(Laukas[0],3,13050,"ce_ground11","sw_crops");*/

            /*
            //Uћauges...
            SetObjectMaterial(Laukas[0],7,17123,"cuntwlandse","newcrop3");
            SetObjectMaterial(Laukas[0],8,17123,"cuntwlandse","newcrop3");
            SetObjectMaterial(Laukas[0],3,17123,"cuntwlandse","newcrop3");*/

            //Nukulta...
            SetObjectMaterial(Laukas[0],7,13030,"ce_ground11","desertgryard256");
            SetObjectMaterial(Laukas[0],8,13030,"ce_ground11","desertgryard256");
            SetObjectMaterial(Laukas[0],3,13030,"ce_ground11","desertgryard256");
     
            //Laukas Nr. 2
            Laukas[1] = CreateObject(13050,  50.1797, -43.2813, 0.9844, 0.25, 0.25, 0.25);
            /*
            //Pasodintas...
            SetObjectMaterial(Laukas[1],0,13050,"ce_ground11","sw_crops");
            SetObjectMaterial(Laukas[1],0,13050,"ce_ground11","sw_crops");
            SetObjectMaterial(Laukas[1],0,13050,"ce_ground11","sw_crops");*/

     
            //Uћauges...
            SetObjectMaterial(Laukas[1],0,17123,"cuntwlandse","newcrop3");
            SetObjectMaterial(Laukas[1],0,17123,"cuntwlandse","newcrop3");
            SetObjectMaterial(Laukas[1],0,17123,"cuntwlandse","newcrop3");
            //Nukulta...
            /*SetObjectMaterial(Laukas[1],0,13030,"ce_ground11","desertgryard256");
            SetObjectMaterial(Laukas[1],0,13030,"ce_ground11","desertgryard256");
            SetObjectMaterial(Laukas[1],0,13030,"ce_ground11","desertgryard256");*/

     
    }

Reply
#2

I'm not sure what your issue is but to me it looks like you are wanting to remove the LOD object. If im not mistaken this tool https://sampforum.blast.hk/showthread.php?tid=282801 allows you to remove lod objects.
Reply
#3

i'm using it but i get this
Reply
#4

Please take your time and explain your problem in more detail.
Reply
#5

i whant to setobjectmaterial to original obiject, i delete it, create new one with verible and it's not creating in that place whear it was originaly
Reply
#6

Do you have added your stock Laukai() Under OnGamemodeInit?

And you have removed 4 objects but added only 2 so 2 more is missing!!
Reply
#7

yes i added Laukai( ) under OngamemodeIit
and about objects with Laukas[0] i had no problem even i delete 2 object's and added only one
in Laukas[1] object is creating but not in the rithgt place
Reply
#8

bump
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)