mr_shuu Posted July 15, 2009 Posted July 15, 2009 What I would like to do is change this : print <<<OUT In my header... so that instead of showing the same picture... it shows a different picture based on what city the person is in... I'd like there to be a second alternate picture -say of a map for that city- on the explore page. Then I would like the explore page to show only certain shops found only in that city... but the shops have back rooms for specialty items only for certain levels. And then I'd like a nymphomaniac geeky girl to become infactuated with me inside the game... move in and when she's notservicing the game as one of the volunteer staff I'd like her servicing me. How can we code all that? Quote
endo Posted July 15, 2009 Posted July 15, 2009 Re: Dreaming Out Loud ok this is quite easy really but i havent worked with mccodes in quite a while :S but if my memory serves me correctly the users location in mysql terms is just a number so {$ir['location']} would print out the location number that they are in so basically put echo ' [img=title{$ir['location'].jpg] '; print <<<OUT instead of print <<<OUT [img=title.jpg] and remember to upload the picture as title1.jpg for the first location and title2.jpg for the second location etc i think this is correct but if i were you i would wait for someone else to either A) flame this post or B) say +1 lol enjoy Quote
plintu Posted July 15, 2009 Posted July 15, 2009 Re: Dreaming Out Loud ok well here is an idea for you why not move this post to the "Game Support" topic so that people don't think this is a free mod you created since that is the topic it is in! Not trying to be rude but really people do give you support in that section!!! Quote
endo Posted July 15, 2009 Posted July 15, 2009 Re: Dreaming Out Loud erm he is not asking for support he is asking for a mod basically which i think ive provided him so technically its in the right place.... Quote
Strats Posted July 15, 2009 Posted July 15, 2009 Re: Dreaming Out Loud I don't think your meant to request them here tho Quote
tobatz Posted July 15, 2009 Posted July 15, 2009 Re: Dreaming Out Loud here's the code you're looking. It's not tested but i think it will work.. $exploreimage=array( 1=>'[img=../location1.jpg] ', 2=>'[img=../location2.jpg] ', /*src = location of your jpeg file */ 3=>'[img=../location3.jpg] ', 4=>'[img=../location4.jpg] ', 5=>'[img=../location5.jpg] ', 6=>'[img=../location6.jpg] ' /*the number of array elements you have should be equal to the number of location in your game */ ); $key=$ir['location']; print "<center>".$exploreimage[$key]."</center>"; Quote
endo Posted July 15, 2009 Posted July 15, 2009 Re: Dreaming Out Loud does the same thing as my idea, yours just takes up more space :| but each to their own Quote
fbiss Posted July 16, 2009 Posted July 16, 2009 Re: Dreaming Out Loud plintu and Strats are correct, this is not the correct board to request mods. This category is for posting of new mods that u are providing to other people. put people cant seem to follow simple rules. *** moving this topic*** Quote
mr_shuu Posted July 16, 2009 Author Posted July 16, 2009 Re: Dreaming Out Loud and it is probably not the right area to try and pick up chicks I imagine... Thank you to both of you for responding... I just want to make a nice small game for a few friends and you guys are a great help. and now:: my impression of fbiss in seventh grade: "ewwwww ewwwww teacher! Billy went to the lavatory and he doesn't have a hallway pass!" Quote
mr_shuu Posted July 18, 2009 Author Posted July 18, 2009 Re: Dreaming Out Loud global $staffpage; $bgcolor = 'FFFFFF'; $exploreimage=array( 1=>' ', 2=>' ', /*src = location of your jpeg file */ 3=>' ', 4=>' ', 5=>' ', 6=>' ', 7=>' ', 8=>' ', 9=>' ' /*the number of array elements you have should be equal to the number of location in your game */ ); $key=$ir['location']; print "<center>".$exploreimage[$key]."</center>"; 155::: I have been messing with this for an entire night and canno get it to work... Parse error: parse error in C:\xampp\htdocs\header.php on line 155 I feel like a schmuck Quote
endo Posted July 21, 2009 Posted July 21, 2009 Re: Dreaming Out Loud seriously just use the one i put up it will work Quote
EpicFuse Posted July 27, 2009 Posted July 27, 2009 Re: Dreaming Out Loud global $staffpage; $bgcolor = 'FFFFFF'; $exploreimage=array( 1=>' ', 2=>' ', /*src = location of your jpeg file */ 3=>' ', 4=>' ', 5=>' ', 6=>' ', 7=>' ', 8=>' ', 9=>' ' /*the number of array elements you have should be equal to the number of location in your game */ ); $key=$ir['location']; print "<center>".$exploreimage[$key]."</center>"; 155::: I have been messing with this for an entire night and canno get it to work... Parse error: parse error in C:\xampp\htdocs\header.php on line 155 I feel like a schmuck lol im a newb but i think i see the problem it says location/location.jpeg this is what its ment to look like say your main database is public_html then it will look like this public_html/then the image name.jpeg. please tell me if im write? Quote
Jordan Palmer Posted July 27, 2009 Posted July 27, 2009 Re: Dreaming Out Loud Nope. That mean's under the folder location u'll find location1.jpg or whatever lol Quote
EpicFuse Posted July 28, 2009 Posted July 28, 2009 Re: Dreaming Out Loud Nope. That mean's under the folder location u'll find location1.jpg or whatever lol Yes but the first part location/location.jpg is te location of the file he needs to cahnge it to the root of the jpeg? 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.