This wiki was in read-only mode for many years, but can now be edited again. A lot of information will need to be updated.
Register: Difference between revisions
		
		
		
		Jump to navigation
		Jump to search
		
m Removed () from function name.  | 
				No edit summary  | 
				||
| Line 1: | Line 1: | ||
{{apicall  | {{apicall  | ||
|   | | jawad       = Register  | ||
| returns     = Whether or not the register was successful.  | | returns     = Whether or not the register was successful.  | ||
| returntype  = bool  | | returntype  = bool  | ||
| Line 16: | Line 16: | ||
More information on this function can be found on the [[BZFS_API_2.4_Upgrade]] page.  | More information on this function can be found on the [[BZFS_API_2.4_Upgrade]] page.  | ||
''''Italic text''''  | |||
Revision as of 18:46, 12 February 2012
bool {{{name}}} (bz_eEventType eventType)
Registers a new event handler. This event handler will receive events of the event type specified.
Parameters: 
eventType  -  The type of event to listen for 
Returns: 
Whether or not the register was successful.
Example
void SAMPLE_PLUGIN::Init ( const char* /*commandLine*/ )
{
	Register(bz_ePlayerUpdateEvent);
}
More information on this function can be found on the BZFS_API_2.4_Upgrade page. 'Italic text'