textdraw clicking problem.. -
When the mouse is over TD1 it goes green (it's the color i chosen for SelectTextdraw)
When the mouse if over TD4 let's say, this happens and says TD1 is being chosen (Debug text)
pawn Код:
public OnPlayerRequestClass(playerid){
TogglePlayerSpectating(playerid, 1);
InterpolateCameraPos(playerid, -2675.578125, 2264.015380, 99.090797, 2922.019287, 1951.965087, 51.941925, 80000);
InterpolateCameraLookAt(playerid, -2670.686767, 2263.962646, 98.055381, 2925.892333, 1952.052124, 48.780982, 15000);
SelectTextDraw(playerid, GREEN);
TextDrawShowForPlayer(playerid, cTeam[0]);
TextDrawShowForPlayer(playerid, cTeam[1]);
TextDrawShowForPlayer(playerid, cTeam[2]);
TextDrawShowForPlayer(playerid, cTeam[3]);
TextDrawShowForPlayer(playerid, cTeam[4]);
TextDrawShowForPlayer(playerid, cTeam[5]);
TextDrawShowForPlayer(playerid, cTeam[6]);
TextDrawShowForPlayer(playerid, cTeam[7]);
TextDrawShowForPlayer(playerid, cTeam[8]);
TextDrawShowForPlayer(playerid, cTeam[9]);
TextDrawShowForPlayer(playerid, cTeam[10]);
return 1;
}
Respuesta: textdraw clicking problem.. -
Respuesta: textdraw clicking problem.. -
So here's the problem, I've stated above what happens when u go by those textdraws and that's normal, but when i try to click another textdraw it says i'm clicking the second textdraw, but why Y_Y, here the creation of the td's.
pawn Код:
cTeam[0] = TextDrawCreate(210.000000, 34.000000, "~>~ Choose your team ~<~");
TextDrawBackgroundColor(cTeam[0], 255);
TextDrawFont(cTeam[0], 1);
TextDrawLetterSize(cTeam[0], 0.500000, 2.599999);
TextDrawColor(cTeam[0], -1);
TextDrawSetOutline(cTeam[0], -1);
TextDrawSetProportional(cTeam[0], 1);
TextDrawSetShadow(cTeam[0], 1);
cTeam[1] = TextDrawCreate(280.000000, 279.000000, "China Army");
TextDrawBackgroundColor(cTeam[1], 255);
TextDrawFont(cTeam[1], 1);
TextDrawLetterSize(cTeam[1], 0.659999, 2.899999);
TextDrawColor(cTeam[1], -190813953);
TextDrawSetOutline(cTeam[1], -1);
TextDrawSetProportional(cTeam[1], 1);
TextDrawSetShadow(cTeam[1], 1);
TextDrawSetSelectable(cTeam[1], true);
cTeam[2] = TextDrawCreate(244.000000, 64.000000, "U.S.A Army");
TextDrawBackgroundColor(cTeam[2], 255);
TextDrawFont(cTeam[2], 1);
TextDrawLetterSize(cTeam[2], 0.659999, 2.899999);
TextDrawColor(cTeam[2], 680853503);
TextDrawSetOutline(cTeam[2], -1);
TextDrawSetProportional(cTeam[2], 1);
TextDrawSetShadow(cTeam[2], 1);
TextDrawSetSelectable(cTeam[2], true);
cTeam[3] = TextDrawCreate(260.000000, 141.000000, "Grove S.");
TextDrawBackgroundColor(cTeam[3], 255);
TextDrawFont(cTeam[3], 1);
TextDrawLetterSize(cTeam[3], 0.659999, 2.899999);
TextDrawColor(cTeam[3], -2147483393);
TextDrawSetOutline(cTeam[3], -1);
TextDrawSetProportional(cTeam[3], 1);
TextDrawSetShadow(cTeam[3], 1);
TextDrawSetSelectable(cTeam[3], true);
cTeam[4] = TextDrawCreate(251.000000, 116.000000, "Vagos");
TextDrawBackgroundColor(cTeam[4], 255);
TextDrawFont(cTeam[4], 1);
TextDrawLetterSize(cTeam[4], 0.659999, 2.899999);
TextDrawColor(cTeam[4], -1751711489);
TextDrawSetOutline(cTeam[4], -1);
TextDrawSetProportional(cTeam[4], 1);
TextDrawSetShadow(cTeam[4], 1);
TextDrawSetSelectable(cTeam[4], true);
cTeam[5] = TextDrawCreate(263.000000, 169.000000, "Vatos Locos");
TextDrawBackgroundColor(cTeam[5], 255);
TextDrawFont(cTeam[5], 1);
TextDrawLetterSize(cTeam[5], 0.659999, 2.899999);
TextDrawColor(cTeam[5], -38145);
TextDrawSetOutline(cTeam[5], -1);
TextDrawSetProportional(cTeam[5], 1);
TextDrawSetShadow(cTeam[5], 1);
TextDrawSetSelectable(cTeam[5], true);
cTeam[6] = TextDrawCreate(283.000000, 306.000000, "Cholos13");
TextDrawBackgroundColor(cTeam[6], 255);
TextDrawFont(cTeam[6], 1);
TextDrawLetterSize(cTeam[6], 0.659999, 2.899999);
TextDrawColor(cTeam[6], -1615087361);
TextDrawSetOutline(cTeam[6], -1);
TextDrawSetProportional(cTeam[6], 1);
TextDrawSetShadow(cTeam[6], 1);
TextDrawSetSelectable(cTeam[6], true);
cTeam[7] = TextDrawCreate(279.000000, 249.000000, "13th gang");
TextDrawBackgroundColor(cTeam[7], 255);
TextDrawFont(cTeam[7], 1);
TextDrawLetterSize(cTeam[7], 0.659999, 2.899999);
TextDrawColor(cTeam[7], -16776961);
TextDrawSetOutline(cTeam[7], -1);
TextDrawSetProportional(cTeam[7], 1);
TextDrawSetShadow(cTeam[7], 1);
TextDrawSetSelectable(cTeam[7], true);
cTeam[8] = TextDrawCreate(275.000000, 198.000000, "Aztecas");
TextDrawBackgroundColor(cTeam[8], 255);
TextDrawFont(cTeam[8], 1);
TextDrawLetterSize(cTeam[8], 0.659999, 2.899999);
TextDrawColor(cTeam[8], -2130771713);
TextDrawSetOutline(cTeam[8], -1);
TextDrawSetProportional(cTeam[8], 1);
TextDrawSetShadow(cTeam[8], 1);
TextDrawSetSelectable(cTeam[8], true);
cTeam[9] = TextDrawCreate(277.000000, 222.000000, "Swat");
TextDrawBackgroundColor(cTeam[9], 255);
TextDrawFont(cTeam[9], 1);
TextDrawLetterSize(cTeam[9], 0.659999, 2.899999);
TextDrawColor(cTeam[9], -2130706433);
TextDrawSetOutline(cTeam[9], -1);
TextDrawSetProportional(cTeam[9], 1);
TextDrawSetShadow(cTeam[9], 1);
TextDrawSetSelectable(cTeam[9], true);
cTeam[10] = TextDrawCreate(252.000000, 90.000000, "Cops");
TextDrawBackgroundColor(cTeam[10], 255);
TextDrawFont(cTeam[10], 1);
TextDrawLetterSize(cTeam[10], 0.659999, 2.899999);
TextDrawColor(cTeam[10], -8388353);
TextDrawSetOutline(cTeam[10], -1);
TextDrawSetProportional(cTeam[10], 1);
TextDrawSetShadow(cTeam[10], 1);
TextDrawSetSelectable(cTeam[10], true);