tChar->GetZ() not returning a string/#

Want to discuss changes to the UOX3 source code? Got a code-snippet you'd like to post? Anything related to coding/programming goes here!
Post Reply
User avatar
Jediman
UOX3 Apprentice
Posts: 177
Joined: Fri Jul 16, 2004 1:38 am
Location: New England
Has thanked: 0
Been thanked: 0
Contact:

tChar->GetZ() not returning a string/#

Post by Jediman »

Hello!

I'm working on the player output page system within cHTMLSystem.cpp and while tChar->GetX and GetY work just fine, GetZ does not!

X and Y are basically just strings in a sense (well #s but work out returning them as strings), but with Z, if the Z value in game is 0, nothing gets outputted. If its anything else, it seems like giberish is outputted instead.

Any thoughts?
Realms of Valor
- -=- http://www.realmsofvalor.com -=-
-=-Powered By UOX3-=-

Have you read the installation documentation?
http://www.uox3.org/documentation.shtml

'I have a moongate in my backpack' sounds like a bad Brittanian pickup line!
giwo
Developer
Posts: 1780
Joined: Fri Jun 18, 2004 4:17 pm
Location: California
Has thanked: 0
Been thanked: 0

Post by giwo »

X and Y return an unsigned short integer, Z returns a signed char. UString::number() should work fine on all of them.
User avatar
Jediman
UOX3 Apprentice
Posts: 177
Joined: Fri Jul 16, 2004 1:38 am
Location: New England
Has thanked: 0
Been thanked: 0
Contact:

Post by Jediman »

Thanks Giwo!
Realms of Valor
- -=- http://www.realmsofvalor.com -=-
-=-Powered By UOX3-=-

Have you read the installation documentation?
http://www.uox3.org/documentation.shtml

'I have a moongate in my backpack' sounds like a bad Brittanian pickup line!
Post Reply