CancelEdit

CancelEdit

Description:
Function CancelEdit cancel object edition mode for a player.
Function CancelEdit was added in 0.3e and will not work in earlier versions!


Parameters:
(playerid)
int playerid The ID of the player to cancel edition for.


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


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


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