Jump to content
MakeWebGames

Recommended Posts

Posted

Re: [mccode v2] Golden Snitch

 

You must be a super genius to be able to code that after 3 days of starting to learn php.....

Mm, to be honest, the code doesn't look that complex.

Although.. Why is the name of the file called mine.php

And just a hint, next time you make a mod, could you include some instructions? Aswell as the name of the file..

People might not be patient enough to view the code to get the name :D - Then again, if anybody uploads a mod without checking the code then they might want to think again about what they are doing running a game. :O

Posted

Re: [mccode v2] Golden Snitch

No problem just pretty, quick for somebody that first looked into code 3 days ago! Probobly theminemod but with a few renamedthings in there, no offence though, i wouldnt be able to do this.

Posted

Re: [mccode v2] Golden Snitch

i know someone that read a php and mysql book in a day and was the best coder i ever seen and he read a book on how to make games and i mean real games and he was able to start making it the third day

Posted

Re: [mccode v2] Golden Snitch

not sure about these lines that have may be you meant to putusers

$db->query("UPDATE usermoney SET money=money+100000000,crystal=crystal+125 WHERE userid=$userid",$c);

+1 though :)

Posted

Re: [mccode v2] Golden Snitch

snitch.php

You're unable to view this code.

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

 

There is one event try and do the others, Did it in about 80 secs so if there are any errors reply ill fix em right up ;)

 

ALSO

you didnt need

session_start();

as it is in globals.php

Posted

Re: [mccode v2] Golden Snitch

this is what i was talking about when I said make it random. This is untested but should work.

replace

 

You're unable to view this code.

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

 

with this

 

You're unable to view this code.

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

 

That way you don't find the snitch every single time. The way it is set there you have a 30% chance of catching it. You can make that number higher say 80 then it would be an 80% chance. which would be better.

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