07.01.2016, 01:44
I made two player textdraw like two buttons, in this case when i click either one of them, it should hide all of textdraws. But nothing happen. When i hover them, colors change, that works. But when i click them. Nothing happen.
under OnPlayerClickPlayerTextDraw(playerid, PlayerTextlayertextid)
under OnPlayerClickPlayerTextDraw(playerid, PlayerTextlayertextid)
Код:
if(_:playertextid != INVALID_TEXT_DRAW) { if(playertextid == MissionOdgovor1[playerid]) { if(PlayerInfo[playerid][pTutorial]==7) { VarijablaOdgovorMission1[playerid]=1; PlayerTextDrawHide(playerid, MissionStoryText[playerid]); PlayerTextDrawHide(playerid, MissionOdgovor1[playerid]); PlayerTextDrawHide(playerid, MissionOdgovor2[playerid]); CancelSelectTextDraw(playerid); } } else if(playertextid == MissionOdgovor2[playerid]) { if(PlayerInfo[playerid][pTutorial]==7) { VarijablaOdgovorMission1[playerid]=2; PlayerTextDrawHide(playerid, MissionStoryText[playerid]); PlayerTextDrawHide(playerid, MissionOdgovor1[playerid]); PlayerTextDrawHide(playerid, MissionOdgovor2[playerid]); CancelSelectTextDraw(playerid); } } }