Raised This Month: $ Target: $400
 0% 

Invalid event - SpecHealth2


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
KoST
Senior Member
Join Date: Jul 2005
Old 03-30-2006 , 16:43   Invalid event - SpecHealth2
Reply With Quote #1

i registered two events, both pointing to 'spec_target' function:
Code:
register_event("StatusValue","spec_target","bd","1=2")
register_event("SpecHealth2","spec_target","bd")
Code:
public spec_target(id){     if (id>0){         new target=read_data(2)         if (target!=0){             spec[id]=target         }     }     return PLUGIN_CONTINUE }

Lektor got the following error:
Code:
L 03/30/2006 - 21:53:49: [AMXX] Invalid event (name "SpecHealth2") (plugin "admin_spec_esp.amxx")
L 03/30/2006 - 21:53:49: [AMXX] Displaying debug trace (plugin "admin_spec_esp.amxx")
L 03/30/2006 - 21:53:49: [AMXX] Run time error 10: native error (native "register_event")
L 03/30/2006 - 21:53:49: [AMXX] [0] admin_spec_esp_809.sma::plugin_init (line 108)
why is 'SpecHealth2' unknown? i can't imagine?
__________________
KoST 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 16:33.


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