|
New Member
|
12-21-2007
, 13:03
Re: Spec Switch
|
#9
|
Start of error session.
L 12/21/2007 - 18:03:24: Info (map "aim_ak-colt2k3") (file "addons/amxmodx/logs/error_20071221.log")
L 12/21/2007 - 18:03:24: Function "unspec" was not found
L 12/21/2007 - 18:03:24: [AMXX] Displaying debug trace (plugin "Spec_Switch.amxx")
L 12/21/2007 - 18:03:24: [AMXX] Run time error 19: function not found
L 12/21/2007 - 18:03:24: [AMXX] [0] Spec_Switch.sma::plugin_init (line 19)
pls help!
AMXX v1.8.0.3660
sma:
#define PLUGIN "Spec Switch"
#define VERSION "0.0.5"
#define AUTHOR "many"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say spec", "spec")
register_clcmd("say_team spec", "spec")
register_clcmd("say unspec", "unspec")
register_clcmd("say_team unspec", "unspec")
}
and
public rule(id){
client_print(id,print_chat,"Type spec if you want to go Spectator")
client_print(id,print_chat,"Type unspec to return from Spectator")
}
EDIT: I found the error:
i changed
public back(id)
in
public unspec(id)
Last edited by Daniel1337; 12-21-2007 at 13:18.
|
|
|
|