<function name="rpcf_user5_card_payment_new" id="-0x4045"> <input> <integer name="account_id" /> <integer name="card_id" /> <string name="secret" /> </input> <output> <integer name="result" /> <if variable="result" value="0" condition="eq"> <string name="error" /> </if> </output> </function>
function rpcf_user5_card_payment_new($account_id,$card_id,$secret) { //-0x4045 $ret=0; if (!$this->connection->urfa_call(-0x4045)) { print "Error calling function ". __FUNCTION__ ."\n"; return FALSE; } $packet = $this->connection->getPacket(); $packet->DataSetInt($account_id); $packet->DataSetInt($card_id); $packet->DataSetString($secret); $this->connection->urfa_send_param($packet); if ($x = $this->connection->urfa_get_data()) { $ret=$x->DataGetInt(); if($ret==0) $ret=$x->DataGetString(); } else { return -1; } return $ret; }