Jump to content
MakeWebGames

Recommended Posts

Posted

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

Posted
$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

Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

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