#1

how to loop through the objects which are already created and the one we make??
is it
pawn Код:
for(new i = 0; i < MAX_OBJECTS; i++ )
Reply
#2

pawn Код:
for (new iIndex = 0; iIndex != MAX_OBJECTS; ++ iIndex)
{
    if (IsValidObject(iIndex))
    {
        printf("Object ID %i is valid.", iIndex);
    }
}
Reply
#3

im making an fs of a drivable object so will it be this ??

pawn Код:
for (new iIndex = 0; iIndex != MAX_OBJECTS; ++ iIndex)
{
    if (IsValidObject(iIndex))
    {
        if (iIndex == objectid)
        {
            // blah?
        }
    }
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)