SA-MP Forums Archive
when i click playertextdraw, nothing happen - help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: when i click playertextdraw, nothing happen - help (/showthread.php?tid=597957)



when i click playertextdraw, nothing happen - help - Saddin - 07.01.2016

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);
	    	        }
		}
}



Re: when i click playertextdraw, nothing happen - help - Saddin - 07.01.2016

Someone?