Jump to content
MakeWebGames

Recommended Posts

  • 2 months later...
Posted

Re: [mccode] Improved Estate Agents for v2.0

hey how do u make it so that it only displays up to a certain max will like my donator houses are at 250000 so i wont to set it to 200000 to show on the estate page

Posted

Re: [mccode] Improved Estate Agents for v2.0

Go to your database , find the houses table then edit accordingly.

Ok here it is for v1:

You're unable to view this code.

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

Posted

Re: [mccode] Improved Estate Agents for v2.0

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/battlefi/public_html/estate.php on line 4

Your current property:

The houses you can buy are listed below. Click a house to buy it.

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/battlefi/public_html/estate.php on line 47

  • 2 weeks later...
Posted

Re: [mccode] Improved Estate Agents for v2.0

 

You're unable to view this code.

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

 

that should be the right one for v2.0 as i have tried all the above and this works

  • 1 month later...
  • 1 year later...
  • 12 years later...
Posted
8 hours ago, Dustin Rohel said:

Need any sql???

Try:

CREATE TABLE `houses` (
  `hID` int(11) NOT NULL AUTO_INCREMENT,
  `hNAME` varchar(255) NOT NULL DEFAULT '',
  `hPRICE` int(11) NOT NULL DEFAULT '0',
  `hWILL` int(11) NOT NULL DEFAULT '0',
  `hsepics` varchar(255) NOT NULL,
  `sellprice` int(11) NOT NULL,
  PRIMARY KEY (`hID`),
  KEY `hID` (`hID`)
) ENGINE=MyISAM AUTO_INCREMENT=31 DEFAULT CHARSET=latin1;

Posted
6 hours ago, Dustin Rohel said:

Sql didn't work

Okay I will rewrite it

CREATE TABLE IF NOT EXISTS `houses` (
  `hID` int(11) NOT NULL AUTO_INCREMENT,
  `hNAME` varchar(255) NOT NULL DEFAULT '',
  `hPRICE` int(11) NOT NULL DEFAULT '0',
  `hWILL` int(11) NOT NULL DEFAULT '0',
  `hsepics` varchar(255) NOT NULL,
  `sellprice` int(11) NOT NULL,
  PRIMARY KEY (`hID`)

) DEFAULT CHARSET=utf8;

 

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