Jump to content
  • 0

Warning int64 script.c


Azeroth

Question


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

Hello, i have a source from old eAthena version of source, might someone can help me? everytime i recompile it with a NEW rAthena revision it shows error when i recompile this.

Image:

l6HDED2.png

1>..\src\map\script.c(4853): warning C4047: 'function' : 'int64' differs in levels of indirection from 'char [9]'
1>..\src\map\script.c(4853): warning C4024: 'pc_readregistry' : different types for formal and actual parameter 2
1>  status.c
1>..\src\map\script.c(20748): warning C4047: 'function' : 'int64' differs in levels of indirection from 'char [9]'
1>..\src\map\script.c(20748): warning C4024: 'pc_readregistry' : different types for formal and actual parameter 2

Thank you in Advance!

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  351
  • Reputation:   263
  • Joined:  09/08/13
  • Last Seen:  

if(pc_readaccountreg(sd,"#langset"))

change to:

if (pc_readaccountreg(sd, add_str("#langset")))
Link to comment
Share on other sites


  • Group:  Content Moderator
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  639
  • Reputation:   596
  • Joined:  11/25/11
  • Last Seen:  

First, you need some to do some investigation on the lines it said the error is on (4853 and 20748), but, my guess is that your old source is using a function (probably pc_readregistry) in a old way.
You should compare with any other fragment which use the same functions to see how it works nowadays.

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:  

First, you need some to do some investigation on the lines it said the error is on (4853 and 20748), but, my guess is that your old source is using a function (probably pc_readregistry) in a old way.

You should compare with any other fragment which use the same functions to see how it works nowadays.

 

Yeah because my server is current supports multi language. yeah i know this is kinda outdated eAthena :P do you have any idea how to make this things work out?

Line: 4853

if(pc_readaccountreg(sd,"#langset"))

Line: 20748

if(pc_readaccountreg(sd,"#langset"))

Thank you for the respond Haziel i appreciate that!

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:  

if(pc_readaccountreg(sd,"#langset"))

change to:

if (pc_readaccountreg(sd, add_str("#langset")))

 

 i see now, there is bit changes with new rathena revision with my old SVN.

Thank you so much my friend! i appreciate your help!

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...