Jump to content
  • 0

Need some help..


Craves

Question


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  19
  • Reputation:   0
  • Joined:  02/27/12
  • Last Seen:  

Basically I've been having this error when I recompile my src after trying to do this http://www.eathena.w...howtopic=279381. Can anyone tell me what's the problem? This is the screenshot of the error.

first.png

Here are some location of the error stated.

static int pc_daynight_timer_sub(struct map_session_data *sd,va_list ap)
{				   << Line 8709
if (sd->state.night != night_flag && map[sd->bl.m].flag.nightenabled)
{
clif_status_load(&sd->bl, SI_NIGHT, night_flag);
sd->state.night = night_flag;
return 1;
}
return 0;
}

static int duel_showinfo_sub(struct map_session_data* sd, va_list va)
{				 <<< Line 8799
struct map_session_data *ssd = va_arg(va, struct map_session_data*);
int *p = va_arg(va, int*);
char output[256];

if (sd->duel_group != ssd->duel_group) return 0;

sprintf(output, "	  %d. %s", ++(*p), sd->status.name);
clif_disp_onlyself(ssd, output, strlen(output));
return 1;
}

static int duel_leave_sub(struct map_session_data* sd, va_list va)
{				   <<Line 8872
int did = va_arg(va, int);
if (sd->duel_invite == did)
sd->duel_invite = 0;
return 0;
}

static bool pc_readdb_skilltree(char* fields[], int columns, int current)
{							 <<< Line 8996
unsigned char joblv = 0, skilllv;
unsigned short skillid;
int idx, class_;
unsigned int i, offset = 3, skillidx;

class_  = atoi(fields[0]);
skillid = (unsigned short)atoi(fields[1]);
skilllv = (unsigned char)atoi(fields[2]);

if(columns==4+MAX_PC_SKILL_REQUIRE*2)
{// job level requirement extra column
joblv = (unsigned char)atoi(fields[3]);
offset++;
}

if(!pcdb_checkid(class_))
{
ShowWarning("pc_readdb_skilltree: Invalid job class %d specified.\n", class_);
return false;
}
idx = pc_class2idx(class_);

//This is to avoid adding two lines for the same skill. [skotlex]
ARR_FIND( 0, MAX_SKILL_TREE, skillidx, skill_tree[idx][skillidx].id == 0 || skill_tree[idx][skillidx].id == skillid );
if( skillidx == MAX_SKILL_TREE )
{
ShowWarning("pc_readdb_skilltree: Unable to load skill %hu into job %d's tree. Maximum number of skills per class has been reached.\n", skillid, class_);
return false;
}
else if(skill_tree[idx][skillidx].id)
{
ShowNotice("pc_readdb_skilltree: Overwriting skill %hu for job class %d.\n", skillid, class_);
}

skill_tree[idx][skillidx].id	= skillid;
skill_tree[idx][skillidx].max   = skilllv;
skill_tree[idx][skillidx].joblv = joblv;

for(i = 0; i < MAX_PC_SKILL_REQUIRE; i++)
{
skill_tree[idx][skillidx].need[i].id = atoi(fields[i*2+offset]);
skill_tree[idx][skillidx].need[i].lv = atoi(fields[i*2+offset+1]);
}
return true;
}

/*==========================================
* pc? ŒW‰Šú‰»
*------------------------------------------*/
void do_final_pc(void)
{
return;
}

int do_init_pc(void)
{
pc_readdb();
pc_read_motd(); // Read MOTD [Valaris]

memset(&duel_list[0], 0, sizeof(duel_list));

add_timer_func_list(pc_invincible_timer, "pc_invincible_timer");
add_timer_func_list(pc_eventtimer, "pc_eventtimer");
add_timer_func_list(pc_inventory_rental_end, "pc_inventory_rental_end");
add_timer_func_list(pc_calc_pvprank_timer, "pc_calc_pvprank_timer");
add_timer_func_list(pc_autosave, "pc_autosave");
add_timer_func_list(pc_spiritball_timer, "pc_spiritball_timer");
add_timer_func_list(pc_follow_timer, "pc_follow_timer");
add_timer_func_list(pc_endautobonus, "pc_endautobonus");
add_timer_func_list(pc_rageball_timer, "pc_rageball_timer");

add_timer(gettick() + autosave_interval, pc_autosave, 0, 0);

if (battle_config.day_duration > 0 && battle_config.night_duration > 0) {
int day_duration = battle_config.day_duration;
int night_duration = battle_config.night_duration;
// add night/day timer (by [yor])
add_timer_func_list(map_day_timer, "map_day_timer"); // by [yor]
add_timer_func_list(map_night_timer, "map_night_timer"); // by [yor]

if (!battle_config.night_at_start) {
night_flag = 0; // 0=day, 1=night [Yor]
day_timer_tid = add_timer_interval(gettick() + day_duration + night_duration, map_day_timer, 0, 0, day_duration + night_duration);
night_timer_tid = add_timer_interval(gettick() + day_duration, map_night_timer, 0, 0, day_duration + night_duration);
} else {
night_flag = 1; // 0=day, 1=night [Yor]
day_timer_tid = add_timer_interval(gettick() + night_duration, map_day_timer, 0, 0, day_duration + night_duration);
night_timer_tid = add_timer_interval(gettick() + day_duration + night_duration, map_night_timer, 0, 0, day_duration + night_duration);
}
}
return 0;
}				   <<< Line 9330

Hope that someone could help me out here..

Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  43
  • Reputation:   2
  • Joined:  01/17/12
  • Last Seen:  

Declare the function prototypes as static.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...