Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Q&A
Avoid users wears non-purchasable clothing on mannequin. [Plus EMU R2]
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Hypothesis" data-source="post: 464238" data-attributes="member: 83881"><p>A way to fix this would be to add checks like previously stated.</p><p>You could do something like create a character array then use the foreach loop to check for if the clothing exists in the purchasable clothing manager.</p><p> </p><p>[CODE=csharp]char[] cha1 = new char[1] { '.' };</p><p> foreach (string str in Session.GetHabbo().Look.Split(cha1)) // loop</p><p> {</p><p> char[] cha2 = new char[1] { '-' }; // check for dash</p><p> if (PlusEnvironment.GetGame().GetCatalog().GetClothingManager().GetClothing(int.Parse(str.Split(cha2)[1])) != null) // check clothing manager</p><p> {</p><p> // return true</p><p> }</p><p> }[/CODE]</p></blockquote><p></p>
[QUOTE="Hypothesis, post: 464238, member: 83881"] A way to fix this would be to add checks like previously stated. You could do something like create a character array then use the foreach loop to check for if the clothing exists in the purchasable clothing manager. [CODE=csharp]char[] cha1 = new char[1] { '.' }; foreach (string str in Session.GetHabbo().Look.Split(cha1)) // loop { char[] cha2 = new char[1] { '-' }; // check for dash if (PlusEnvironment.GetGame().GetCatalog().GetClothingManager().GetClothing(int.Parse(str.Split(cha2)[1])) != null) // check clothing manager { // return true } }[/CODE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
Avoid users wears non-purchasable clothing on mannequin. [Plus EMU R2]
Top