Skip to main content

CancelSelectTextDraw

คำอธิบาย

Cancel textdraw selection with the mouse

NameDescription
playeridThe ID of the player that should be the textdraw selection disabled

ส่งคืน

This function does not return any specific values.

ตัวอย่าง

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

บันทึก

warning

*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.

ฟังก์ชั่นที่เกี่ยวข้องกัน