<function name="rpcf_user5_get_remaining_seconds" id="-0x2027"> <input> <integer name="user_id" /> </input> <output> <integer name="remaining_seconds" /> <integer name="downloaded_seconds" /> </output> </function>
function rpcf_user5_get_remaining_seconds($user_id) { //-0x2027 $ret=array(); if (!$this->connection->urfa_call(-0x2027)) { 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()) { $ret['remaining_seconds'] = $x->DataGetInt(); $ret['downloaded_seconds'] = $x->DataGetInt(); // $this->connection->urfa_get_data(); } return $ret; }