SA-MP Forums Archive
create/remove object bugs - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: create/remove object bugs (/showthread.php?tid=469717)



create/remove object bugs - ancezas - 14.10.2013

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");*/

     
    }




Re: create/remove object bugs - [LCK]Chris - 14.10.2013

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.


Re: create/remove object bugs - ancezas - 14.10.2013

i'm using it but i get this


Re: create/remove object bugs - [LCK]Chris - 14.10.2013

Please take your time and explain your problem in more detail.


Re: create/remove object bugs - ancezas - 14.10.2013

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


Re: create/remove object bugs - edzis84 - 14.10.2013

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

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


Re: create/remove object bugs - ancezas - 14.10.2013

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


Re: create/remove object bugs - ancezas - 15.10.2013

bump