Textdraw count
#1

Well I guess it isn't possible to count the textdraws created? It gives the no expression error + tag mismatch error.
PHP код:
stock TextDrawCreateEx(Float:xFloat:ytext[])
{
    
TextDrawCreate(Float:xFloat:ytext[]);
    
tdc++;
    
printf("[Current] Simple textdraw: %d",tdc);
    return 
1;
}
stock CreatePlayerTextDrawEx(playeridFloat:xFloat:ytext[])
{
    
CreatePlayerTextDraw(playeridFloat:xFloat:ytext[]);
    
ptd++;
    
printf("[Current] Player textdraw: %d",ptd);
    return 
1;

Reply
#2

Have you initialized the variables before the functions?
PHP код:
new tdcptd
If yes, Show the lines it shows the error and post the error too!
Reply
#3

The errors come like many, just where the textdrawcreate and createplayertextdraw is used there is the error on those lines
Reply
#4

U need to create the variables my friend...
Reply
#5

Quote:
Originally Posted by GangstaSunny.
Посмотреть сообщение
U need to create the variables my friend...
ptd, tdc are already defined my friend...
Reply
#6

Can you show me more of your code?

Are you using the function like this?
PHP код:
TextTD TextDrawCreateEx(Float:xFloat:ytext[]); 
Reply
#7

Quote:
Originally Posted by Logic_
Посмотреть сообщение
Can you show me more of your code?

Are you using the function like this?
PHP код:
TextTD TextDrawCreateEx(Float:xFloat:ytext[]); 
Yea, just like that for example
PHP код:
gServerTextdraws[0] = TextDrawCreate 
Reply
#8

Try this:

TextDrawCreateEx(gServerTextdraw[0], 1.000, 1.000, "Test");

PHP код:
TextDrawCreateEx(&var, Float:xFloat:ytext[])
{
    var = 
TextDrawCreate(xytext);
    
tdc ++;

Reply
#9

There are shit loads of textdraws, now for that I'll have to change each and every td.
Reply
#10

try doing this for some textdraw and see if they compile or not.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)