Thanks for the help folks I really really appretiate it (insert brown
nose here) ; ). I love you guys remember that. *grin*
Here is the make errors again:
cmdedit.c: In function `do_cmdedit':
cmdedit.c:143: conflicting types for `command'
cmdedit.c:142: previous declaration of `command'
cmdedit.c:160: warning: passing arg 2 of `one_argument' makes pointer from
integer without a cast
cmdedit.c:163: warning: passing arg 1 of `str_cmp' makes pointer from
integer without a cast
cmdedit.c:170: warning: passing arg 1 of `str_cmp' makes pointer from
integer without a cast
cmdedit.c:178: warning: passing arg 1 of `cmd_lookup' makes pointer from
integer without a cast
Here is the code: (in order)
void do_cmdedit(CHAR_DATA *ch, char *argument)
{
struct cmd_type *pCmd;
char command[MSL];
int command;
/* these are 139-143 */
argument = one_argument( argument, command );
/* this is 160 */
argument = one_argument( argument, command );
#if !defined(FIRST_BOOT)
if ( !str_cmp( command, "new" ) )
/* this is lines 160-163 */
if ( !str_cmp( command, "delete" ) )
/* line 170 */
if ( (command = cmd_lookup(command)) == -1 )
/* line 178 */
Thanks again,
Dantin