Hello Fellow, as it says the title have an error when putting a modificacion in skill.c, goes out me this:
skill.c:4172:1: warning: null character(s) ignored
skill.c: In function 'skill_castend_nodamage_id':
skill.c:4302: error: too many arguments to function 'clif_skill_fail'
skill.c:4306: error: 'rate' undeclared (first use in this function)
skill.c:4306: error: (Each undeclared identifier is reported only once
skill.c:4306: error: for each function it appears in.)
skill.c:4311: error: 'tmp_item' undeclared (first use in this function)
skill.c:4771:35: warning: null character(s) ignored
skill.c:4922:47: warning: null character(s) ignored
skill.c:6051:11: warning: null character(s) ignored
skill.c:7062:4: warning: null character(s) ignored
skill.c:9453:3: warning: null character(s) ignored
skill.c:9605:58: warning: null character(s) ignored
skill.c:10982:1: warning: null character(s) ignored
make[1]: *** [obj_sql/skill.o] Error 1
make[1]: Leaving directory `/home/atreyu/ragnarok/src/map'
This error appears when putting:
case WZ_ESTIMATION:
if( sd == NULL )
break;
if( dstsd )
{ // Fail on Players
clif_skill_fail(sd,skillid,0,0,0);
break;
}
if( dstmd) {
rate = (dstmd->status.max_hp/dstmd->status.hp)*(100-dstmd->level)/30;
if (rand()%100 < rate){
clif_specialeffect(bl,112,AREA);
dstmd->sc.option |= OPTION_HIDE;
clif_changeoption(&dstmd->bl);
memset(&tmp_item,0,sizeof(tmp_item));
tmp_item.nameid = 9001;
tmp_item.identify = 1;
tmp_item.card[0] = CARD0_HUN;
tmp_item.card[3] = dstmd->class_;
if((flag = pc_additem(sd,&tmp_item,1))) {
clif_additem(sd,0,0,flag);
map_addflooritem(&tmp_item,1,sd->bl.m,sd->bl.x,sd->bl.y,0,0,0,0);
dstmd->deletetimer = add_timer(gettick()+4500, mob_timer_delete, dstmd->bl.id, 0);
}
} else {
clif_specialeffect(bl,67,AREA);
dstmd->sc.option |= OPTION_HIDE;
clif_changeoption(&dstmd->bl);
dstmd->unhide_timer = add_timer(gettick()+4500, mob_delayhide, dstmd->bl.id, 0);
}
}
Somebody could say me where this the error? A lot of graces