<function name="rpcf_user5_get_remaining_traffic" id="-0x2026"> <input> <integer name="user_id" /> </input> <output> <double name="traffic_remaining_mb" /> <double name="traffic_downloaded_mb" /> </output> </function>
function rpcf_user5_get_remaining_traffic($user_id) { //-0x2026 $ret=array(); if (!$this->connection->urfa_call(-0x2026)) { 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['traffic_remaining_mb'] = $x->DataGetDouble(); $ret['traffic_downloaded_mb'] = $x->DataGetDouble(); // $this->connection->urfa_get_data(); } return $ret; }