Is it possible to merge textdraws?
#1

So I have 10 TextDraw's I want to put them all in one and not make
new TextDraw1;
new TextDraw2;
...

I just want to make it all in one so I type
new TextDrawAll;
Reply
#2

pawn Код:
new Text: textdraw[11];

textdraw[0] = CreateTextDraw(..);
textdraw[1] = CreateTextDraw(..);
// and so on

for(new i = 0; i < sizeof(textdraw); i++)
{
    TextDrawShowForAll(textdraw[i]); // Shows all textdraws to everyone
}
Reply
#3

why
new Text: textdraw[11];
why 11 and not 10??
Reply
#4

Quote:
Originally Posted by RandomDude
Посмотреть сообщение
why
new Text: textdraw[11];
why 11 and not 10??
putting 11 means that you have 11 slots (from 0 to 10)

if you put 10 then you will have 10 slots (from 0 to 9)

and etc..
Reply
#5

Oh silly me.
Thank you very much. rep + each
Reply
#6

If you have 10 textdraws, you need 10 elements in your array, not 11..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)