wizhelp code help needed.... This is what i have so far... Compiler errors state: expected init before bool & unqualified-id before {
this is the actual code:
void do_wizhelp( CHAR_DATA* ch, const char* argument)
bool found;
{
char arg[MAX_INPUT_LENGTH];
CMDTYPE * cmd;
int col, hash, level, low=LEVEL_AVATAR, high=get_trust(ch);
argument=one_argument(argument,arg);
if(!str_cmp(arg,"mortal"

){
low=0;
high=LEVEL_AVATAR;
}else if(!str_cmp(arg,"all"

)
low=0;
else if(is_number(arg)){
low=URANGE(0,atoi(arg),get_trust(ch));
one_argument(argument,arg);
if(is_number(arg))
high=URANGE(low,atoi(arg),get_trust(ch));
else
high=low;
}
for(level = low; level <= high; ++level){
col = 0;
found = FALSE;
sprintf(arg,"&P*** &WLevel %d &P***\r\n", level);
for(hash = 0; hash < 126; ++hash){
for(cmd = command_hash[hash]; cmd; cmd = cmd->next){
if(cmd->level == level){
if(cmd->code == skill_notfound) strcat(arg, "&z"

;
else if(cmd->log == LOG_ALWAYS) strcat(arg, "&p"

;
else if(cmd->log == LOG_BUILD) strcat(arg, "&B"

;
else if(cmd->log == LOG_HIGH) strcat(arg, "&R"

;
else if(cmd->log == LOG_COMM) strcat(arg, "&C"

;
else if(cmd->log == LOG_WARN) strcat(arg, "&r"

;
else if(cmd->log == LOG_NEVER) strcat(arg, "&O"

;
else if(cmd->log == LOG_ALL) strcat(arg, "&Y"

;
else strcat(arg, "&w"

;
sprintf(arg+strlen(arg), "%-12s", cmd->name);
found = TRUE;
if(++col % 6 == 0)
strcat(arg, "\r\n"

;
}
}
}
if(col % 6 != 0)
strcat(arg, "\r\n"

;
if(found)
send_to_pager_color(arg, ch);
}