30.07.2018, 12:12
Quote:
Ok you have to use the OnPlayerClickPlayerTextDraw callback
|
Quote:
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]); } } } } |
When I /guihuongdan TextDraw will show, but my mouse not show to click TextDraw
How to show both, TextDraw + mouse to click
Sorry my English pretty weak