Showing textdraws
#1

Hey guys, so i am kinda new to scripting stuff, and i wanted to ask;

Is there a possible way of showing like 15 textdraws in 2-3 lines?

Like, if i have:

Код:
TextDrawShowForPlayer(playerid, Textdraw0);
TextDrawShowForPlayer(playerid, Textdraw1);
TextDrawShowForPlayer(playerid, Textdraw2);
.......
.
Is there a way to show these in 1-2 lines?

Thanks in advance!
Reply
#2

You mean
pawn Код:
TextDrawShowForPlayer(playerid, Textdraw0);  TextDrawShowForPlayer(playerid, Textdraw1); TextDrawShowForPlayer(playerid, Textdraw2); TextDrawShowForPlayer(playerid, Textdraw3);
TextDrawShowForPlayer(playerid, Textdraw4); TextDrawShowForPlayer(playerid, Textdraw5); TextDrawShowForPlayer(playerid, Textdraw6); TextDrawShowForPlayer(playerid, Textdraw7);
//etc...
?
Reply
#3

An array and a loop. But unless you have like 50 or so I don't really see the need to do that. Less code does not always equal better code.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)