Issue with getting data from xtmessage

Need help with SmartFoxServer? You didn't find an answer in our documentation? Please, post your questions here!

Moderators: Lapo, Bax

ProgramBoy
Posts: 30
Joined: 25 Aug 2016, 02:52

Re: Issue with getting data from xtmessage

Postby ProgramBoy » 27 Sep 2016, 17:04

Sorry for being so annoying, but I have one more question xD

When I try displaying a dataObject that is a string for example "level":"51" (I am talking about the 51) it won't display it in my text area.

Is this a bug?
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Issue with getting data from xtmessage

Postby Lapo » 27 Sep 2016, 17:31

In JSON notation
"level":51 represents a number
"level":"51" represents a string (the characters 5 and 1)

You should be able to trace those values to your console. If the show correctly there then you have to figure out what is wrong with the textfield.

cheers
Lapo
--
gotoAndPlay()
...addicted to flash games
ProgramBoy
Posts: 30
Joined: 25 Aug 2016, 02:52

Re: Issue with getting data from xtmessage

Postby ProgramBoy » 27 Sep 2016, 18:16

Hmm, yes I see why this happened.
I needed to check when the specific dataObj is received and then send the trace. :D

Amazing man, thank you again.

Return to “SmartFoxServer 1.x Discussions and Help”

Who is online

Users browsing this forum: No registered users and 48 guests