2017-01-30, 15:54
(2017-01-30, 12:08)joethefox Wrote: as you said, it's an array. Have you tried with
Code:$jsonarr = array(
"jsonrpc" => "2.0",
"method" => "Player.GetProperties",
"params" => array ( "playerid" =>1, "properties" => array("speed") ),
"id" => '1');
Yep, this is the code:
Code:
$jsonarr = array(
"jsonrpc" => "2.0",
"method" => "Player.GetProperties",
"params" => array ( "playerid" => 1, "properties" => array( "speed" )),
"id" => 1);
Code:
array(3) {
["error"]=>
array(3) {
["code"]=>
int(-32602)
["data"]=>
array(2) {
["method"]=>
string(20) "Player.GetProperties"
["stack"]=>
array(3) {
["message"]=>
string(28) "Invalid type string received"
["name"]=>
string(8) "playerid"
["type"]=>
string(7) "integer"
}
}
["message"]=>
string(15) "Invalid params.
I really have no idea why this is not working....