SA-MP Forums Archive
[HELP]SelectTextDraw problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [HELP]SelectTextDraw problem (/showthread.php?tid=362387)



[HELP]SelectTextDraw problem - zQrba. - 24.07.2012

Hi all.

pawn Code:
#include "a_samp"
#include "zcmd"

new
    Text: Textdraw0;

main() {
}

public OnGameModeInit() {
    Textdraw0 = TextDrawCreate(50.000000, 310.000000, "Test");
    TextDrawBackgroundColor(Textdraw0, 255);
    TextDrawFont(Textdraw0, 1);
    TextDrawLetterSize(Textdraw0, 0.500000, 1.000000);
    TextDrawColor(Textdraw0, -1);
    TextDrawSetOutline(Textdraw0, 0);
    TextDrawSetProportional(Textdraw0, 1);
    TextDrawSetShadow(Textdraw0, 1);
    return 1;
}

public OnPlayerSpawn(playerid) {
    TextDrawShowForPlayer(playerid, Textdraw0);
    SetPlayerPos(playerid, 0, 0, 3);
    return 1;
}

public OnPlayerConnect(playerid) {
    return 1;
}

CMD:select(playerid, params[]) {
    SelectTextDraw(playerid, 0x00FF00FF); //green
    return 1;
}

public OnPlayerClickTextDraw(playerid, Text:clickedid) {
    if(clickedid == Textdraw0) {
        SendClientMessage(playerid, -1, "Test");
    }
    return 1;
}
What is the problem? Thanks.

Test


Re: [HELP]SelectTextDraw problem - Infinity90 - 24.07.2012

Well what is the error? What happens?


Re: [HELP]SelectTextDraw problem - zQrba. - 24.07.2012

As for the color does not change on mouse.


Re: [HELP]SelectTextDraw problem - zQrba. - 24.07.2012

Help please