[Help] DesDynamicObject -
PhamHoang - 31.07.2017
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);
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, 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
};
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]);