Jump to content
MakeWebGames

100% Working Copy Enhanced Schooling


Uridium

Recommended Posts

  • Replies 58
  • Created
  • Last Reply

Top Posters In This Topic

Re: [MCCODES V2] 100% Working Copy Enhanced Schooling

ooops i made an error on the User sqls sorry i must have not been paying attention

 

You're unable to view this code.

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

 

How the above Works

cpercent is the whole percentage the user has to achieve

course_clicks is the amount of daily clicks they are allowed per day

minus_clicks is the amount of clicks per session before the come back in an hour message is displayed

endclicks works with minus_clicks so users dont exceed their hourly allowance.

Link to comment
Share on other sites

Re: [MCCODES V2] 100% Working Copy Enhanced Schooling

I had that part already correct for some reason.

I am running into a cron problem..I can add a class, start it, do all the clicks allowed, and it disappears, but doesn't return within the hour. Would this be a problem with the two lines of code I added to cron_day with the minus clicks, or is this a school_cron problem?

Link to comment
Share on other sites

Re: [MCCODES V2] 100% Working Copy Enhanced Schooling

Add this to your hourly cron

 

You're unable to view this code.

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

 

And this to your daily cron

 

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: [MCCODES V2] 100% Working Copy Enhanced Schooling

Thanks to furn355's script from here FURNS SCRIPT

We can fix the refreshing error..

open your education.php and imediatley underneath include"globals.php";

add

print"<META HTTP-EQUIV=Refresh CONTENT='100;url=index.php'>";

That should cure it...

Link to comment
Share on other sites

Re: [MCCODES V2] 100% Working Copy Enhanced Schooling

 

Thanks to furn355's script from here FURNS SCRIPT

We can fix the refreshing error..

open your education.php and imediatley underneath include"globals.php";

add

print"<META HTTP-EQUIV=Refresh CONTENT='100;url=index.php'>";

That should cure it...

that didn't work but i think this will. it is just edited version of one of your lines of code.

open your education.php and underneath include"globals.php";

put this code

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: [MCCODES V2] 100% Working Copy Enhanced Schooling

i have tryed everything thats has been posted and i keep getting this Error

QUERY ERROR: Column count doesn't match value count at row 1

Query was INSERT INTO courses VALUES(NULL, 'Cooking 101', 'Learn How To Cook', 'You Take A Few Cooking Classes', 'You Completed This Course', '100', '10000', '1', '1', '2', '', '', '', '', '1', '1', '1', '1', '1')

Any clues how to fix this and it dont show the drop down for the item to give like in the screen shot :mrgreen:

Link to comment
Share on other sites

Re: [MCCODES V2] 100% Working Copy Enhanced Schooling

 

i have tryed everything thats has been posted and i keep getting this Error

QUERY ERROR: Column count doesn't match value count at row 1

Query was INSERT INTO courses VALUES(NULL, 'Cooking 101', 'Learn How To Cook', 'You Take A Few Cooking Classes', 'You Completed This Course', '100', '10000', '1', '1', '2', '', '', '', '', '1', '1', '1', '1', '1')

Any clues how to fix this and it dont show the drop down for the item to give like in the screen shot :mrgreen:

 

you have to remove the Courses table in sql first then enter this code

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: [MCCODES V2] 100% Working Copy Enhanced Schooling

Trying to get this to work..the course shows up and when I click "take" the course, it tells me I need to come back in an hour to continue the course. The I click back on the link for the course and the clicks say "0". I never even got to do my 3 clicks, it just automatically told me I got the 1% allocated without doing any clicks. Any ideas?

Link to comment
Share on other sites

Re: [MCCODES V2] 100% Working Copy Enhanced Schooling

done everything and im getting

You have used up your daily clicks come back tomorrow.

here is my course

 

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: [MCCODES V2] 100% Working Copy Enhanced Schooling

When you create a new Education are all the Parts you added avilable. goto EDIT the education youve just made and see if any are set to zero and not like the ones you created...

Link to comment
Share on other sites

  • 2 weeks later...

Re: [MCCODES V2] 100% Working Copy Enhanced Schooling

I just wanted to give a Shout Out to all you guys posting these free mods. I've just recently gotten into learining PhP and mySQL and you guys have been a terrific help. It took me forever but I finally managed to get this app to work right on my game. I'm not 100% sure of the crons just of yet, but we shall see. Great job guys, I'm envious of your talents :)

Link to comment
Share on other sites

Re: [MCCODES V2] 100% Working Copy Enhanced Schooling

I still don't get the % complete thing why 10,000.

And does like say there is a course for 5 days and has %5000

Each day it will go up 1000%

Is that what it is.

Instead of showing cost show that.

 

Nice mod btw.

Link to comment
Share on other sites

Re: [MCCODES V2] 100% Working Copy Enhanced Schooling

You dont have to add them to the cron_hour if your just testing just create a new cron say for 5 mins and add the cron scripts to that if your just testing just call the cron schooling_cron.php

Link to comment
Share on other sites

  • 8 months 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...