josh-j-c Posted November 6, 2008 Posted November 6, 2008 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 Quote
shaved92bravada Posted November 6, 2008 Author Posted November 6, 2008 Re: [mccode V2] Very simple travel time mod. I am still looking at it trying to figure out what is causing it. I will continue to work on it till I get it fixed. I will post it here once I am positive that it works. Quote
AlabamaHit Posted November 6, 2008 Posted November 6, 2008 Re: [mccode V2] Very simple travel time mod. post errror and code..i will help you fix it. Quote
shaved92bravada Posted November 6, 2008 Author Posted November 6, 2008 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. Quote
AlabamaHit Posted November 6, 2008 Posted November 6, 2008 Re: [mccode V2] Very simple travel time mod. um...where does it supposed to say that?...... Quote
shaved92bravada Posted November 6, 2008 Author Posted November 6, 2008 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. Quote
shaved92bravada Posted November 6, 2008 Author Posted November 6, 2008 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. 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. Quote
shaved92bravada Posted November 6, 2008 Author Posted November 6, 2008 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 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. train.jpg jet.jpg car.jpg Quote
AlabamaHit Posted November 6, 2008 Posted November 6, 2008 Re: [mccode V2] Very simple travel time mod. nice work shaved92bravada... Also I like your layout of your game. Very nice work on that. Quote
shaved92bravada Posted November 6, 2008 Author Posted November 6, 2008 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 Quote
Uridium Posted November 6, 2008 Posted November 6, 2008 Re: [mccode V2] Very simple travel time mod. Nice Work Shaved :) +10 from me matey :) Quote
AlabamaHit Posted November 6, 2008 Posted November 6, 2008 Re: [mccode V2] Very simple travel time mod. shaved92bravada i personally wouldnt give it out free, lol...just me... Quote
shaved92bravada Posted November 6, 2008 Author Posted November 6, 2008 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. Quote
AlabamaHit Posted November 6, 2008 Posted November 6, 2008 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. Quote
josh-j-c Posted November 6, 2008 Posted November 6, 2008 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 Quote
***ryan*** Posted November 7, 2008 Posted November 7, 2008 Re: [mccode V2] Very simple travel time mod. very nice mate i got it to work Quote
HITMAN 17 Posted November 20, 2008 Posted November 20, 2008 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 Quote
HITMAN 17 Posted November 26, 2008 Posted November 26, 2008 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 Quote
shaved92bravada Posted December 29, 2008 Author Posted December 29, 2008 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. Quote
Wickidnezz Posted February 3, 2009 Posted February 3, 2009 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$ -----------------------------------------------------*/ Quote
BlueDevil23 Posted February 3, 2009 Posted February 3, 2009 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... Quote
weewooz Posted August 10, 2009 Posted August 10, 2009 Re: [mccode v2] Very simple travel time mod. This dont work well it does just lets ya still travel if ya dont have the cash and puts you nevative cash Quote
LegendFTW Posted February 10, 2011 Posted February 10, 2011 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 Quote
lucky3809 Posted February 10, 2011 Posted February 10, 2011 @Legend You dont have the sqls in your database thats the unknown column error your getting. [mysql]ALTER TABLE `users` ADD `traveltime` INT(11) NOT NULL DEFAULT '0';[/mysql] Quote
LegendFTW Posted February 10, 2011 Posted February 10, 2011 stupid me missed that thanks lucky3809 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.