30.07.2018, 12:07
You don't use the good callback, look this code :
Code:
public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid) { if(_:playertextid != INVALID_TEXT_DRAW) { if(playertextid == GUI_HuongDan[playerid][1]) // line 1213 { PlayerTextDrawShow(playerid, GUI_HuongDan[playerid][10]); } else if(playertextid == GUI_HuongDan[playerid][2]) { PlayerTextDrawShow(playerid, GUI_HuongDan[playerid][6]); } else if(playertextid == GUI_HuongDan[playerid][3]) { PlayerTextDrawShow(playerid, GUI_HuongDan[playerid][9]); } else if(playertextid == GUI_HuongDan[playerid][5]) { PlayerTextDrawShow(playerid, GUI_HuongDan[playerid][11]); } else if(playertextid == GUI_HuongDan[playerid][13]) { for(new i = 0; i < 23; i++) { PlayerTextDrawDestroy(playerid, GUI_HuongDan[playerid][i]); } } } }