Raised This Month: $ Target: $400
 0% 

Invalid event - SpecHealth2


Post New Thread Reply   
 
Thread Tools Display Modes
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
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 03-30-2006 , 19:19  
Reply With Quote #2

Probably because he's not running CS. Different mods have different events.
Brad is offline
KoST
Senior Member
Join Date: Jul 2005
Old 03-31-2006 , 11:46  
Reply With Quote #3

he is running CS
__________________
KoST is offline
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 03-31-2006 , 12:22  
Reply With Quote #4

Have him type meta game in his console to see if SpecHealth2 is listed in there.
Brad is offline
Masakary
New Member
Join Date: Jul 2006
Old 07-18-2006 , 15:01   Re: Invalid event - SpecHealth2
Reply With Quote #5

i have the same problem...i wrote the word and i didn't find the SpecHealth2, just SpecHealth.....should i change mp.dll ?
Masakary is offline
Reply


Thread Tools
Display Modes

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