03 Jan, 2012, arholly wrote in the 1st comment:
Votes: 0
I'm getting this error message and not sure why.
act_info.c: In function 'do_updatetime':
act_info.c:5387: warning: passing argument 1 of 'send_to_char' makes pointer from integer without a cast

Here is the code and here is the include file as well…
void do_updatetime( CHAR_DATA *ch, char *argument)
bool found = FALSE;
time_t time;

send_to_char("\tW——————————————————————————\tn\n\r", ch );
sprintf(buf, "\tYLast code update:\tn ");

if( file_time( "../src/project", &time ) < 0 ) {
if( file_time( "../src/project.exe", &time ) < 0 )
found = FALSE;
found = TRUE;

strcat(buf, ctime(&time));
strcat(buf, "\tRWARNING:\tn Unable to determine update time.\n\r");

send_to_char(buf, ch);
send_to_char("\tGEngine: ", ch);
send_to_char(PT_ENGINE, ch);
send_to_char("\tn\n\r", ch);
send_to_char("\tYVersion: ", ch);
send_to_char(mudVersion, ch);
send_to_char("\tn\n\r", ch);
send_to_char("\tW——————————————————————————\tn\n\r", ch);

#ifndef __Version_H
#define __Version_h
#define mudVersion 11

What am I missing?
03 Jan, 2012, Tyche wrote in the 2nd comment:
Votes: 0
Ask yourself.
What type is mudVersion?
What type does send_to_char accept?
03 Jan, 2012, plamzi wrote in the 3rd comment:
Votes: 0
It's just like the warning says. send_to_char's first argument has to be a pointer to a 'string' whereas mudVersion is defined as an int. The easiest way to clean this up:

#define mudVersion "11"
03 Jan, 2012, arholly wrote in the 4th comment:
Votes: 0
Duh…Yes, you're right. Thank you.