12.10.2015, 10:27
you don't need else
PHP код:
public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
if(clickedid == Darbo_TD[playerid][6])
{
CancelSelectTextDraw(playerid);
for(new s = 0; s < 15; s++) TextDrawHideForPlayer(playerid, Darbo_TD[playerid][s]);
SendClientMessage(playerid, -1, "Press button");
return 1;
}
if(clickedid == Text:INVALID_TEXT_DRAW)
{
CancelSelectTextDraw(playerid);
for(new s = 0; s < 15; s++) TextDrawHideForPlayer(playerid, Darbo_TD[playerid][s]);
SendClientMessage(playerid, -1, "Press Esc");
return 1;
}
return 1;
}