Jump to content
MakeWebGames

Honor Awards - Modified by HarryB


HarryB

Recommended Posts

Who's not made this mod?

I just got the free copy of the forums and made it look a million times better and added a few things to it

The code is too long to put on here so I'm going to show you some screen shots and if you like it then you can download it from the download link which is placed after the screen shots

The Zip file includes;

Instructions File (don't think you won't need it as theres a few sql's involved and a few database querys)

honoraward.php

HonorExchange.php

6 pages of Money Awards

5 pages of Crimes Awards

5 pages of Star/Crystal Awards

7 pages of Donator day Awards

5 pages of Gang Day Awards

5 pages of Days Old Awards

6 pages of Level Awards

5 pages of Attacks Won Awards

Picture 1 - Just to show you how the tables are set out, theres more than 1 on every table but i just showed 1 to save my self from the long work

Picture 2 - Shows What the Honor Exchange looks like

Picture 3 - Well the old one was 'Award Credited Click Hereto go back to Honor awards'. Boooorrring, who doesn't agree? So i just made a little conversion with HarryB against the player. Change HarryB if you want i don't mind.

honorawards.bmp

honorexchange.bmp

awardgiving.bmp

www.deadly-planet.com/Honor-Award-Mod-Modified-By-HarryB.zip

Hope you like it. Post your comments please.

Link to comment
Share on other sites

  • 2 weeks later...

Re: Honor Awards - V2 - Modified by HarryB

I am able to receive the same award multiple times. Are you sure that you included all of the sql's?

 

You're unable to view this code.

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

 

Is there meant to be an honourawards table? If so can I please have the SQL?

Link to comment
Share on other sites

Re: Honor Awards - V2 - Modified by HarryB

I received this error after following all the steps. I love your mod, and will add it on all my games. T/y for it.

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/blazedci/public_html/honorawards.php on line 84

Link to comment
Share on other sites

Re: Honor Awards - V2 - Modified by HarryB

a) Did you even get this version from here, because it looks different?

b) Which version of MCcodes are you using, 1.0, 1.1 or 2.0?

c) Have you made any modifications to the script?

d) It is hard to look at the code spread across two posts like that.

Use the

You're unable to view this code.

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

when posting code.

[ code ]

[/ code ]

Remove gaps above and post your code between.

Link to comment
Share on other sites

Re: Honor Awards - V2 - Modified by HarryB

well first of all it might not be adding in the database as some of you may have changed the databased field names in the database or in the coding as i spotted before the code that has been posted it, daysingang has been shortened to dig thats not going to work isit.

Link to comment
Share on other sites

Re: Honor Awards - V2 - Modified by HarryB

 

Sorry folks there your table

CREATE TABLE `honorawards` (

`userid` int(11) NOT NULL default '0',

`list` int(11) NOT NULL default '0'

) ENGINE=MyISAM DEFAULT CHARSET=latin1;

Harry does this Mod Need a Cron ? as i exchanged one of my honors and now im getting a message saying that i cant honor anymore ? how do i reset it or is there a Cron involved

Link to comment
Share on other sites

Re: Honor Awards - V2 - Modified by HarryB

Are you sure that 'list' is meant to be an int(11) ? It has been displaying as 0, and you can keep getting awards. I have tried changing the type to varchar, though it only half works. E.G. For donatordays30, when it is set as varchar, it will only add the donatordays part without the 30 to the list. Help would be highly appreciated!

Link to comment
Share on other sites

Re: Honor Awards - V2 - Modified by HarryB

NEEDS TO BE CHANGED

Open:

donator30.php

Find:

mysql_query("INSERT INTO honorawards values ($userid,'donatordays15')",$c);

Replace With:

mysql_query("INSERT INTO honorawards values ($userid,'donatordays30')",$c);

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.

×
×
  • Create New...