30.07.2018, 12:01
at this you can use for(..
Quote:
else if(clickedid == GUI_HuongDan[playerid][13]) { PlayerTextDrawDestroy(playerid, GUI_HuongDan[playerid][0]); PlayerTextDrawDestroy(playerid, GUI_HuongDan[playerid][1]); PlayerTextDrawDestroy(playerid, GUI_HuongDan[playerid][2]); PlayerTextDrawDestroy(playerid, GUI_HuongDan[playerid][3]); PlayerTextDrawDestroy(playerid, GUI_HuongDan[playerid][4]); PlayerTextDrawDestroy(playerid, GUI_HuongDan[playerid][5]); PlayerTextDrawDestroy(playerid, GUI_HuongDan[playerid][6]); PlayerTextDrawDestroy(playerid, GUI_HuongDan[playerid][7]); PlayerTextDrawDestroy(playerid, GUI_HuongDan[playerid][8]); PlayerTextDrawDestroy(playerid, GUI_HuongDan[playerid][9]); PlayerTextDrawDestroy(playerid, GUI_HuongDan[playerid][10]); PlayerTextDrawDestroy(playerid, GUI_HuongDan[playerid][11]); PlayerTextDrawDestroy(playerid, GUI_HuongDan[playerid][12]); PlayerTextDrawDestroy(playerid, GUI_HuongDan[playerid][13]); PlayerTextDrawDestroy(playerid, GUI_HuongDan[playerid][14]); PlayerTextDrawDestroy(playerid, GUI_HuongDan[playerid][15]); PlayerTextDrawDestroy(playerid, GUI_HuongDan[playerid][16]); PlayerTextDrawDestroy(playerid, GUI_HuongDan[playerid][17]); PlayerTextDrawDestroy(playerid, GUI_HuongDan[playerid][18]); PlayerTextDrawDestroy(playerid, GUI_HuongDan[playerid][19]); PlayerTextDrawDestroy(playerid, GUI_HuongDan[playerid][20]); PlayerTextDrawDestroy(playerid, GUI_HuongDan[playerid][21]); PlayerTextDrawDestroy(playerid, GUI_HuongDan[playerid][22]); // line 1253 } |
Quote:
else if(clickedid == GUI_HuongDan[playerid][13]) { for(new i = 0; i < 23; i++) { PlayerTextDrawDestroy(playerid, GUI_HuongDan[playerid][i]); } } |