Jump to content
MakeWebGames

Recommended Posts

Posted

I have made a arcade with 11 games on it but the arcade has a twist if you are in jail or hospital you only get to play 5 games and when your not all games.

 

Call this gameroom.php

You're unable to view this code.

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

 

I will put one game which can be play in jail and hospital and one which can or instead of making all these files you can download it.

This is can be played jail or hospital call it 18w.php

You're unable to view this code.

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

 

You can play in jail or hospital call this dirtbike.php

You're unable to view this code.

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

 

Thanks brad

Posted

Very nice Bard! Well done mate. :)

 

You're unable to view this code.

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

Could be

 

You're unable to view this code.

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

 

I heard that it helps performance.

Yet again keep up the good work. ;)

Posted

Just thinking; you have 11 games = 11 files.. Couldn't you have 1 file (games.php) and have 11 functions? So it looks like:

$_GET['page'] = .... ? ... : false;

switch(...) {

case 'gamename': gamename(); break;

... (and so on for the different games)

}

function gamename() {

...

}

And then in gameroom.php have the links like: Game name

Posted

Maniak is saying it wil be MUCH simpler and easier if you used switch statements.

 

You're unable to view this code.

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

 

Something like that, just add in more games. Also actually put in the games into functions

Posted

How about my version which is 1 page with the cases added like mentioned above and giving credit to brad for adding the "if in jail or hospital" i just recoded it a little bit, add notes to keep people knowing whats what, 11 games all alphabetical. If anyone wants to add anything else let me know and ill see what i can come up with.

 

You're unable to view this code.

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

Posted

I'd personally use this, no need for a function per game just do it all in 1.

 

You're unable to view this code.

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

 

Not tested but pretty sure it will work without errors.

Posted

Dont post other peoples mods make your own thread for that because MDK666 you made and thread for yours so dont post you mods in mine make a thread for it

Posted
Dont post other peoples mods make your own thread for that because MDK666 you made and thread for yours so dont post you mods in mine make a thread for it
they where showing you how else you could have done it was aimed at you its not a "new mod" just a remake of yours (i think)

btw nice mod not seen one that comes with games already well not one that does not go to there own site anyway

Posted

good point i would add that or u could make like they have to pay tokens what they get for voteing and then they use them to play the game can someone do that i dont have any mccodes v2 files

Posted
good point i would add that or u could make like they have to pay tokens what they get for voteing and then they use them to play the game can someone do that i dont have any mccodes v2 files

if you want to charge them money or crystals to play certain games then just put a query below the code of the game in example:

 

You're unable to view this code.

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

 

you can do that above each link with a different price or above the whole arcade to charge them each time they play a game.

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