• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] Object disappear problem
#5
(2020-04-07, 11:38 AM)ChampDotChamp Wrote:
(2020-04-04, 09:26 PM)Ezio_Auditore Wrote: Seems like you're messing up with some IDs. Maybe somewhere in your script you're using functions for deleting specific objects for any reason, isnt it? Do you currently check and reset the variables linked to those objects everytime you delete them?



I mean, do you do something like this?

Code:
if(object_id != -1) DestroyDynamicObject(object_id), object_id?= -1;





If not and if youre using functions such as?DestroyDynamicObject or DestroyObject, its most likely that?your problem is due to this bad handling. Everytime youre deleting something, you must first check the variable and then reset it after you have successfully deleted the item.



Thank you so much. Now everything works !!



:)
  Reply


Messages In This Thread
Object disappear problem - by ChampDotChamp - 2020-04-04, 08:17 PM
RE: Object disappear problem - by Ezio_Auditore - 2020-04-04, 09:26 PM
RE: Object disappear problem - by ChampDotChamp - 2020-04-04, 09:37 PM
RE: Object disappear problem - by ChampDotChamp - 2020-04-07, 11:38 AM
RE: Object disappear problem - by Ezio_Auditore - 2020-04-07, 02:33 PM
RE: Object disappear problem - by Markski - 2020-04-19, 04:06 AM

Forum Jump: