Brad Posted June 5, 2010 Posted June 5, 2010 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 Quote
NarutoPRG.com Posted June 5, 2010 Posted June 5, 2010 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. ;) Quote
Brad Posted June 5, 2010 Author Posted June 5, 2010 Ok thanks i will do that next mod i have some games and then have to reupload but thanks :D Quote
Maniak Posted June 5, 2010 Posted June 5, 2010 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 Quote
Brad Posted June 5, 2010 Author Posted June 5, 2010 Makes it easyer for others to put games on so if you want to put games on it you can Quote
gurpreet Posted June 6, 2010 Posted June 6, 2010 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 Quote
Dillion & Amanda 4 Lif Posted June 6, 2010 Posted June 6, 2010 Sure brad it would be a bit easier for others to upload each file, however, that decreases performance, especially because you dont use single quotes. Quote
MDK666 Posted June 6, 2010 Posted June 6, 2010 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. Quote
Brad Posted June 6, 2010 Author Posted June 6, 2010 o ok thanks for that i will do it in 1 page next time :P Quote
iSOS Posted June 6, 2010 Posted June 6, 2010 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. Quote
Brad Posted June 6, 2010 Author Posted June 6, 2010 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 Quote
Dominion Posted June 6, 2010 Posted June 6, 2010 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 itthey 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 Quote
Brad Posted June 6, 2010 Author Posted June 6, 2010 Yeah thanks the one there putting in is MDK666 arcade mod what he made but edited Quote
Dillion & Amanda 4 Lif Posted June 6, 2010 Posted June 6, 2010 It's a fail either way. Unless you get someone , or you know how to edit actionscript to use your money system, its just another thing that distracts players from playing your game Quote
Brad Posted June 6, 2010 Author Posted June 6, 2010 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 Quote
MDK666 Posted June 9, 2010 Posted June 9, 2010 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. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.