ok I put the bank intrest snippet for swr into my swrfuss code, and i get the following errors.
update.c: In function `void bank_update()':
update.c:2814: warning: assignment to `int' from `double'
update.c:2814: warning: argument to `int' from `double'
I'm confused why this works with swr but not swrfuss
any help would be apprieciated.
update.c: In function `void bank_update()':
update.c:2814: warning: assignment to `int' from `double'
update.c:2814: warning: argument to `int' from `double'
void bank_update()
{
CHAR_DATA *ch;
int value1, value2;
char buf[MAX_INPUT_LENGTH];
/* day = time_info.day + 1;
if ( day % 7 != 6 ) */ /* Uncomment to have once a MUD week updates *//*
return;*/
for ( ch = last_char; ch; ch = gch_prev )
{
if ( ch == first_char && ch->prev )
{
bug( "char_update: first_char->prev != NULL... fixed", 0 );
ch->prev = NULL;
}
gch_prev = ch->prev;
set_cur_char( ch );
if ( gch_prev && gch_prev->next != ch )
{
bug( "char_update: ch->prev->next != ch", 0 );
return;
}
if ( !IS_NPC( ch ) )
{
value1 = ch->pcdata->bank;
value2 = (value1 * .001);<---- this is the error line
ch->pcdata->bank += value2;
sprintf(buf, "&C[Monthly Bank Update] %s, you made: %d credits this month.&W\n\r", ch->name, value2);
send_to_char(buf, ch);
}
}
}
I'm confused why this works with swr but not swrfuss
any help would be apprieciated.