Jump to content
MakeWebGames

Recommended Posts

  • Replies 77
  • Created
  • Last Reply

Top Posters In This Topic

Posted

For those wanting something different for Gangs why not use the same method for education so gangs can learn new things aswell You could use the education system to Help Gangs gain REP, extra cash, Update gang size and possibly more. Im not going to code this cos you could really just adjust the Education mod to make it work the same way.

Just a thought

  • 2 weeks later...
Posted

Help please :S

SQL query:

ALTER users ADD cpercent DECIMAL( 4, 1 ) NOT NULL DEFAULT 0.0;

 

MySQL said:

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'users ADD cpercent decimal(4,1) NOT NULL DEFAULT 0.0' at line 1

Guest Drizzle
Posted

By "Runs on Clicks, not crons" you mean? Like, users have to click over and over to finish? Or throughout the game, it counts the clicks on all pages? Jus wonderin :P good mod

Posted

Since adding this to my game, i cant seem to get my game to work any more. I can log-in but then get a white screen and cant find the problem anywhere.

Any one know what i should do?

Posted

It may be your hosting Company,that has happen to me many time when I was on a bad host.

when the site doesn't connect to your SQLs

Ok, i'll contact them seeing if they can help.

 

EDIT:

Done it, had to sort globals out.

  • 3 months later...
Posted

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'users ADD cpercent decimal(4,1) NOT NULL DEFAULT 0.0' at line 1

Help??? :(

  • 6 months later...
Posted

Thanks for this mod....Lol I have learned tons from it. It truly has added a new perspective to my "Pirate game" schema.

I have whats a very noobish question but I wanna ask so maybe I can understand in the future.

I have added most of this,but when i got to what was noted as edits to header.php

div.grey_info{

border:1px #999999 solid;

width:80%;

margin:

auto;

background:#a1a1a1

}

 

div.outcome_info{

border:1px #ffffff solid;

width:80%;

margin:

auto;

background:#D1D1D1

}

Seems as if just anywhere in the body with the rest of the css would have sufficed, yet it gave me a white screen.

remove it and all is better. Is it monorail that the bit should have been added,or am I just placing it in the wrong place?

Posted

Steve, you have probably got a white screen because of the bold lines...

div.grey_info{

border:1px #999999 solid;

width:80%;

margin:auto;

background:#a1a1a1 - needs a ; at the end.

}

div.outcome_info{

border:1px #ffffff solid;

width:80%;

margin: auto;

background:#D1D1D1 - needs a ; at the end

}

Posted
Steve, you have probably got a white screen because of the bold lines...

div.grey_info{

border:1px #999999 solid;

width:80%;

margin:auto;

background:#a1a1a1 - needs a ; at the end.

}

div.outcome_info{

border:1px #ffffff solid;

width:80%;

margin: auto;

background:#D1D1D1 - needs a ; at the end

}

Actually the last attribute doesn't need a semi-colon but it's best practice to do so.

Try and see if you are placing them between style tags, best of placing it just under your css for body { }, just to be sure it's in the correct place. :)

Also space things out;

You're unable to view this code.

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

Posted

Thank you both very much, that fixed it. I should have stopped last night when I started "glazing" over staring at it.

Thanks to the whole community, I dont generally have a need to post as most answers are already out there with a bit of effort looking around. I could never place a value on the things I have learned from this awesome site.

A huge thanks to everyone!! :thumbsup:

Posted

Thanks for making it :)

I like the concept of it as it actually encourages people to be active. you can not simply log in once, then come back after it completes and restart another. Without staying active you simply can not complete a course :D

I am going back through everything. Problem I seem to have now is adding a new course through the admin panel. After filling everything in, and click create course it refreshes and empties all of the fields but never makes the course.

Anyone happen to know what I may have done wrong? ?(

I thought maybe you could not leave any of the fields blank but that was not it either.

Posted

Once again a great mod, i will be looking at how it works and see if i can learn a thing or two which im sure i'll learn a ton. Thanks illusions

Posted

Call this file staff_courses.php

When adding a new course make sure no values are less than 0 for some reason it goofs so ive had to add a new line of SQL

 

You're unable to view this code.

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

Posted

addcourse.png

Above shows how to add a course

addcourseaccepted.png

Above shows accepted addition

editcourse.png

Above shows Editing a Course

editsuccess.png

And finally the Succes message...

All Courses can be deleted but make sure users are not taking that course at the time...

USERS VIEW

coursestotake.png

List of Available course

coursetaken.png

When user starts their course

coursecompleted.png

And the final outcome after the completion.

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