Jump to content
MakeWebGames

Recommended Posts

Posted

Re: [mccode V2] Very simple travel time mod.

Lol ok kool :P

Any progress with this mod ? ive been flicking through it but cannot find any problems, even though i got the synatax error about :?

Anyone else got this word working successfully on there game ?

Jc

Posted

Re: [mccode V2] Very simple travel time mod.

Well the problem is its not showing up the traveltime. I just can't figure out for the life of me why.

 

You're unable to view this code.

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

 

That is the error and here is the code which is also on the 1st page.

 

You're unable to view this code.

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

Posted

Re: [mccode V2] Very simple travel time mod.

I got it figured out now. It was a damn idiot error. lol this should work properly for the monorail.php replace it with this one.

 

You're unable to view this code.

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

 

and here is the correct function for the staff_cities.php as well. I can't remember if the other one worked correctly or not.

 

You're unable to view this code.

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

 

I will also work on adding in different modes of travel as well if someone will post what types of travel they use in their game or would like to use. I know of planes, trains, and automobiles and I don't mean the movie. lol If that are the main three then I will start working on that at once.

Posted

Re: [mccode V2] Very simple travel time mod.

As promised I am working on choosing different modes of travel, I warn you now it probably won't be the best looking code or most secure but hey its free and its something to work off of. So here is a screenshot of what I have so far, I am going to keep working on this tonight and see if I can get it done. Like I said its free so if you don't like it or like the way I code then you don't have to use it once I get it done lol.

th_traveltype.png

Also I am looking for some ideas on this as to what traveltimes and such should be. I am thinking of simplifying it by making the travel type into a number and doing something like

 

You're unable to view this code.

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

 

I am pretty sure something along those lines would work but not completely sure, I don't even know if I am going to use _POST or _GET yet I think _GET would be better but we will see what I can get to work. Like I said any ideas or input on this would be greatly appreciated.

Posted

Re: [mccode V2] Very simple travel time mod.

Ok I think I got all the kinks worked out of the travel time/travel select mod. The coding may not be the greatest or most secure but if you want to use it use it. If you have any questions on what to do then let me know and I will do my best to answer them. I pretty much did all this from scrath although I used bits and pieces of the monorail.php. I will include the images I used with the travel select but feel free to find your own if you want to. You must have already done the previous time travel mod for this to work correctly.

Screenshots

th_travel.png th_travelcity.png th_travelcomplete.png th_globalsworkin.png

save this as travel.php

 

You're unable to view this code.

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

 

and replace your link

 

You're unable to view this code.

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

 

with

 

You're unable to view this code.

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

 

Also note this is for V2 so if you want to convert it to V1 then feel free to do so.

Save the to your images folder.

th_train.jpg

train.jpg

th_jet.jpg

jet.jpg

th_car.jpg

car.jpg

Posted

Re: [mccode V2] Very simple travel time mod.

yeah that layout is pretty tricky lol. I am actually thinking of going back to a two column and posting this one on here with psd files and everything if anyone is interested in it. Oh and if you wanna see the layout in action you can check out my login pages as well as all the other links on it. I just have my registrations disabled right now.

www.bravenations.com

Posted

Re: [mccode V2] Very simple travel time mod.

well I can't really sell it because its won't pass valid xhtml or css. Plus I am just tryin to beat " the man " lol us little guys out here just tryin to make a name for ourselves. Besides I have gotten so much free stuff from the community that its time for me to give back to the community and once I found out I had a knack in making some decent logins and templates and such I figured I would make some of those. Can't believe I actually made a full mod that works lol. If ya'll have more ideas I would be glad to give em a try.

Posted

Re: [mccode V2] Very simple travel time mod.

well to me Free Mods ar different then a layout....cuase...Layout like that.. there will be 500 games lookinglike that, lol all on free host of course, but I can Fully understand what you mean.

Posted

Re: [mccode V2] Very simple travel time mod.

Mods amazing mate, its deffo come a long way, congrats on actually finishing it, does actually look like a paid mod :P

I would be honoured to make mods with you in the future if you wanted to that was :P

Ill give you a +1 even though they don't work anymore but :wink: no one knows that :P, Thanks mate

Jc

  • 2 weeks later...
Posted

Re: [mccode v2] Very simple travel time mod.

i really like this do you have the staff_cities.php which works with this mod which works for edit city and add city function also do you actually need to type in a time or does it do it randomly as i dont understand how this works

Posted

Re: [mccode v2] Very simple travel time mod.

QUERY ERROR: 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 'WHERE userid=2' at line 1

Query was UPDATE users SET money=money-3000,location=2, traveltime= WHERE userid=2

still get that on your updated picture codes one shaved

  • 1 month later...
Posted

Re: [mccode v2] Very simple travel time mod.

here is an updated version.....

should be a little more secure ( not for certain just been learning a few things ) not sure how unsecure the other one was lol. But anyway it fully works, I just tested everything about 10 times....

 

You're unable to view this code.

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

  • 1 month later...
Posted

Re: [mccode V2] Very simple travel time mod.

 

You're unable to view this code.

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

No tested

 

err H1TM4N 15 if you made this why does it state it was made by $Bull$$ EYE$

seems to funny as your name isnt $Bull$$ EYE$

 

/*-----------------------------------------------------

-- ChavsterV1

-- Made For Free Not For Resale By

-- $Bull$$ EYE$

-----------------------------------------------------*/

Posted

Re: [mccode V2] Very simple travel time mod.

 

You're unable to view this code.

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

No tested

 

err H1TM4N 15 if you made this why does it state it was made by $Bull$$ EYE$

seems to funny as your name isnt $Bull$$ EYE$

 

/*-----------------------------------------------------

-- ChavsterV1

-- Made For Free Not For Resale By

-- $Bull$$ EYE$

-----------------------------------------------------*/

Pretty sure thats what he went by before on here....but not sure people change names daily sometimes...

  • 6 months later...
  • 1 year later...
Posted

Everything works fine til you click go on the travel anyone know how to fix

$db->query("UPDATE users SET money=money-$tcost,location={$_GET['to']}, traveltime=$rantime WHERE userid=$userid");

QUERY ERROR: Unknown column 'traveltime' in 'field list'

Query was UPDATE users SET money=money-24000,location=1, traveltime=3 WHERE userid=1

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