Count Object???
#2

pawn Код:
// AT TOP
new objectcount;

// SOMEWHERE. NOT INSIDE A CALLBACK
CreateObjectEx(modelid,Float:X,Float:Y,Float:Z,Float:rX,Float:rY,Float:rZ,Float:DrawDistance = 0.0)
{
    objectcount++;
    CreateObject(modelid,X,Y,Z,rX,rY,rZ,DrawDistance);
}

// AFTER YOU HAVE CREATED ALL OBJECTS
printf("Number of objects created: %d",objectcount);
And change all CreateObject to CreateObjectEx
Reply


Messages In This Thread
Count Object??? - by Ronaldo_raul™ - 15.06.2011, 19:32
Re: Count Object??? - by Mike Garber - 15.06.2011, 19:40
Re: Count Object??? - by Ronaldo_raul™ - 15.06.2011, 19:43
Re: Count Object??? - by xRyder - 15.06.2011, 19:56
Re: Count Object??? - by Ronaldo_raul™ - 15.06.2011, 19:58
Re: Count Object??? - by xRyder - 15.06.2011, 19:59

Forum Jump:


Users browsing this thread: 1 Guest(s)