Legato Posted December 26, 2011 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
JayPee Posted December 26, 2011 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
Brian Posted December 26, 2011 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
JayPee Posted December 26, 2011 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
Lighta Posted December 26, 2011 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
JayPee Posted December 26, 2011 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
Legato Posted December 27, 2011 Author 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
Brian Posted December 27, 2011 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
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,
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.