Jump to content
MakeWebGames

[mccode v2] Pollution


Guest Sniko`
 Share

Recommended Posts

Guest Sniko`

OKay the cron isnt working but im sure you can fix that lol

Edit File Explore.php

You're unable to view this code.

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

 

Edit File cron_fivemins.php

and put this anywhere (NOT IN THE MIDDLE OF ANOTHER BD QUERY THOUGH)

You're unable to view this code.

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

 

in explore if there is $end eroor just add { at the end until the error goes

SQL

You're unable to view this code.

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

 

Thanks

Sniko`

Link to comment
Share on other sites

Re: [V2] Pollution

I thought what i make is bad...

This is just wrong what your saying about putting { at the end... i don't understand, i'd do something like

 

You're unable to view this code.

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

 

when i believe it should be

You're unable to view this code.

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

 

Also in the 5 min cron, you don't need an if statement, it's just:

You're unable to view this code.

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

Link to comment
Share on other sites

Guest Sniko`

Re: [V2] Pollution

 

I thought what i make is bad...

i ment to be like that thanks

 

when i believe it should be

You're unable to view this code.

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

also thanks for this

 

Also in the 5 min cron, you don't need an if statement, it's just:

You're unable to view this code.

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

 

Link to comment
Share on other sites

Re: [V2] Pollution

I coded this in this little box so check for bug's.

In cron five min's add:

 

You're unable to view this code.

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

 

In explore add:

 

You're unable to view this code.

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

 

Now add this under include "globals.php"; in explore.php:

 

You're unable to view this code.

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

 

Now run this query:

ALTER TABLE users ADD polluted INT(11) NOT NULL DEFAULT '0';

Link to comment
Share on other sites

Re: [V2] Pollution

Hey killah and sniko im not of a coder myself but im trying my harest :roll: i am going to try and improve this mod by adding a few extra things :D however it may go wrong ill post it in if it goes right and not if it doesnt :S lol thanks

i will imporve this by some useful facts, nerdy? no it helps you understand the pollution types.

Well done guys!

Link to comment
Share on other sites

  • 1 month later...
  • 3 weeks later...

Re: [mccode v2] Pollution

I got fairly bored.. and added some extra parts..Enjoy.. and do NOT critisies

Also, if you click on explore.php after you get the message it sends you into hospital for 10 minutes.

Save this file as staff_pollute.php

I am not the best with Sprintf, if you find any errors your more than welcome to post again.

You're unable to view this code.

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

 

Open Explore.php

 

You're unable to view this code.

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

 

Make a file called pollutedpeople.php

You're unable to view this code.

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

 

Open cron_fivemins.php

You're unable to view this code.

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

SQL!

You're unable to view this code.

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

 

You're unable to view this code.

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

I have not tested this yet. i will later when i get some time..

I am not very good with SQL but i am sure that someone will be able to do it :)

Link to comment
Share on other sites

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.

 Share

×
×
  • Create New...