Jump to content
MakeWebGames

Recommended Posts

Posted

What I would like to do is change this :

print <<<OUT

title.jpg

 

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?

Posted

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

Posted

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

Posted

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

Posted

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>";

Posted

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

Posted

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!"

Posted

Re: Dreaming Out Loud

global $staffpage;

$bgcolor = 'FFFFFF';

$exploreimage=array( 1=>'location1.jpg

',

2=>'location2.jpg

', /*src = location of your jpeg file */

3=>'location3.jpg

',

4=>'location4.jpg

',

5=>'location5.jpg

',

6=>'location6.jpg

',

7=>'location7.jpg

',

8=>'location8.jpg

',

9=>'location9.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>";

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

Posted

Re: Dreaming Out Loud

 

global $staffpage;

$bgcolor = 'FFFFFF';

$exploreimage=array( 1=>'location1.jpg

',

2=>'location2.jpg

', /*src = location of your jpeg file */

3=>'location3.jpg

',

4=>'location4.jpg

',

5=>'location5.jpg

',

6=>'location6.jpg

',

7=>'location7.jpg

',

8=>'location8.jpg

',

9=>'location9.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>";

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?

Posted

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?

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