14.09.2018, 05:06
So I have 50 textdraws which I plan to be shown to the player with one command. Thing is that
would be a tiring and long thing to do. i had this stupid idea where i
and i is a loop between 0 to 50. doesn't work (obv)
Is there a shorter way to show 50 textdraws instead of using 50 lines for PlayerTextDrawShow on each?
PHP код:
CMD:show(playerid, params[])
{
PlayerTextDrawShow(playerid, Textdraw0);
PlayerTextDrawShow(playerid, Textdraw1);
PlayerTextDrawShow(playerid, Textdraw2);
PlayerTextDrawShow(playerid, Textdraw3);
PlayerTextDrawShow(playerid, Textdraw4);
PlayerTextDrawShow(playerid, Textdraw5);
PlayerTextDrawShow(playerid, Textdraw6);
//and so on and so forth
return 1;
}
PHP код:
format(td,sizeof(td),"Textdraw%i",i);
Is there a shorter way to show 50 textdraws instead of using 50 lines for PlayerTextDrawShow on each?