object is destroyed but still valid??
#4

change this
PHP код:
forward Destroy(playerid);
public 
Destroy(playerid)
{
DestroyObject(Object[playerid]);

to
PHP код:
forward Destroy(playerid);
public 
Destroy(playerid)
{
DestroyObject(Object[playerid]);
Object[playerid] = INVALID_OBJECT_ID;

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: 1 Guest(s)