Jump to content
MakeWebGames

Recommended Posts

Posted

This code is simple.... :wink:

 

You're unable to view this code.

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

 

Add this SQL:

You're unable to view this code.

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

 

Find the following in attack.php

 

You're unable to view this code.

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

 

And add this under it..

 

You're unable to view this code.

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

Posted

Re: [mccode v2] Crystal Temple

For the config at the top you could put it all into an assoc array to save space, or at least take the single quotes away from around the number.

array example

You're unable to view this code.

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

Posted

Re: [mccode v2] Crystal Temple

Hmm, that is an idea... But to be honest i'm not the best with

You're unable to view this code.

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

s. I still am learning where to use them but thanks for the tip POG1 :-)

Posted

Re: [mccode v2] Crystal Temple

You could basically copy and paste what he has there.

$configs = array('EnergyRefill' => 10,'WillRefill' => 10, 'BraveRefill' => 10,'DonatorDays' => 10, 'Protection' => 10);

To call it simply use...

$configs['EnergyRefill'] etc etc

Posted

Re: [mccode v2] Crystal Temple

Here's an updated one (With the array();)

 

You're unable to view this code.

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

 

Note:

Add this to cron_minute.php

You're unable to view this code.

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

 

Addition to your crons is untested.

Posted

Re: [mccode v2] Crystal Temple

i need help i edited this for a game but the thing is it wont wokr the error is

Parse error: syntax error, unexpected T_ELSE in /home/darkstr1/public_html/ctemple.php on line 60

the code is

You're unable to view this code.

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

Posted

Re: [mccode v2] Crystal Temple

Sorry but I gave a working code out, however I do not provide support for my source being modified, maybe asking in the mccode/dbscode Game Engine board for help.

Posted

Re: [mccode v2] Crystal Temple

 

Sorry but I gave a working code out, however I do not provide support for my source being modified, maybe asking in the mccode/dbscode Game Engine board for help.

you don't offer support? bad choice, shame on you lol

Posted

Re: [mccode v2] Crystal Temple

I provide support if it was an error/bug on my half..

I just don't provide support for my code being modified as it is not at my error in the code.

Posted

Re: [mccode v2] Crystal Temple

With the updated version you have made a mistake in the array. Each number 10 is being converted into a string, but if you didn't have it enclosed in quotes it would be an integer ;)

Posted

Re: [mccode v2] Crystal Temple

However that is true... I prefer to encase numbers in single quotes, just preference, I would also add this script does still work with them being encased in numbers. :wink:

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