Not working?
#1

I was working a CreateObject counting system,
suddenly it always shows the total of create object is 397
even i remove one or more than 2 createobject it still shows as 397.

code

pawn Код:
new objects = 0;

#if defined _CreateObject
    #undef CreateObject
#endif
#define CreateObject x_CreateObject

x_CreateObject(modelid, Float:X, Float:Y, Float:Z, Float:rX, Float:rY, Float:rZ, Float:DrawDistance = 0.0)
{
    objects++;
    CreateObject(modelid, X, Y, Z, rX, rY, rZ, DrawDistance);
}

main()
{
        printf("Total of Server Objects created: %d", objects);
}
Reply


Messages In This Thread
Not working? - by JaKe Elite - 28.07.2012, 04:30
Re: Not working? - by JaKe Elite - 03.08.2012, 09:18
Re: Not working? - by SEnergy - 03.08.2012, 09:54
Re: Not working? - by RelaxCafe - 03.08.2012, 10:14
Re: Not working? - by SEnergy - 03.08.2012, 10:17
Re: Not working? - by Misiur - 03.08.2012, 10:19
Re: Not working? - by leonardo1434 - 03.08.2012, 10:30
Re: Not working? - by JaKe Elite - 03.08.2012, 10:36

Forum Jump:


Users browsing this thread: 1 Guest(s)