clickable TDs
#1

I've made a script with clickable TDs, here's some code:

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;
}
And then I want to show the textdraws and give the select cursor to the player:
pawn Код:
for(new i=0; i<sizeof(teamTextdraw); ++i) {
    TextDrawShowForPlayer(playerid, teamTextdraw[i]);
}
SelectTextDraw(playerid, RED);
When I select a textdraw, and then go to another textdraw, the one I selected before it stays selected.
Why?





FIXED thanks to iPLEOMAX
Reply


Messages In This Thread
clickable TDs [FIXED] - by Mean - 05.01.2013, 22:24
Re: clickable TDs - by Mean - 06.01.2013, 18:02
Re: clickable TDs - by Universal - 06.01.2013, 18:07
Re: clickable TDs - by Mean - 06.01.2013, 18:11
Re: clickable TDs - by iPLEOMAX - 06.01.2013, 18:29

Forum Jump:


Users browsing this thread: 5 Guest(s)