Jump to content
MakeWebGames

[mccode v2] Crystal Reserve Mod FREE VERSION [/mccode v2]


stryker

Recommended Posts

bank your crystals, easy install.

cbank.php

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

sql

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

+1 if you like it (yes i know it is edited copy of bank)

new version to be released soon

Link to comment
Share on other sites

  • 3 months later...

Re: [mccode v2] Crystal Reserve Mod FREE VERSION [/mccode v2]

yo yea I tried the interest except I renamed everything correctly to offset what I changed it to

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

since I'm making donator specific banks. (obviously thats in my cron_day) anyone want to show me where I miscoded. Since it says interest added I thought it might be nice to actually make it work but apparently did it wrong.

Link to comment
Share on other sites

Re: [mccode v2] Crystal Reserve Mod FREE VERSION [/mccode v2]

 

yo yea I tried the interest except I renamed everything correctly to offset what I changed it to

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

since I'm making donator specific banks. (obviously thats in my cron_day) anyone want to show me where I miscoded. Since it says interest added I thought it might be nice to actually make it work but apparently did it wrong.

if you have donatorcrystalbank setup as BIGINT like recommended, adding one tenth percent interest, (donatorcrystalbank*(1/10)), will be impossible unless the user has >10 crystals, since it will do integer division.

Link to comment
Share on other sites

Re: [mccode v2] Crystal Reserve Mod FREE VERSION [/mccode v2]

exactly what's the error? is it actually giving an sql error, or is it just not updating?

the only thing i can really see the problem being is that its not the right type, so you might have to do some type casting:

(integer)(donatorcrystalbank*(1/10))

Link to comment
Share on other sites

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