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?
__________________