Сообщение от
vovandolg
Как текст вылезет через
%d?
Эм, что?
Вот, что предложил DC: (По аналогии, думаю сможете сделать по аналогии. Плюс ко всему надо где то хранить информацию о созданных ID'ax [Файл/База])
PHP код:
new id_create_global_textdraw = 0;
PHP код:
stock td_TextDrawCreate(Float:x, Float:y, text[])
{
id_create_global_textdraw ++;
return TextDrawCreate(Float:x, Float:y, text[]);
}
#if defined _ce_TextDrawCreate
#undef TextDrawCreate
#else
#define _ce_TextDrawCreate
#endif
#define TextDrawCreate td_TextDrawCreate
PHP код:
stock td_TextDrawDestroy(Text:text)
{
id_create_global_textdraw --;
return TextDrawDestroy(Text:text) ;
}
#if defined _ce_TextDrawDestroy
#undef TextDrawDestroy
#else
#define _ce_TextDrawDestroy
#endif
#define TextDrawCreate td_TextDrawDestroy