CreateDynamicObject disappear
#1

This is my problem..

I use the latest version of streamer ... but the objects created by functions or commands ... that is ... those that are not loaded by OnGamemodeInit.

for example .. I have a command to create an object in a certain area with CreateDynamicObject .. it is created .. but after a few seconds it is deleted and can not be observed anymore. It only happens to me with DynamicObjects created by functions or cmds. I can't find more information about this issue out there

maybe someone here can help me about this..
Reply
#2

https://github.com/samp-incognito/sa...gin/issues/230

Try to go back to 2.8.2.
Reply
#3

Check for DestroyDynamicObject function (if you are trying to destroy any dynamic object, that isn't valid it maybe destroys all of your dynamic object)
Reply
#4

Quote:
Originally Posted by Kraeror
Посмотреть сообщение
Check for DestroyDynamicObject function (if you are trying to destroy any dynamic object, that isn't valid it maybe destroys all of your dynamic object)
Do you recommend that i can use IsValidDynamicObject(objectid) before Destroy any dynamic object in my script?

Like..

Код:
if(IsValidDynamicObject(Object[playerid]))    {    DestroyDynamicObject(Object[playerid]);    }
Reply
#5

Quote:
Originally Posted by DavidZvla
Посмотреть сообщение
Do you recommend that i can use IsValidDynamicObject(objectid) before Destroy any dynamic object in my script?

Like..

Код:
if(IsValidDynamicObject(Object[playerid]))    {    DestroyDynamicObject(Object[playerid]);    }
Just do as he told: "Check for DestroyDynamicObject function (if you are trying to destroy any dynamic object, that isn't valid it maybe destroys all of your dynamic object)"
Reply
#6

Solved
Reply
#7

atleast say how you solved it so other people can find the fix too
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)