Jump to content
MakeWebGames

[mccode] House Pictures


Ishy

Recommended Posts

  • Replies 52
  • Created
  • Last Reply

Top Posters In This Topic

  • 3 weeks later...
  • 2 months later...

Re: [Mccode][Free] House Pictures

sql is wrong

here seems to be an error in your SQL query. The MySQL server error output below, if there is any, may also help you in diagnosing the problem

ERROR: Unclosed quote @ 111

STR: '

SQL: ALTER TABLE `houses` ADD `hPIC` VARCHAR( 255 ) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL DEFAULT '> ALTER TABLE `houses` ADD `hPIC` VARCHAR( 255 ) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL DEFAULT

MySQL said: Documentation

#1064 - 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 ''[/img]' at line 1

Link to comment
Share on other sites

Re: [Mccode][Free] House Pictures

ok thnx 03lacey

i just need this in v2 plz and then it shud work

This is just a easy modification to your game because I am a noobie and just started to learn PHP.

This modification is for House Pictures.

I have put it so the house picture is the same size as your display picture...You will have

to add seperate pictures on eahc house.

Lets Start:

Add this SQL:

You're unable to view this code.

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

 

Then open index.php:

Find:

You're unable to view this code.

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

 

Then add underneath:

You're unable to view this code.

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

 

Then hopefully it should work 8-)

If you have any problem PM me please.

I am hoping to give out more little free modifications.

Thanks Toxication

 

Link to comment
Share on other sites

Re: [Mccode][Free] House Pictures

that isnt hard to do open index.php and insert

You're unable to view this code.

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

under the notepad or somthing.

 

ok thnx 03lacey

i just need this in v2 plz and then it shud work

This is just a easy modification to your game because I am a noobie and just started to learn PHP.

This modification is for House Pictures.

I have put it so the house picture is the same size as your display picture...You will have

to add seperate pictures on eahc house.

Lets Start:

Add this SQL:

You're unable to view this code.

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

 

Then open index.php:

Find:

You're unable to view this code.

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

 

Then add underneath:

You're unable to view this code.

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

 

Then hopefully it should work 8-)

If you have any problem PM me please.

I am hoping to give out more little free modifications.

Thanks Toxication

 

Link to comment
Share on other sites

  • 2 weeks later...

Re: [Mccode][Free] House Pictures

I've added this and got the images working just fine :-D

But got a bit of a problem now trying to add new houses...

I get this mysql error...

QUERY ERROR: Column count doesn't match value count at row 1

Query was INSERT INTO houses VALUES(NULL, 'tent', '50000', '200')

any help would be appreciated :)

Link to comment
Share on other sites

Re: [Mccode][Free] House Pictures

I think i've fixed the problem :)

in staff_houses.php

i've changed

$db->query("INSERT INTO houses VALUES(NULL, '$name', '$price', '$will' )");

to

$db->query("INSERT INTO houses VALUES(NULL, '$name', '$price', '$will', 'change')");

and seems to work fine now...

Link to comment
Share on other sites

  • 4 months later...

Re: [Mccode][Free] House Pictures

 

anyone post a working version in one post there are so many bit in here and so disorganised cant seem to figure out what is right

Why don't you just try the first post? I have used it in the past, and it does work.

Link to comment
Share on other sites

Re: [Mccode][Free] House Pictures

 

ive tried but they dont work im on v2 btw so anyone can help me?

correct me if im wrong!

but this is how i did it and it worked for me

upload pics!

RUN SQL

 

You're unable to view this code.

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

 

then go to houses tables browse/hpic and for each house put in picture

You're unable to view this code.

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

 

change Defaulthouse to the name of the pic/house

now if you want your pics in estate.php find {$mp['hNAME']} and next to it or create a new <table> add {$mp['hPIC']}

hope this helps

maybe not the perfect idea but it worked for me

Link to comment
Share on other sites

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