Terrorsoul Posted July 28, 2012 Group: Members Topic Count: 8 Topics Per Day: 0.00 Content Count: 32 Reputation: 2 Joined: 06/09/12 Last Seen: January 17, 2018 Share Posted July 28, 2012 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 Quote Link to comment Share on other sites More sharing options...
malufett Posted July 29, 2012 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 554 Reputation: 70 Joined: 04/04/12 Last Seen: November 8, 2013 Share Posted July 29, 2012 too many undeclared variable....(rate, item_temp & etc...) BTW how does that code work? Quote Link to comment Share on other sites More sharing options...
dexter Posted August 22, 2012 Group: Members Topic Count: 3 Topics Per Day: 0.00 Content Count: 19 Reputation: 1 Joined: 12/31/11 Last Seen: June 25, 2021 Share Posted August 22, 2012 Im trying to use that exact code, and im getting the same errors, any help on declaring those variables? Quote Link to comment Share on other sites More sharing options...
Question
Terrorsoul
Hello Fellow, as it says the title have an error when putting a modificacion in skill.c, goes out me this:
This error appears when putting:
Somebody could say me where this the error? A lot of graces
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.