Sign In Register

How can we help you today?

Start a new topic
Answered

AccountDetailsRequest in realtime script

Hello, I need to access a script data of the player in the realtime script, I did try this:


RTSession.newRequest().createAccountDetailsRequest().setPlayerId(winnerID).send(function(response){

                currentWinerPoints = response.scriptData("currentPoints");

                });


and get this error:


"port": 5150, "level": "FATAL", "line": 60, "source": "rt_1.js", "message": null,


What I need to do?


Best Answer

Hello,


I did not get access but I did it differently, I sent what I wanted in session connect and I stored this in a variable,

Thanks



In fact the error is this
 "port": 5150,
 "level": "FATAL",
 "line": 40,
 "source": "rt_1.js",
 "message": "TypeError: response.scriptData is not a function",

I made mistake, the right is:

message: scriptData is not a function

Hey Rômulo Luiz,


Does this mean you fixed the problem?

Sean

Answer

Hello,


I did not get access but I did it differently, I sent what I wanted in session connect and I stored this in a variable,

Thanks

Login to post a comment