I had to loadPlayer and not, getPlayer ...
request.division = Spark.loadPlayer(challengedPlayer).getScriptData("division");
Sorry for new Topic.
Hi Flavio,
No problem. Glad to see you figured it out. If you have any other questions just let us know.
Regards,
Liam
Flávio Correia
I can't get the correct way to get my ScriptData("division") into var division.
I've tryed
AND
Nothing works, if I set manually
It Works well...
My ScriptData is already a number so it should work with Spark()
has it does here on PlayerConnectedMessage