[Help] DesDynamicObject
#1

PHP код:
CMD:destroyobject(playerid, params[])
{
 for(new 
i; i< MAX_PLAYERS; i++)
 }
                
DestroyDynamicObject(GunObjectIDs);
                new 
string3[128];
                   
format(string3, sizeof(string3), "* %s destroyobject.", GetPlayerNameEx(playerid));
                
ProxDetector(15.0, playerid, string3, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                
ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
                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,  331, 333, 334, 335, 336, 337, 338, 339, 341, 321, 322, 323, 324, 325, 326, 342, 343, 344, -1,  -1 , -1 ,
   
346, 347, 348, 349, 350, 351, 352, 353, 355, 356, 372, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367,
   
368, 369, 1575
}; 
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)