15.08.2013, 15:00
Hello, for some reason it is not called in my script, my textdraw creation code:
And the code to enable the mouse:
My callback looks like this:
The message doesn't get sent.
Any ideas? Any guesses? Anything? I want to hear it....I'm desperate...
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);
pawn Код:
SelectTextDraw(playerid,0xFF000077);
TextDrawShowForPlayer(playerid,VehArrows[0]);
TextDrawShowForPlayer(playerid,VehArrows[1]);
pawn Код:
public OnPlayerClickTextDraw(playerid,Text:clickedid)
{
SendClientMessage(playerid,-1,"VEIKIA. Callback iskviestas");
CancelSelectTextDraw(playerid);
return 1;
}
Any ideas? Any guesses? Anything? I want to hear it....I'm desperate...