NationGamer Posted February 6, 2011 Posted February 6, 2011 ok im trying to recreate the user level function firsty here is the function i made THANKS TO DJKANNA FIXED so i dont know what is causing this could someone please help thank you very much Quote
rulerofzu Posted February 6, 2011 Posted February 6, 2011 Well according to what you have posted $gangdata['exp_needed'] You do not have a exp_needed field in the db table Quote
NationGamer Posted February 6, 2011 Author Posted February 6, 2011 see thats what im trying to do make it without the exp_needed field in db as that is the same how users one is worked out Quote
bineye Posted February 6, 2011 Posted February 6, 2011 $gangdata=$db->fetch_row($gu); $gangdata['exp_needed']=(int) (($gangdata['gangLEVEL']+1)*247*2); I think the problem is here. I could be wrong, but as you are using $gangdata to fetch the row, maybe the script is treating it like exp_needed is a table column, and since nothing is recalled, it is automatically assigned a 0 value, giving the division by zero error. Maybe someone with a bit more experience could check that? By the way, is there a reason why you have ..data.. * 247 * 2? Maybe putting 494 just would have been easier. :D Quote
Djkanna Posted February 6, 2011 Posted February 6, 2011 $gangdata['exp_needed']=(int) (($gangdata['gangLEVEL']+1)*247*2); Place it above the $exp in gangs page too. Quote
NationGamer Posted February 7, 2011 Author Posted February 7, 2011 thanks guys finally got this working and thanks DJK that worked like a charm exept for i had to edit the class alittle bit as it wasnt reconizing the function exp needed part but that helped with display part of the mod and made the warning disapear on gang page so thanks again Quote
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.