09.09.2018, 04:13
(
Последний раз редактировалось Aerotactics; 09.09.2018 в 22:55.
)
Having an issue where clicking on a player textdraw does nothing.
Assume that all these items are in their proper place.
They spawn in the correct place.
They show the correct icon.
They are click-able.
Clicking on them does nothing.
RESOLUTION:
Assume that all these items are in their proper place.
They spawn in the correct place.
They show the correct icon.
They are click-able.
Clicking on them does nothing.
Код:
new PlayerText:TDArtifactIcon[MAX_PLAYERS][5]; TDArtifactIcon[playerid][i] = CreatePlayerTextDraw(playerid, 302.333312 + (SPACING*(i-2)), 181.274566, "LD_NONE:ship3"); PlayerTextDrawLetterSize(playerid, TDArtifactIcon[playerid][i], 0.000000, 0.000000); PlayerTextDrawTextSize(playerid, TDArtifactIcon[playerid][i], 32.000003, 31.940734); PlayerTextDrawAlignment(playerid, TDArtifactIcon[playerid][i], 1); PlayerTextDrawColor(playerid, TDArtifactIcon[playerid][i], -1); PlayerTextDrawSetShadow(playerid, TDArtifactIcon[playerid][i], 0); PlayerTextDrawSetOutline(playerid, TDArtifactIcon[playerid][i], 0); PlayerTextDrawFont(playerid, TDArtifactIcon[playerid][i], 4); PlayerTextDrawSetSelectable(playerid, TDArtifactIcon[playerid][i], true); public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid) { for(new i=0; i<5; i++) { if(playertextid == PlayerText:TDArtifactIcon[playerid][i]) { if(Artifact[playerid][i] == 0) return 1; ArtifactEnabled[playerid][i] ^= 1; HideArtifacts(playerid); ShowArtifacts(playerid); SelectTextDraw(playerid, COLOR_GREY); return 1; } } return 0; }