help object ig
#2

Can you try this:
pawn Код:
for(new i = 0; i < MAX_OBJECTS_PP; i++)
{
    if(oObjectID[playerid][i] != 0)
    {
        oObjectID[playerid][i] = CreateObject(objectid, pos[0], pos[1], pos[2], 0.0, 0.0, pos[3]);
        break;
    }
}
It should loop through all the player's object slots and the first slot that is empty gets to be the slot for the object. Haven't tried the code yet though.
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: 1 Guest(s)