[BUG]SelectTextDraw
#1

pawn Код:
#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, 0x00E600AA); //green
    return 1;
}

public OnPlayerClickTextDraw(playerid, Text:clickedid) {
    if(clickedid == Textdraw0) {
        SendClientMessage(playerid, -1, "Test");
    }
    return 1;
}
SelectTextDraw and OnPlayerClickTextDraw broken. Mouse over TextDraw does not change color, Mouse click textdraw not message.
Reply


Messages In This Thread
[BUG]SelectTextDraw - by zQrba. - 24.07.2012, 11:55
Respuesta: [BUG]SelectTextDraw - by [DOG]irinel1996 - 24.07.2012, 13:53

Forum Jump:


Users browsing this thread: 1 Guest(s)