Meister Posted May 24, 2012 Posted May 24, 2012 (edited) Kindly check the attached photo. Edited May 24, 2012 by emong Quote
Bahmut Posted May 24, 2012 Posted May 24, 2012 Could you please post the script where the function "KDR" is defined. Quote
Meister Posted May 24, 2012 Author Posted May 24, 2012 //Ghost's KDR Algorithm function script KDR_Calc { if(!getarg(1)) { debugmes "Error in KDR function, getarg(1) invalid value"; return 0; } // [Lighta] if(getarg(0) >= getarg(1)){ if(getarg(1)){ set .@i, getarg(0)/getarg(1); if((getarg(0)%getarg(1)) == 0){ return .@i+".00"; } set .@j, (getarg(0)%getarg(1))*100/getarg(1); return .@i+"."+.@j; } else { return getarg(0)+".00"; } } if(getarg(0) < getarg(1)){ if(getarg(0)){ set .@i, (getarg(0)*10)/getarg(1); set .@j, ((getarg(0)*10)%getarg(1))*10/getarg(1); return "0."+.@i +.@j; } else { return "0.00"; } } } here sir.. Quote
QQfoolsorellina Posted May 24, 2012 Posted May 24, 2012 maybe this topic can help you http://rathena.org/board/topic/60024-error-in-kdr-function/ Quote
Meister Posted May 24, 2012 Author Posted May 24, 2012 Done. fixed thank you.. Thank you for all of your response.. Quote
Question
Meister
Kindly check the attached photo.

Edited by emong4 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.