help object ig
#8

You're welcome, but
Quote:
Originally Posted by [uL]Pottus
Посмотреть сообщение
After you delete the object of course you will want to reset that object reference to -1 to be reused.
you should consider this. It should look like
pawn Код:
DestroyObject(oObjectID[playerid][slot]);
oObjectID[playerid][slot] = -1;
then adjust the loop too
pawn Код:
for(new i = 0; i < MAX_OBJECTS_PP; i++)
{
    if(oObjectID[playerid][i] != -1)
    {
        oObjectID[playerid][i] = CreateObject(objectid, pos[0], pos[1], pos[2], 0.0, 0.0, pos[3]);
        break;
    }
}
Reply


Messages In This Thread
help object ig - by BecksLennon - 11.09.2013, 07:26
Re: help object ig - by Eyce - 11.09.2013, 07:54
Re: help object ig - by Pottus - 11.09.2013, 08:04
Respuesta: help object ig - by BecksLennon - 11.09.2013, 08:37
Re: help object ig - by Eyce - 11.09.2013, 08:40
Respuesta: Re: help object ig - by BecksLennon - 11.09.2013, 08:46
Re: help object ig - by Pottus - 11.09.2013, 08:49
Re: help object ig - by Eyce - 11.09.2013, 08:53

Forum Jump:


Users browsing this thread: 2 Guest(s)