Jump to content
  • 0

Fix Warning in Recompile


Azeroth

Question


  • Group:  Members
  • Topic Count:  36
  • Topics Per Day:  0.01
  • Content Count:  383
  • Reputation:   121
  • Joined:  03/31/12
  • Last Seen:  

Hi heyo! :) i would like to ask for a little support about the source of Karmic about the Sarah's Instance Memorial.

The one that Ziu Posted. i try to add this into my server. yeah after recompiling i got this minor Warning shows in VS2010

http://oi61.tinypic.com/260qtn6.jpg

here's the source:

BUILDIN_FUNC(playertalk)
{
    int display_name;
    const char* message;
    char message_output[255];
    struct map_session_data *sd = script_rid2sd(st);
   
    display_name = script_getnum(st, 2);
    message = script_getstr(st, 3);
   
    if(display_name)
        sprintf(message_output, "%s: %s", sd->status.name, message);
    else
        sprintf(message_output, "%s", message);
   
    clif_disp_overhead(sd, message_output);

    return 0;
}
Link to comment
Share on other sites

8 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

Hello, if you feel that this is a bug on latest version of rA, please make a report on GitHub Issue instead /thx

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  36
  • Topics Per Day:  0.01
  • Content Count:  383
  • Reputation:   121
  • Joined:  03/31/12
  • Last Seen:  

Hello, if you feel that this is a bug on latest version of rA, please make a report on GitHub Issue instead /thx

 

I guess this is bug or something problem with the source. my current revision 48c2cf2dec.

Anyone can fixed this warning whenever i recompile?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  36
  • Topics Per Day:  0.01
  • Content Count:  383
  • Reputation:   121
  • Joined:  03/31/12
  • Last Seen:  

Bump please?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  36
  • Topics Per Day:  0.01
  • Content Count:  383
  • Reputation:   121
  • Joined:  03/31/12
  • Last Seen:  

Anyone know how to fix this? seems no one even replying to my topic.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

Hello again, have you post a report on https://github.com/rathena/rathena/issues ?

It's more convenient to make a report on "GitHub Issue" than reporting on forum, thanks

Link to comment
Share on other sites


  • Group:  Development Manager
  • Topic Count:  56
  • Topics Per Day:  0.01
  • Content Count:  732
  • Reputation:   525
  • Joined:  12/13/11
  • Last Seen:  

You're passing the wrong value. It should be:

clif_disp_overhead(sd->bl, message_output);
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  36
  • Topics Per Day:  0.01
  • Content Count:  383
  • Reputation:   121
  • Joined:  03/31/12
  • Last Seen:  

 

You're passing the wrong value. It should be:

clif_disp_overhead(sd->bl, message_output);

 

i'll try this .

 

BUILDIN_FUNC(playertalk)
{
    int display_name;
    const char* message;
    char message_output[255];
    struct map_session_data *sd = script_rid2sd(st);
   
    display_name = script_getnum(st, 2);
    message = script_getstr(st, 3);
   
    if(display_name)
        sprintf(message_output, "%s: %s", sd->status.name, message);
    else
        sprintf(message_output, "%s", message);
    clif_disp_overhead(sd->bl, message_output);

    return 0;
}
1>..\src\map\script.c(21071): error C2440: 'function' : cannot convert from 'block_list' to 'block_list *'
1>..\src\map\script.c(21071): warning C4024: 'clif_disp_overhead' : different types for formal and actual parameter 1
Edited by Azeroth
Link to comment
Share on other sites


  • Group:  Development Manager
  • Topic Count:  56
  • Topics Per Day:  0.01
  • Content Count:  732
  • Reputation:   525
  • Joined:  12/13/11
  • Last Seen:  

Sorry, I missed the pointer:

clif_disp_overhead(&sd->bl, message_output);
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...