Legato Posted December 26, 2011 Group: Members Topic Count: 19 Topics Per Day: 0.00 Content Count: 87 Reputation: 1 Joined: 11/20/11 Last Seen: September 10, 2013 Share Posted December 26, 2011 Hey, everyone. Title says it all. Can somebody tell me why I am getting that warning? I found BUILDIN_FUNC(pow) on script.c and couldn't find any more. Or perhaps, I wasn't search hard enough. Can someone explain me, what does it mean, the warning. Thank you. Any help would be greatly appreciated. Happy Holidays! Regards, Quote Link to comment Share on other sites More sharing options...
JayPee Posted December 26, 2011 Group: Members Topic Count: 47 Topics Per Day: 0.01 Content Count: 633 Reputation: 78 Joined: 11/14/11 Last Seen: September 20, 2017 Share Posted December 26, 2011 I think that function pow is not declared and it being used in other functions so thats why it is reporting a warning. I guess that 5945 is the line number in pc.c where it is being used. Quote Link to comment Share on other sites More sharing options...
Brian Posted December 26, 2011 Group: Members Topic Count: 75 Topics Per Day: 0.02 Content Count: 2223 Reputation: 593 Joined: 10/26/11 Last Seen: June 2, 2018 Share Posted December 26, 2011 Is this an issue with the latest rAthena version (from the SVN) ? or do you have some custom edits to /src/map/script.c that caused this? Quote Link to comment Share on other sites More sharing options...
JayPee Posted December 26, 2011 Group: Members Topic Count: 47 Topics Per Day: 0.01 Content Count: 633 Reputation: 78 Joined: 11/14/11 Last Seen: September 20, 2017 Share Posted December 26, 2011 I think its not Im not getting this error also. And I found also that function in script.c. I also noticed its a Math function. maybe just try adding them. find BUILDIN_FUNC(sqrt) add below the function heres the code BUILDIN_FUNC(pow) { double i, a, b; a = script_getnum(st,2); b = script_getnum(st,3); i = pow(a,; script_pushint(st,(int)i); return 0; } Quote Link to comment Share on other sites More sharing options...
Lighta Posted December 26, 2011 Group: Members Topic Count: 16 Topics Per Day: 0.00 Content Count: 737 Reputation: 216 Joined: 11/29/11 Last Seen: December 20, 2020 Share Posted December 26, 2011 (edited) just put #include <math.h> and that should fix it. It should compile with -lm option by default anyway. Oops this anwser is based on your title error message, if you wan't the script function then yes add JayPeeMateo snipet. Edited December 26, 2011 by Lighta Quote Link to comment Share on other sites More sharing options...
JayPee Posted December 26, 2011 Group: Members Topic Count: 47 Topics Per Day: 0.01 Content Count: 633 Reputation: 78 Joined: 11/14/11 Last Seen: September 20, 2017 Share Posted December 26, 2011 (edited) @Lighta thats not my snippet I just copied it from rAthenas SVN coz he said I found BUILDIN_FUNC(pow) on script.c and couldn't find any more. Or perhaps, I wasn't search hard enough. Edited December 26, 2011 by JayPeeMateo Quote Link to comment Share on other sites More sharing options...
Legato Posted December 27, 2011 Group: Members Topic Count: 19 Topics Per Day: 0.00 Content Count: 87 Reputation: 1 Joined: 11/20/11 Last Seen: September 10, 2013 Author Share Posted December 27, 2011 @BrianL No, sir. It's not from rAthena's svn. I found a .patch file when I was browsing the eAthena's forum. It's a custom, yes. But, I am using rAthena's svn. @JayPeeMateo I have that on script.c. @Lighta Sure. Thanks, would try that. Quote Link to comment Share on other sites More sharing options...
Brian Posted December 27, 2011 Group: Members Topic Count: 75 Topics Per Day: 0.02 Content Count: 2223 Reputation: 593 Joined: 10/26/11 Last Seen: June 2, 2018 Share Posted December 27, 2011 The pow script command is already in our SVN. You don't need to do any additional edits, just checkout a clean copy from the SVN, compile, and it should work. Quote Link to comment Share on other sites More sharing options...
Question
Legato
Hey, everyone. Title says it all. Can somebody tell me why I am getting that warning?
I found BUILDIN_FUNC(pow) on script.c and couldn't find any more. Or perhaps, I wasn't search hard enough.
Can someone explain me, what does it mean, the warning. Thank you. Any help would be greatly appreciated.
Happy Holidays!
Regards,
Link to comment
Share on other sites
7 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.