AclDestroyGroup: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
m (Doesn't take an acl group as argument, but a string)
Line 7: Line 7:
<!-- NOTE: don't use 'special' names for variable names, e.g. you shouldn't be writing things like 'player player, vehicle vehicle', instead write something like 'player thePlayer, vehicle vehicleToGetInto'. This is less confusing and prevents the syntax highlighting being odd -->
<!-- NOTE: don't use 'special' names for variable names, e.g. you shouldn't be writing things like 'player player, vehicle vehicle', instead write something like 'player thePlayer, vehicle vehicleToGetInto'. This is less confusing and prevents the syntax highlighting being odd -->
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
bool aclDestroyGroup ( aclgroup theGroup )
bool aclDestroyGroup ( string aclGroupName )
</syntaxhighlight>  
</syntaxhighlight>  


===Required Arguments===  
===Required Arguments===  
<!-- List each argument one per line. This should be the argument's name as in the argument list above, NOT the argument's data type -->
<!-- List each argument one per line. This should be the argument's name as in the argument list above, NOT the argument's data type -->
*'''theGroup:''' The ACL group to destroy
*'''aclGroupName:''' The name of ACL group to destroy


===Returns===
===Returns===
<!-- Make this descriptive. Explain what cases will return false. If you're unsure, add a tag to it so we can check -->
<!-- Make this descriptive. Explain what cases will return false. If you're unsure, add a tag to it so we can check -->
Returns ''true'' if the ACL group was successfully deleted, ''false'' if it could not be deleted for some reason (ie. not valid argument).
Returns ''true'' if the ACL group was successfully deleted, ''false'' if it could not be deleted for some reason (ie. invalid argument).


==Example==  
==Example==  

Revision as of 12:49, 5 December 2007

This function destroys the given ACL group. The destroyed ACL group will no longer be valid.

Syntax

bool aclDestroyGroup ( string aclGroupName )

Required Arguments

  • aclGroupName: The name of ACL group to destroy

Returns

Returns true if the ACL group was successfully deleted, false if it could not be deleted for some reason (ie. invalid argument).

Example

This example does...

--TODO

See Also