Cronwerks MCCode/MCCodes Forums

Please login or register.

Login with username, password and session length

News:

Have errors in your coding or want something specific added to your game? Check out our paid support here.


This forum is now closed and has moved to a new location! Click here to find out why.

AuthorTopic: Estate Agent  (Read 593 times)

chinion

  • Basic Member
  • *
  • Reputation Power: 11
  • chinion has no influence.
  • Offline Offline
  • Posts: 10
    • View Profile
    • Email
Estate Agent
« on: April 05, 2011, 05:23:27 AM »
I know I shouldn't post it here, I just couldn't define where it should go...

I got a suggestion from one of my players asking for when it displays there house, it displays the price of it to.

I have this line of code for the house name..

Code: [Select]
print "Your current property: <b>{$mp['hNAME']}</b><br />
to display the price I put this, but it didn't work

Code: [Select]
print "Your current property: <b>{$mp['hNAME']}</b><b>{$np['hPRICE']}</b><br />
Can anyone suggest what I would do?
Logged

Cronus

  • Administrator
  • Senior Member
  • *****
  • Reputation Power: 2901
  • Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!
  • Offline Offline
  • Posts: 550
    • MSN Messenger - preston__08@hotmail.com
    • View Profile
    • WWW
Re: Estate Agent
« Reply #1 on: April 05, 2011, 06:31:30 AM »
Well your using v2.... it should go in the v2 board... not the sales board....?
Logged
My msn is preston__08@hotmail.com if anyone is interested, I am online frequently.

badj

  • Basic Member
  • *
  • Reputation Power: 0
  • badj has no influence.
  • Offline Offline
  • Posts: 1
    • View Profile
Re: Estate Agent
« Reply #2 on: August 05, 2011, 03:00:01 AM »
For a start, if $mp is the variable for the MySQL query (like with hNAME), then keeping it constant and not jumping up the alphabet with $np on hPRICE might help
Logged

windsor

  • Basic Member
  • *
  • Reputation Power: 7
  • windsor has no influence.
  • Offline Offline
  • Posts: 13
    • View Profile
Re: Estate Agent
« Reply #3 on: August 12, 2011, 11:23:48 PM »
print "Your current property: <b>".$mp['hNAME']."</b><b>".$np['hPRICE']."</b><br />";

make sure $np and $mp are the actual variables you wanna use.. i just concatenated a little better and closed the print statement
Logged
insanecriminal.com
 


This forum is now closed and has moved to a new location! Click here to find out why.