Jump to content
MakeWebGames

Recommended Posts

Posted

The usual, but I added the option to either show the houses as a list(like the original) or in a table. Not sure why I did this... lol.. but I did. Guess I figured some might like the original look of the list.

 

You're unable to view this code.

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

Posted

Re: [mccode v2] Estate Recode

Just added It Looks very nice :)

But I am having a little trouble.

If I add this should I re add my houses?

When I buy a house it says :

Congrats, you bought the ****** for $0!

And when you go to estate the prices do not show up right.

They show like this:

Stratusphere Cost: $5 Will Bar: 1000

When it actually costs $5000000

When I buy it, it still takes the correct money from me.

 

Also If someone makes a mistake and refreshes the page it takes the money twice lol

Posted

Re: [mccode v2] Estate Recode

Code Updated.

Sorry bout' that Strats, I accidentally put number_format(abs(@intval($np['hNAME']))) when it was supposed to be number_format(abs(@intval($np['hPRICE']))) .. yet it was being cast to an integer, so thats why it simply showed as 0.

Posted

Re: [mccode v2] Estate Recode

I stil have this:

# Jupiter Cost: $225Will Bar: 1500

# Sun Cost: $305Will Bar: 1750

# Milky Way Cost: $500Will Bar: 2250

Whats up with it?

Posted

Re: [mccode v2] Estate Recode

 

I stil have this:

# Jupiter Cost: $225Will Bar: 1500

# Sun Cost: $305Will Bar: 1750

# Milky Way Cost: $500Will Bar: 2250

Whats up with it?

 

What's wrong with it ?

Posted

Re: [mccode v2] Estate Recode

Those are the 3 best houses, sposed to cost 500 billion for the last one, 305b for sun, 225B for jupiter.

It's the problem strats had, wanna post up your whole new Estate? I put in the new thing you posted 2 or 3 posts back but still nothing

Posted

Re: [mccode v2] Estate Recode

 

Those are the 3 best houses, sposed to cost 500 billion for the last one, 305b for sun, 225B for jupiter.

It's the problem strats had, wanna post up your whole new Estate? I put in the new thing you posted 2 or 3 posts back but still nothing

Oh.. didn't realize the prices were so huge. I see the problem now.

Give me a min.

 

 

EDIT: original code updated, give that a try.

Posted

Re: [mccode v2] Estate Recode

If you want the number_format() to work properly and have your Prices display as $5,000 and not $5000

Use this...

 

You're unable to view this code.

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

 

Oh, and good job again BlueDevil :)

Posted

Re: [mccode v2] Estate Recode

 

You're unable to view this code.

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

 

It messed up after 20 billion. The numberformat doesn't work properly either

Posted

Re: [mccode v2] Estate Recode

Ok thanks, +1 for that. How would I make it so it doesn't cap off at 2.1 billion (make it bigint). I tried changing int to bigint but i got errors

# Private Space Shuttle Cost: $500000000Will Bar: 787

# Artificial Orbiting Moon Cost: $1000000000Will Bar: 823

# Private Artifical Orbiting Moon Cost: $2000000000Will Bar: 878

# Villa Cost: $2147483647Will Bar: 900

# Private Villa Cost: $2147483647Will Bar: 946

# The Moon Cost: $2147483647Will Bar: 1000

Posted

Re: [mccode v2] Estate Recode

If I sell any house above 2.1 billion, just refunds 2.1 billion. So in theory, with the best house on my game if you sold it you stand to lose like..497.9 billion.

Posted

Re: [mccode v2] Estate Recode

I'm not going to change this in the script, to include this, because I doubt everyone's economy is as bloated(I hope at least)

But simply cast the variable that is inserted in the database to bigint and also the variable that displays the price.

ie: abs( (bigint) $var);

Posted

Re: [mccode v2] Estate Recode

 

I'm not going to change this in the script, to include this, because I doubt everyone's economy is as bloated(I hope at least)

But simply cast the variable that is inserted in the database to bigint and also the variable that displays the price.

ie: abs( (bigint) $var);

Or abs((float) $var);

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