Data Storage - Can't figure it out
Chris sagði
fyrir löngu síðan | Færsla #2Can you give a bit more info on this? What error do you get, what happens when you put it online etc etc?
Færslu #3 eytt
mikomi sagði
fyrir löngu síðan | Færsla #4 | sem svar við #2OK, I think I am starting to understand this but I am still a bit lost. Before, I didn't really understand how the API actually worked but I followed one of the achievement tutorials and understand now - even though it may not look like anything is happeneing, in the case of an achievement, something is added to your nonoba account. Ok, so I have successfully implemented both a log in screen and an achievement into my game but I am still a little stuck on datastorage. I have inputed the code into their own frames (correctly, with the import command, etc) and to test the data storage I attempted to display the data I had stored as "somedata" - in this case I hoped to store a variable. Looking at the code you posted, Chris, for the score submit and the datastorage I placed this into my program:
"NonobaAPI.SetUserData("somedata", 10, function(response:String){
"
Unfortunately, this generates an error - is it not possible to store (numeric) variables? I also tried just using the example code you gave and attempted to display "somedata" in a text field but again, nothing appeared.
Again, many thanks for the help and advice - if nothing else I've figured out most of the other funtions...I think!
"NonobaAPI.SetUserData("somedata", 10, function(response:String){
"
Unfortunately, this generates an error - is it not possible to store (numeric) variables? I also tried just using the example code you gave and attempted to display "somedata" in a text field but again, nothing appeared.
Again, many thanks for the help and advice - if nothing else I've figured out most of the other funtions...I think!
Chris sagði
fyrir löngu síðan | Færsla #5 | sem svar við #4What error do you got?
Svara þræði
Skráðu þig núna til að svara þráðum
mikomi sagði
fyrir löngu síðan | Færsla #1Apologies for the noobish first questions but I am struggling with implementing the data storage from the API. I have added the example code into my game and everything appears to integrate fine but when I compile the game it tells me an error has occured. I found some tutorials for other parts of the API and this appears ti be normal but even when the game is put online, nothing appears to happen, even with the code inserted. Presumably, users would need to register an account to save the data, etc, etc? Sorry about this, am just lost at the moment!
Any help would be gratefully recieved