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
#2

Got any FS that uses the same callback and is returning 1? Returning 1 means that it won't get called on any other FS/GM.
Reply
#3

I love you. I had some FS that i didn't even know i had and i don't even know what it does :/
Anyway, thankyou!

I welcome you to look at my other problem: http://forum.sa-mp.com/showthread.ph...51#post2659651
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)