CancelSelectTextDraw

CancelSelectTextDraw

Description:
Function CancelSelectTextDraw cancel textdraw selection with the mouse.
Function CancelSelectTextDraw was added in 0.3e and will not work in earlier versions!
*This function calls OnPlayerClickTextDraw with INVALID_TEXT_DRAW (65535). Using this function inside OnPlayerClickTextDraw without catching this case will cause clients to go into an infinite loop.


Parameters:
(playerid)
int playerid The ID of the player that should be the textdraw selection disabled.


Return Values:
This function does not return any specific values.


Examples:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp(cmdtext, "/cancelselect", true))
    {
        CancelSelectTextDraw(playerid);
        SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: TextDraw selection disabled!");
        return 1;
    }
    return 0;
}


Related Functions
The following functions may be useful, as they are related to this function in one way or another.


Related Callbacks
The following callbacks might be useful as well, as they are related to this callback in one way or another.