05.01.2013, 22:24
(
Последний раз редактировалось Mean; 12.01.2013 в 13:26.
)
I've made a script with clickable TDs, here's some code:
And then I want to show the textdraws and give the select cursor to the player:
When I select a textdraw, and then go to another textdraw, the one I selected before it stays selected.
Why?
FIXED thanks to iPLEOMAX
pawn Код:
new Text:teamTextdraw[11];
public OnGameModeInit() {
// 10 textdraws created here, didnt paste the code here, too much code
for(new i=0; i<sizeof(teamTextdraw); ++i) {
if(i == 2 || i == 3) TextDrawSetSelectable(teamTextdraw[i], false); // td2 and td3 must not be selectable
else TextDrawSetSelectable(teamTextdraw[i], true);
}
return 1;
}
pawn Код:
for(new i=0; i<sizeof(teamTextdraw); ++i) {
TextDrawShowForPlayer(playerid, teamTextdraw[i]);
}
SelectTextDraw(playerid, RED);
Why?
FIXED thanks to iPLEOMAX