[Ayuda] Como Hacer Esto?...
#2

Es posible mediante la funcion IsValidObject

Aca te dejo una funcion generica:
pawn Код:
ContarObjetos(array[], size)
{
    new count;
    for(new i; i<size; i++)
        if(IsValidObject(array[i]))
            count++;
    return count;
}

/*---------Modo de uso (utilizando tu array):---------

ContarObjetos(objeto, 10);

----------------------------------------------------*/
Reply


Messages In This Thread
[Ayuda] Como Hacer Esto?... - by OTACON - 07.01.2013, 08:13
Respuesta: [Ayuda] Como Hacer Esto?... - by TheChaoz - 07.01.2013, 14:27
Respuesta: [Ayuda] Como Hacer Esto?... - by OTACON - 07.01.2013, 14:31
Respuesta: [Ayuda] Como Hacer Esto?... - by adri1 - 07.01.2013, 18:32
Respuesta: [Ayuda] Como Hacer Esto?... - by OTACON - 07.01.2013, 18:46
Respuesta: [Ayuda] Como Hacer Esto?... - by PHudson - 07.01.2013, 19:07
Respuesta: [Ayuda] Como Hacer Esto?... - by OTACON - 07.01.2013, 19:13
Respuesta: [Ayuda] Como Hacer Esto?... - by TheChaoz - 08.01.2013, 02:04
Respuesta: [Ayuda] Como Hacer Esto?... - by OTACON - 08.01.2013, 02:28
Respuesta: [Ayuda] Como Hacer Esto?... - by TheChaoz - 08.01.2013, 02:39

Forum Jump:


Users browsing this thread: 1 Guest(s)