20.11.2013, 11:25
how to loop through the objects which are already created and the one we make??
is it
is it
pawn Код:
for(new i = 0; i < MAX_OBJECTS; i++ )
for(new i = 0; i < MAX_OBJECTS; i++ )
for (new iIndex = 0; iIndex != MAX_OBJECTS; ++ iIndex)
{
if (IsValidObject(iIndex))
{
printf("Object ID %i is valid.", iIndex);
}
}
for (new iIndex = 0; iIndex != MAX_OBJECTS; ++ iIndex)
{
if (IsValidObject(iIndex))
{
if (iIndex == objectid)
{
// blah?
}
}
}