Clickable textdraw opens wrong textdraw
#4

Quote:
Originally Posted by Darkwood17
Посмотреть сообщение
Use PlayerTextDrawSetSelectable before you use SelectTextDraw.

Код:
PlayerTextDrawSetSelectable(playerid, PlayerText:register7[playerid], 1);
SelectTextDraw(playerid, COLOR_YELLOW);
Yeah thats already done

Quote:
Originally Posted by AliBro
Посмотреть сообщение
not confirmed but Try this;
Код:
if(playertextid == register7[playerid])
	{
	   	if(PlayerInfo[playerid][pSkin] > 0 && PlayerInfo[playerid][pSex] > 0 && PlayerInfo[playerid][pTalent] > 0)
	    {
			PlayerTextDrawHide(playerid, register0[playerid]);
	        PlayerTextDrawHide(playerid, register1[playerid]);
			PlayerTextDrawHide(playerid, register2[playerid]);
			PlayerTextDrawHide(playerid, register3[playerid]);
			PlayerTextDrawHide(playerid, register4[playerid]);
			PlayerTextDrawHide(playerid, register5[playerid]);
			PlayerTextDrawHide(playerid, register6[playerid]);
			PlayerTextDrawHide(playerid, register7[playerid]);
			PlayerTextDrawHide(playerid, register8[playerid]);
			PlayerTextDrawHide(playerid, register9[playerid]);
			PlayerTextDrawHide(playerid, register10[playerid]);
			PlayerTextDrawHide(playerid, register11[playerid]);
			PlayerTextDrawHide(playerid, register12[playerid]);
			PlayerTextDrawHide(playerid, register13[playerid]);
			PlayerTextDrawHide(playerid, register14[playerid]);
			CancelSelectTextDraw(playerid);
			TogglePlayerSpectating(playerid, false);
			SetCameraBehindPlayer(playerid);
			SpawnPlayer(playerid);
	  		gPlayerLogged[playerid] = 1;
		}
		else
		{
		    SendClientMessage(playerid, COLOR_WHITE, "ERROR: Finish all the needed steps to register your account!");
		    return 1;
		}
		return 1;
	}
	if(playertextid == register14[playerid])
	{
        PlayerTextDrawHide(playerid, register0[playerid]);
        PlayerTextDrawHide(playerid, register1[playerid]);
		PlayerTextDrawHide(playerid, register2[playerid]);
		PlayerTextDrawHide(playerid, register3[playerid]);
		PlayerTextDrawHide(playerid, register4[playerid]);
		PlayerTextDrawHide(playerid, register5[playerid]);
		PlayerTextDrawHide(playerid, register6[playerid]);
		PlayerTextDrawHide(playerid, register7[playerid]);
		PlayerTextDrawHide(playerid, register8[playerid]);
		PlayerTextDrawShow(playerid, register9[playerid]);
		PlayerTextDrawShow(playerid, register10[playerid]);
		PlayerTextDrawShow(playerid, register11[playerid]);
		PlayerTextDrawShow(playerid, register12[playerid]);
		PlayerTextDrawShow(playerid, register13[playerid]);
		PlayerTextDrawShow(playerid, register14[playerid]);
		PlayerTextDrawHide(playerid, talent0[playerid]);
		PlayerTextDrawHide(playerid, talent1[playerid]);
		PlayerTextDrawHide(playerid, talent2[playerid]);
		PlayerTextDrawHide(playerid, talent3[playerid]);
		PlayerTextDrawHide(playerid, talent4[playerid]);
		PlayerTextDrawHide(playerid, talent5[playerid]);
		PlayerTextDrawHide(playerid, talent6[playerid]);
		PlayerTextDrawHide(playerid, talent7[playerid]);
		PlayerTextDrawHide(playerid, talent8[playerid]);
		PlayerTextDrawHide(playerid, talent9[playerid]);
		PlayerTextDrawHide(playerid, talent10[playerid]);
		PlayerTextDrawHide(playerid, talent11[playerid]);
		PlayerTextDrawHide(playerid, talent12[playerid]);
		PlayerTextDrawHide(playerid, talent13[playerid]);
		PlayerTextDrawHide(playerid, talent14[playerid]);
		SelectTextDraw(playerid, COLOR_YELLOW);
		return 1;
	}
When I used this code, when I pressed the register7 it didnt give me the warning saying I need to finish all the steps and also half of the textdraws got destroyed
Reply


Messages In This Thread
Clickable textdraw opens wrong textdraw - by BizzyD - 26.05.2016, 19:08
Re: Clickable textdraw opens wrong textdraw - by Darkwood17 - 26.05.2016, 19:14
Re: Clickable textdraw opens wrong textdraw - by AliBro - 26.05.2016, 19:15
Re: Clickable textdraw opens wrong textdraw - by BizzyD - 26.05.2016, 19:19
Re: Clickable textdraw opens wrong textdraw - by BizzyD - 26.05.2016, 19:34

Forum Jump:


Users browsing this thread: 1 Guest(s)