==== XML ====
==== PHP ====
function rpcf_get_user_account_list($user_id) { //0x2033
$ret=array();
if (!$this->connection->urfa_call(0x2033)) {
print "Error calling function ". __FUNCTION__ ."\n";
return FALSE;
}
$packet = $this->connection->getPacket();
$packet->DataSetInt($user_id);
$this->connection->urfa_send_param($packet);
if ($x = $this->connection->urfa_get_data()) {
$count=$x->DataGetInt();
$ret['count']=$count;
for($i=0; $i<$count;$i++) {
$account['id']=$x->DataGetInt();
$account['name']=$x->DataGetString();
$ret['accounts'][]=$account;
}
// $this->connection->urfa_get_data();
}
return $ret;
}