Jump to content
MakeWebGames

Recommended Posts

Posted

Hey MWG!

I thought I would make another modification for you guys!

Secured bank + Bank robbery - This mod is basically a bank robbery were users can rob the bank, they have a 1 in 4 chance. If they do succeed in the bank robbery everyone can not use the bank for the time that you choose (you must do this by putting the correct code into the cron file of your *own* choice)

SQL

You're unable to view this code.

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

 

 

bank.php

You're unable to view this code.

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

 

 

Call this file - robbank.php

You're unable to view this code.

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

 

 

cron minute, five minutes or hour cron file - You can put this at the bottom of the file just before ?>

You're unable to view this code.

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

 

 

Hope your enjoy this modification, I have not tested it yet. Please update me with any problems or bugs I will fix them as soon as possible!

  • 3 weeks later...
Posted (edited)

SQL

You're unable to view this code.

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

 

Just a heads up, that wont work, try this -

 

You're unable to view this code.

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

 

Not much of a difference but its the only error I got.

Edited by vlad
Posted
Hey MWG!

I thought I would make another modification for you guys!

Secured bank + Bank robbery - This mod is basically a bank robbery were users can rob the bank, they have a 1 in 4 chance. If they do succeed in the bank robbery everyone can not use the bank for the time that you choose (you must do this by putting the correct code into the cron file of your *own* choice)

SQL

You're unable to view this code.

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

 

bank.php

You're unable to view this code.

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

 

Call this file - robbank.php

You're unable to view this code.

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

 

cron minute, five minutes or hour cron file - You can put this at the bottom of the file just before ?>

You're unable to view this code.

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

 

Hope your enjoy this modification, I have not tested it yet. Please update me with any problems or bugs I will fix them as soon as possible!

um for bank.php do we add it undereth or replace it with this code for bank.php

Posted

You're unable to view this code.

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

I would have a closer look at that if I were you. Not only is it open to race condition errors (difficult to reproduce, but nevertheless something that can be considered a violation of basic security principals), but more importantly - suspect. Don't you mean...

You're unable to view this code.

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

(Assertions about the value of $userid left as an exercise for the reader).

Posted

bank.php

Note: This code has been tested for parse errors only. I have not tested its functionality. The code is provided as is with no warranty or guarantee that it will work

You're unable to view this code.

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

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