Jump to content
  • 0
Sign in to follow this  
apuadofrancisco

[Compile Error] Latest update in Hercules 05-31-15

Question

1>..srcmappc.c(186): error C2143: syntax error : missing ';' before 'type'
1>..srcmappc.c(187): error C2065: 'result' : undeclared identifier
1>..srcmappc.c(188): error C2065: 'result' : undeclared identifier
1>..srcmappc.c(190): error C2065: 'result' : undeclared identifier
1>..srcmappc.c(191): error C2065: 'result' : undeclared identifier
1>..srcmappc.c(192): error C2065: 'result' : undeclared identifier
1>..srcmappc.c(193): error C2065: 'result' : undeclared identifier


This is line 186 - 193

 

int result = pc->checkskill(sd, MO_CALLSPIRITS);
if ( min && result < min )
result = min;
else if ( sd->sc.data[sC_RAISINGDRAGON] )
result += sd->sc.data[sC_RAISINGDRAGON]->val1;
if ( result > MAX_SPIRITBALL )
result = MAX_SPIRITBALL;
return result;

 

Thanks!

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

it should be like this:

 

 

int pc_getmaxspiritball(struct map_session_data *sd, int min)
{
int result = pc->checkskill(sd, MO_CALLSPIRITS);
nullpo_ret(sd);
if ( min && result < min )
  result = min;
else if ( sd->sc.data[sC_RAISINGDRAGON] )
  result += sd->sc.data[sC_RAISINGDRAGON]->val1;
if ( result > MAX_SPIRITBALL )
  result = MAX_SPIRITBALL;
return result;
}

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.