Count TextDraws
#1

I want to count my created TextDraws, so i made this:


Код:
new  count_TextDraws;

#define 	TextDrawCreate     	TextDrawCreateEx
#define 	TextDrawDestroy   	TextDrawDestroyEx

stock TextDrawCreateEx(Float:tdX, Float:tdY, text[])
{
    count_TextDraws++;
    return TextDrawCreate(tdX, tdY, text);
}

stock TextDrawDestroyEx(tdid)
{
    count_TextDraws--;
    return TextDrawDestroy(tdid);
}
Код:
//...
printf(" TextDraws: %d / %d", count_TextDraws, MAX_TEXT_DRAWS);
But i have this warnings here:

Код:
(12911) : warning 213: tag mismatch
(12921) : warning 213: tag mismatch
(12931) : warning 213: tag mismatch
(12940) : warning 213: tag mismatch
(12950) : warning 213: tag mismatch
(12958) : warning 213: tag mismatch
(12966) : warning 213: tag mismatch
(12978) : warning 213: tag mismatch
(12991) : warning 213: tag mismatch
(13002) : warning 213: tag mismatch
(13013) : warning 213: tag mismatch
(13029) : warning 213: tag mismatch
(13030) : warning 213: tag mismatch
(13031) : warning 213: tag mismatch
(13032) : warning 213: tag mismatch
(13033) : warning 213: tag mismatch
(13034) : warning 213: tag mismatch
(13035) : warning 213: tag mismatch
(13036) : warning 213: tag mismatch
(13038) : warning 213: tag mismatch
(13039) : warning 213: tag mismatch
(13041) : warning 213: tag mismatch
(13042) : warning 213: tag mismatch
(13044) : warning 213: tag mismatch
(13045) : warning 213: tag mismatch
(18534) : warning 213: tag mismatch

26 Warnings.
All the lines have a TextDrawCreate, for example 12911:

Код:
Uhrzeit = TextDrawCreate(547.000000, 22.000000, " ");
Anyone an idea?

Thanks!
Reply


Messages In This Thread
Count TextDraws - by Nikolas-Mrak - 31.10.2011, 10:46
Re: Count TextDraws - by [L3th4l] - 31.10.2011, 10:51
Re: Count TextDraws - by Nikolas-Mrak - 31.10.2011, 10:59

Forum Jump:


Users browsing this thread: 1 Guest(s)