when i click playertextdraw, nothing happen - help
#1

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)
Код:
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);
	    	        }
		}
}
Reply
#2

Someone?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)