Clickable textdraw opens wrong textdraw
#1

Hello, I am currently working with textdraws. And when I press the register7 textdraw, it opens textdraw14 for some reason. Which is part of the talent textdraws. Here is the code:

Код:
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]);
		PlayerTextDrawHide(playerid, register9[playerid]);
		PlayerTextDrawHide(playerid, register10[playerid]);
		PlayerTextDrawHide(playerid, register11[playerid]);
		PlayerTextDrawHide(playerid, register12[playerid]);
		PlayerTextDrawHide(playerid, register13[playerid]);
		PlayerTextDrawHide(playerid, register14[playerid]);
		PlayerTextDrawShow(playerid, talent0[playerid]);
		PlayerTextDrawShow(playerid, talent1[playerid]);
		PlayerTextDrawShow(playerid, talent2[playerid]);
		PlayerTextDrawShow(playerid, talent3[playerid]);
		PlayerTextDrawShow(playerid, talent4[playerid]);
		PlayerTextDrawShow(playerid, talent5[playerid]);
		PlayerTextDrawShow(playerid, talent6[playerid]);
		PlayerTextDrawShow(playerid, talent7[playerid]);
		PlayerTextDrawShow(playerid, talent8[playerid]);
		PlayerTextDrawShow(playerid, talent9[playerid]);
		PlayerTextDrawShow(playerid, talent10[playerid]);
		PlayerTextDrawShow(playerid, talent11[playerid]);
		PlayerTextDrawShow(playerid, talent12[playerid]);
		PlayerTextDrawShow(playerid, talent13[playerid]);
		PlayerTextDrawShow(playerid, talent14[playerid]);
		SelectTextDraw(playerid, COLOR_YELLOW);
		return 1;
	}
Cant seem to find the issue here, any help would be appreciated.
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: 2 Guest(s)