2 hel:
PHP Code:
function delete_item($id,$item_warehouse,$item_id,$item_amount,$char_name){
kick_char($id,$char_name);
$buf = pack("c", 13); //
$buf .= pack("i", $id); //char_id
$buf .= pack("i", $item_warehouse);
$buf .= pack("i", $item_id);
$buf .= pack("i", $item_amount);
$buf .= tounicode ( "GM" );
$answ=cached_new($buf);
if($answ==="x1")return "Item was successfully deleted.";
else return "<font color=red>Error:</font><font class=log_text>$answ</font> deleting item.";
}
Don't know, why my function didn't work 4 hours ago. Now, working fine.