Skip to main content

CancelEdit

คำอธิบาย

Cancel object edition mode for a player

NameDescription
playeridThe ID of the player to cancel edition for

ส่งคืน

This function does not return any specific values.

ตัวอย่าง

public OnPlayerCommandText(playerid, cmdtext[])
{
if (!strcmp(cmdtext, "/stopedit", true))
{
CancelEdit(playerid);
SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: You stopped editing the object!");
return 1;
}
return 0;
}

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