Bug with CancelSelectTextDraw
#1

When I use CancelSelectTextDraw, it call OnPlayerClickTextDraw again with the same clickedid.
Reply
#2

Ye, CancelSelectTextdraw calls OnPlayerClickTextDraw with texdrawid INVALID_TEXT_DRAW (65535).

Can be fixed like this:
pawn Код:
public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
    if(_:clickedid == INVALID_TEXT_DRAW) return;
    // your code
    CancelSelectTextDraw(playerid);
    return 1;
}
Made a thread about this earlier, but obviously the mods deleted it.
Reply
#3

It's still there but for some reason posts from this section don't show up in your profile: https://sampforum.blast.hk/showthread.php?tid=328257
Reply
#4

Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)