Igniz - Apr 21, 2013 5:27
From my compiler (debian)[code=auto:0]
pc.c:4624: warning: passing argument 1 of âclif->colormesâ makes integer from pointer without a cast
pc.c:4624: note: expected âintâ but argument is of type âstruct map_session_data *â
[/code]
Ind - Apr 21, 2013 5:30
hum can you please paste your pc.c line 4624?
Igniz - Apr 22, 2013 20:53
[code=:4610]
/**
* Only Rune Knights may use runes
**/
if( itemdb_is_rune(nameid) && (sd->class_&MAPID_THIRDMASK) != MAPID_RUNE_KNIGHT )
return 0;
/**
* Only GCross may use poisons
**/
else if( itemdb_is_poison(nameid) && (sd->class_&MAPID_THIRDMASK) != MAPID_GUILLOTINE_CROSS )
return 0;
if( item->mapdeny[sd->bl.m].deny_flag ){
char e_msg[100];
sprintf(e_msg,"Item Failed. [%s] is disabled on this map.",itemdb_jname(sd->status.inventory[n].nameid));
clif->colormes(sd,COLOR_RED,e_msg); <-- Here
return 0;
}
//Gender check
if(item->sex != 2 && sd->status.sex != item->sex)
return 0;
//Required level check
if(item->elv && sd->status.base_level < (unsigned int)item->elv)
return 0;
#ifdef RENEWAL
if(item->elvmax && sd->status.base_level > (unsigned int)item->elvmax)
return 0;
#endif
[/code]
Ind - Apr 22, 2013 21:39
you're out of date or out of sync (well both) i think oo in latest that clif_colormes thing is sd->fd not sd