26.05.2016, 19:08
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:
Cant seem to find the issue here, any help would be appreciated.
Код:
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; }