Jump to content
MakeWebGames

Gym trains;


josh-j-c

Recommended Posts

Right I've changed my game so that none donators get 100 energy and donators get 150 but I'm slightly stuck on my gym now, when I attack it works fine taking 50 energy a time but I haven't cracked how to change the gym trains from 100 down to 10 can anyone help?

Thank you in advance,

Jc.

Link to comment
Share on other sites

I've looked all around my gym file but can't anything around the defines the amount of times they can train in energy, so im pretty stuck :/ Where would I need to place that around my gym ? Noteing that my gym is stock at the minute,

Thanks for your reply btw :) ,,

Jc.

Link to comment
Share on other sites

You pretty much solved the whole problem thank you for you help mate, i just needed to change a few more things such as,

 

Times to train: <input type='text' name='amnt' value='" . floor($ir['energy'] / 10) . "' /><br />

 

and;

 

You now have {$inc} labour and " . floor($ir['energy'] / 10) . " energy left.";

 

thank you for your help mate, thats been messing with my brain for the whole day whilst at work lol :)

one final thing though why would Syntax errors occure unless i actually put,

 

" . floor($ir['energy'] / 10) . "

 

and not just,

 

($ir['energy'] / 10)

 

????

 

Jc

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