AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Invalid event - SpecHealth2 (https://forums.alliedmods.net/showthread.php?t=26308)

KoST 03-30-2006 16:43

Invalid event - SpecHealth2
 
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?

Brad 03-30-2006 19:19

Probably because he's not running CS. Different mods have different events.

KoST 03-31-2006 11:46

he is running CS :x

Brad 03-31-2006 12:22

Have him type meta game in his console to see if SpecHealth2 is listed in there.

Masakary 07-18-2006 15:01

Re: Invalid event - SpecHealth2
 
i have the same problem...i wrote the word and i didn't find the SpecHealth2, just SpecHealth.....should i change mp.dll ?:(


All times are GMT -4. The time now is 16:33.

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