OnPlayerClickTextDraw not called
#1

Hello, for some reason it is not called in my script, my textdraw creation code:
pawn Код:
VehArrows[0] = TextDrawCreate(298.000000, 240.000000, "LD_BEAT:left");
    TextDrawFont(VehArrows[0], 4);
    TextDrawTextSize(VehArrows[0], 10.0, 10.0);
    TextDrawSetSelectable(VehArrows[0],1);

    VehArrows[1] = TextDrawCreate(322.000000, 240.000000, "LD_BEAT:right");
    TextDrawFont(VehArrows[1], 4);
    TextDrawTextSize(VehArrows[1], 10.0, 10.0);
    TextDrawSetSelectable(VehArrows[1],1);
And the code to enable the mouse:
pawn Код:
SelectTextDraw(playerid,0xFF000077);
    TextDrawShowForPlayer(playerid,VehArrows[0]);
    TextDrawShowForPlayer(playerid,VehArrows[1]);
My callback looks like this:
pawn Код:
public OnPlayerClickTextDraw(playerid,Text:clickedid)
{
    SendClientMessage(playerid,-1,"VEIKIA. Callback iskviestas");
    CancelSelectTextDraw(playerid);
    return 1;
}
The message doesn't get sent.

Any ideas? Any guesses? Anything? I want to hear it....I'm desperate...
Reply


Messages In This Thread
OnPlayerClickTextDraw not called - by dusk - 15.08.2013, 15:00
Re: OnPlayerClickTextDraw not called - by gtakillerIV - 15.08.2013, 15:13
Re: OnPlayerClickTextDraw not called - by dusk - 15.08.2013, 15:38

Forum Jump:


Users browsing this thread: 2 Guest(s)