Can not buy rooms

Results 1 to 4 of 4
  1. #1
    Newbie Artiom is offline
    MemberRank
    Jan 2013 Join Date
    8Posts

    Can not buy rooms

    Hey,

    I'm using RehabCMS based on Rev.
    But when I want to buy a custom room on my website, I'm getting this error:

    Warning: Missing argument 2 for sendMUS(), called in C:\xampp\htdocs\app\tpl\skins\Habbo\rooms.php on line 218 and defined in C:\xampp\htdocs\app\tpl\skins\Habbo\rooms.php on line 2



    How can i fix this?
    Thanks!

    Regards,
    Artiom


  2. #2
    Ragezone Furni Releaser maartenvn is offline
    Grand MasterRank
    Dec 2012 Join Date
    Ragezone WorldLocation
    928Posts

    Re: Can not buy rooms

    Can you past line 218 of rooms.php

  3. #3
    Member Abidas is offline
    MemberRank
    Mar 2014 Join Date
    DenmarkLocation
    51Posts

    Re: Can not buy rooms

    Quote Originally Posted by maartenvn View Post
    Can you past line 218 of rooms.php
    I'll reply for him, if you dont mind

    The function is trying to send a mus, as you can see:
    PHP Code:
                                            if(isset($_POST['model_5'])){                                            $amount 5000//amount of credits.                                            $q = mysql_query("SELECT null FROM users WHERE credits >= '{$amount}' AND id = '{$_SESSION['user']['id']}' LIMIT 1")or die(mysql_error());                                            if(mysql_num_rows($q) > 0) {                                                    mysql_query("UPDATE users SET credits = credits - '1000' WHERE username = '{$_SESSION['user']['username']}'");                                                    mysql_query("INSERT INTO `rooms` (`id`, `roomtype`, `caption`, `owner`, `description`, `category`, `state`, `users_now`, `users_max`, `model_name`, `public_ccts`, `score`, `tags`, `icon_bg`, `icon_fg`, `icon_items`, `password`, `wallpaper`, `floor`, `landscape`, `allow_pets`, `allow_pets_eat`, `allow_walkthrough`, `allow_hidewall`, `wallthick`, `floorthick`, `achievement`) VALUES (NULL, 'private', 'Room Model 5', '{$_SESSION['user']['username']}', 'I bought this model for {$amount}!', '0', 'open', '0', '25', 'model_s5', '', '0', '', '1', '0', '', '', '0.0', '0.0', '0.0', '1', '0', '0', '0', '0', '0', '0')");                                                    echo '<div class = "alert-g">Model purchased successfully, reload client and it will be in your rooms.</div>';                                                    sendMUS('update_navigator');                                            }                                                                                        else{                                                echo "<div class = \"alert\">You need atleast {$amount} credits, buy some <a href = '{url}/shop'>here</a>.</div>";                                            }                                        } 
    regards, Abidas

  4. #4
    Grand Master asesinato is offline
    Grand MasterRank
    Aug 2014 Join Date
    601Posts

    Re: Can not buy rooms

    Because you do not have the room model in your database, you will need to create the room model for this to work.



Advertisement