|
Author
|
Message
|
|
Veteran Member
|

07-16-2006
, 15:40
Re: Compile help
|
#1
|
register_concmd("amx_life", "cmd_life", "<target>")
Compiler thinks that the value <target> defines the needed access for the command,
not a description for amx_help. I did not find a way to make a command not need
any rights AND have a description in amx_help at the same time, yet, if it is possible at all.
Have a look: http://www.amxmodx.org/funcwiki.php?...ncmd&go=search
Replace the above with:
register_concmd("amx_life", "cmd_life")
EDIT: I found way to make it accessable to everyone AND have amx_help entry!
Use:
register_concmd("amx_life", "cmd_life", 0, "<target>")
"0" is the tricky number that allows everyone access
Second problem: As it stands there you read the first argument (arg1) two times.
Replace
read_argv(1, arg1, 23)
read_argv(2, arg1, 3)
with
read_argv(1, arg1, 23)
read_argv(2, arg2, 3)
Then you read wrong arguments again:
if (equali(arg[1], "T")) {
Team = 2
else if (equali(arg[2], "CT")) {
Team = 1
}
Replace it with:
if (equali(arg2[1], "T")) {
Team = 2
else if (equali(arg2[2], "CT")) {
Team = 1
}
I think that was it.
__________________
EAT YOUR VEGGIES
Last edited by Silencer123; 07-17-2006 at 07:45.
|
|
|
|