KyleCrispy Posted April 30, 2007 Share Posted April 30, 2007 here is a steps market so your members can add there steps to it and others can buy them instructions: 1.-create a file called stepsmarket.php 2.-instert the folowing: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. in your database insert this sql: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. NOTE: if you are not using turns in your database you must change all turns into what eva you are using thanks THIS HAS BEEN SLIGHTLY MODIFIED SO PLEASE RE TAKE THIS ONE THANKS Quote Link to comment Share on other sites More sharing options...
Raptor_Jesus Posted April 30, 2007 Share Posted April 30, 2007 Re: [FREE-v1.1]Steps market You know I've had a simalure mod for awhile but never used it as I have 2 searches and am building more per player level based on location but heres a point cause the vicodin loves me and offering it people is a good gesture. Least I think so Quote Link to comment Share on other sites More sharing options...
KyleCrispy Posted April 30, 2007 Author Share Posted April 30, 2007 Re: [FREE-v1.1]Steps market well i dont like selling mods bcoz if i do sum ppl come along and say hey thats my mod and wants to sue me and of course i have to do suming about it and i tell them shut up and i block them and delete them and another thing why i dont sell it bcoz you will find alot of ppl wich dont have enough $ to buy it but wants it so bad so i just give it away for free but thats only if it is like a 1 hour job if it is more than 2 days job of course i will charge like $10 Quote Link to comment Share on other sites More sharing options...
UCC Posted April 30, 2007 Share Posted April 30, 2007 Re: [FREE-v1.1]Steps market Dont your turns reset every day? Might want to design this to reset every day. Quote Link to comment Share on other sites More sharing options...
KyleCrispy Posted April 30, 2007 Author Share Posted April 30, 2007 Re: [FREE-v1.1]Steps market What do you mean by that :? Quote Link to comment Share on other sites More sharing options...
stryker Posted May 6, 2007 Share Posted May 6, 2007 Re: [FREE-v1.1]Steps market kyle you have an extra ?> on the bottom of your code Quote Link to comment Share on other sites More sharing options...
KyleCrispy Posted May 6, 2007 Author Share Posted May 6, 2007 Re: [FREE-v1.1]Steps market and? Quote Link to comment Share on other sites More sharing options...
Ragnar Posted February 11, 2008 Share Posted February 11, 2008 Re: [mccode] Steps market What do you change on these lines to work with version 2? After converting the mod to version 2... $q=$db->query("SELECT steps.*, u.* FROM stepsmarket steps LEFT JOIN users u ON u.userid=steps.stepsADDER ORDER BY stepsPRICE/stepsQTY ASC",$c); generates Fatal error: Call to a member function on a non-object in /home/virtual/site7/fst/var/www/html/stepsmarket.php on line 32 and $db->query("INSERT INTO stepsmarket VALUES('',{$_POST['amnt']},$userid,$tp)", $c); $db->query("UPDATE users SET turns=turns-{$_POST['amnt']} WHERE userid=$userid", $c); generates Fatal error: Call to a member function on a non-object in /home/virtual/site7/fst/var/www/html/stepsmarket.php on line 99 Quote Link to comment Share on other sites More sharing options...
Ghetto Posted February 11, 2008 Share Posted February 11, 2008 Re: [mccode] Steps market add a ,$db in all the: global $ir,$c,$userid; so it would be like: global $ir,$c,$userid,$db; Quote Link to comment Share on other sites More sharing options...
Ragnar Posted February 12, 2008 Share Posted February 12, 2008 Re: [mccode] Steps market Thanks. That did it, a mass search and replace of global $ir,$c,$userid,$h; to global $ir,$c,$userid,$h,$db; Quote Link to comment Share on other sites More sharing options...
Cyanide Posted February 12, 2008 Share Posted February 12, 2008 Re: [mccode] Steps market users would probably love this, but i want them to do more than search the streets in my game, so i wont be using it. but +1 for posting Quote Link to comment Share on other sites More sharing options...
Haunted Dawg Posted March 12, 2008 Share Posted March 12, 2008 Re: [mccode] Steps market Thats my other account :lol: Quote Link to comment Share on other sites More sharing options...
hatchet420 Posted March 13, 2008 Share Posted March 13, 2008 Re: [mccode] Steps market Dont your turns reset every day? Might want to design this to reset every day. What do you mean by that :? The streets mod normaly runs on the day cron so the steps/turns reset back to the default number every midnight, wouldnt this mod just supply a place for players to store their steps/turns overnight? :wink: Quote Link to comment Share on other sites More sharing options...
spazz Posted March 13, 2008 Share Posted March 13, 2008 Re: [mccode] Steps market The streets mod normaly runs on the day cron so the steps/turns reset back to the default number every midnight, wouldnt this mod just supply a place for players to store their steps/turns overnight? :wink: What I did was placed this in my daily cron and it seems to do the job. Steps are removed from the market at midnight. I got a kick out of people thinking the could use the market to store their steps even after I told them they couldn't :-P You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote Link to comment Share on other sites More sharing options...
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.