Jump to content
MakeWebGames

Recommended Posts

Posted

This is my first mod, so go easy on me.

Save this as jailescape.php

You're unable to view this code.

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

 

and add this to your jail.php

You're unable to view this code.

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

 

And that should be it.

Posted

Re: My jailescape

 

$db->query("UPDATE users SET brave=brave-7 WHERE userid=$userid");

i only see that part with brave will that mean you will go negitive ?

Do something to check if they have the right amount of brave........

Posted

Re: My jailescape

add somat like

You're unable to view this code.

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

plus crazy y did you put code tags around your bb code?

Posted

Re: My jailescape

Just notised a little bug. replace

else

{

print "<font color='#FFFFFF'>While trying to escape from jail, a guard spots you.

Looks like you are going to be here even longer than we thought!

";

$time=rand(30,100);

$db->query("UPDATE users SET jail=jail+$time WHERE userid=$userid", $c);

}

with

else

{

print "<font color='#FFFFFF'>While trying to escape from jail, a guard spots you.

Looks like you are going to be here even longer than we thought!

";

$time=rand(30,100);

$db->query("UPDATE users SET brave=brave-7 jail=jail+$time WHERE userid=$userid", $c);

}

and everything should be fine.

Posted

Re: My jailescape

 

Just notised a little bug. replace

else

{

print "<font color='#FFFFFF'>While trying to escape from jail, a guard spots you.

Looks like you are going to be here even longer than we thought!

";

$time=rand(30,100);

$db->query("UPDATE users SET jail=jail+$time WHERE userid=$userid", $c);

}

with

else

{

print "<font color='#FFFFFF'>While trying to escape from jail, a guard spots you.

Looks like you are going to be here even longer than we thought!

";

$time=rand(30,100);

$db->query("UPDATE users SET brave=brave-7 jail=jail+$time WHERE userid=$userid", $c);

}

and everything should be fine.

Whops, try

 

You're unable to view this code.

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

 

Sorry, :P

  • 1 month later...

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