Raised This Month: $ Target: $400
 0% 

Create Timers on events


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
MockingBird
Member
Join Date: Mar 2005
Old 10-24-2009 , 11:34   Re: Create Timers on events
Reply With Quote #3

I think its because your 'showHUD' function does not match the function type that should be passed into CreateTimer.

'showHUD' should look something like this:
PHP Code:
public Action:showHUD(Handle:timerany:client
edit: If you look at the funcwiki:
PHP Code:
Any of the following prototypes will work for a timed function.
funcenum Timer
{
    
/**
      * Called when the timer interval has elapsed.
      * 
      * @param timer            Handle to the timer object.
      * @param hndl            Handle passed to CreateTimer() when timer was created.
      * @return                Plugin_Stop to stop a repeating timer, any other value for
      *                        default behavior.
      */
    
Action:public(Handle:timerHandle:hndl),
    
/**
      * Called when the timer interval has elapsed.
      * 
      * @param timer            Handle to the timer object.
      * @param data            Data passed to CreateTimer() when timer was created.
      * @return                Plugin_Stop to stop a repeating timer, any other value for
      *                        default behavior.
      */
    
Action:public(Handle:timerany:data),
    
/**
      * Called when the timer interval has elapsed.
      * 
      * @param timer            Handle to the timer object.
      * @return                Plugin_Stop to stop a repeating timer, any other value for
      *                        default behavior.
      */
    
Action:public(Handle:timer),
}; 

Last edited by MockingBird; 10-24-2009 at 11:36.
MockingBird is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:20.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode