[Help] DesDynamicObject
#1

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); 
Reply
#2

How you are creating this object?
Reply
#3

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

   
1575,  331333334335336337338339341321322323324325326342343344, -1,  -, -,
   
346347348349350351352353355356372357358359360361362363364365366367,
   
3683691575
}; 
Reply
#4

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

I have successfully modified, I want to fix pickupmodel
Reply
#6

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

DestroyDynamicObject(GunObjectIDs[index]);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)