24.11.2017, 09:53
Is there any way to make this a loop instead of a repetition of the same function?
There's more of the TextDrawShowForPlayer, around 20. Could I use a for loop for this?
Код:
stock ShowActionTD(playerid)
{
TextDrawShowForPlayer(playerid, ActionChoice[0]);
TextDrawShowForPlayer(playerid, ActionChoice[1]);
TextDrawShowForPlayer(playerid, ActionChoice[2]);
TextDrawShowForPlayer(playerid, ActionChoice[3]);
TextDrawShowForPlayer(playerid, ActionChoice[4]);
TextDrawShowForPlayer(playerid, ActionChoice[5]);
TextDrawShowForPlayer(playerid, ActionChoice[6]);
TextDrawShowForPlayer(playerid, ActionChoice[7]);
TextDrawShowForPlayer(playerid, ActionChoice[8]);
TextDrawShowForPlayer(playerid, ActionChoice[9]);
TextDrawShowForPlayer(playerid, ActionChoice[10]);
return 1;
}

