Forum Scripting I need some help to conect to bigdb please

Post your problems and discussions relating to scripting in Unity here.

I need some help to conect to bigdb please

Postby kaiserxen » March 5th, 2013, 11:58 pm

Hi.

im making a mobile game in unity, its not multiplayer but i need to store and read data from databases, when i readed about playerio BIGdb it sonded fairly simple to do, but im getting only errors now..

Can someone please help me with a small tutorial to create and read bigdb`s? im following the documentation but its not working for me, im always getting errors like object reference needed etc.. this was one of the scripts i was using:

Code: Select all
//Make new object and set some properties
DatabaseObject obj = new DatabaseObject();
obj.Set("username", "Adam");
obj.Set("location", "London");
obj.Set("age", 20);

//Create object in table Users with ConnectUserId as key
client.BigDB.CreateObject("Users", ConnectUserId, obj,
   delegate (DatabaseObject result){
      //Change a property and store the update when created
      result.Set("location", "Paris");
      result.Save(null);
   }
);
kaiserxen
 
Posts: 9
Joined: March 5th, 2013, 11:22 pm

Re: I need some help to conect to bigdb please

Postby Benjaminsen » March 6th, 2013, 11:48 am

What error are you getting?
Benjaminsen
.IO
 
Posts: 1444
Joined: January 12th, 2010, 11:54 am
Location: Denmark

Re: I need some help to conect to bigdb please

Postby kaiserxen » May 26th, 2013, 1:23 pm

Sorry for the delay, i had the problem solved using javascript, that was an old project. im working on c# now, could you please help we with room info? maxplayers etc.
kaiserxen
 
Posts: 9
Joined: March 5th, 2013, 11:22 pm


Return to Scripting



cron