Closed BOOMdeyada closed 11 years ago
Kind of hard to say since there isn't a lot of code to go off of. What does the JSON return? According to the error, an object was referenced when it wasn't initilized, like Check = new SteamID(); Maybe something to do with this line:
SteamID = new SteamID((ulong)o["SteamID"]);
You cannot have a variable be named the same as a class, or it screwed it up. Just try like SteamID x = blah blah and see if it fixes it. If so, thats what happened.
Hey, I know im missing something stupid, maybe you guys could help me out?
I am downloading a JSON string from a website and parsing it, in that string is a steamID, which according to my console output, is valid.
I then call the SteamID variable in my SimpleUserHandler.cs
and here:
And here is my console output:
Where line 84 is AddFriend(check.SteamID) Also, when I call the AddFriend inside of my OnJSONGet, it spits our SteamIDs in the STEAM_ format, where in my json it is in the 64 bit community url format.
Any help would be great!