object is destroyed but still valid??
#3

at top of the script add
new Object[MAX_PLAYERS] = {-1,...};

Then when you destroy an object, set object handle to -1 and dont use IsValid... object, but just check if Object[playerid] is -1, and if it is, object is destroyed. otherwise destroy and set it to -1, this is how you MUST do to keep it in order, cuz IsValidDynamicObject doesnt actually check if its right object, it just check if object with such a handle is created at all.
Reply


Messages In This Thread
object is destroyed but still valid?? - by ax1 - 08.05.2016, 15:37
Re: object is destroyed but still valid?? - by paul988 - 08.05.2016, 15:56
Re: object is destroyed but still valid?? - by ikey07 - 08.05.2016, 16:01
Re: object is destroyed but still valid?? - by jlalt - 08.05.2016, 16:04
Re: object is destroyed but still valid?? - by AbyssMorgan - 09.05.2016, 15:43

Forum Jump:


Users browsing this thread: 2 Guest(s)