SA-MP Forums Archive
[Help] DesDynamicObject - 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: [Help] DesDynamicObject (/showthread.php?tid=638414)



[Help] DesDynamicObject - PhamHoang - 31.07.2017

PHP код:
CMD:destroyobject(playeridparams[])
{
 for(new 
iiMAX_PLAYERSi++)
 }
                
DestroyDynamicObject(GunObjectIDs);
                new 
string3[128];
                   
format(string3sizeof(string3), "* %s destroyobject."GetPlayerNameEx(playerid));
                
ProxDetector(15.0playeridstring3COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                
ApplyAnimation(playerid"BOMBER""BOM_Plant"4.000000);
                return 
1;

error
PHP код:
argument type mismatch (argument 1)
---------------------------
DestroyDynamicObject(GunObjectIDs); 



Re: [Help] DesDynamicObject - Shinja - 31.07.2017

How you are creating this object?


Re: [Help] DesDynamicObject - PhamHoang - 31.07.2017

PHP код:
new GunObjectIDs[200] ={

   
1575,  331333334335336337338339341321322323324325326342343344, -1,  -, -,
   
346347348349350351352353355356372357358359360361362363364365366367,
   
3683691575
}; 



Re: [Help] DesDynamicObject - Kane - 31.07.2017

Show your code for making and dropping the object. Not just the models to use.


Re: [Help] DesDynamicObject - PhamHoang - 01.08.2017

I have successfully modified, I want to fix pickupmodel


Re: [Help] DesDynamicObject - Shinja - 01.08.2017

Your variable is indexed, so you must destroy the object at a certain index aswell

DestroyDynamicObject(GunObjectIDs[index]);