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
Plus Emulator Error
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="JarnoHSTR" data-source="post: 426818" data-attributes="member: 79282"><p>Hi there</p><p></p><p>I'm trying to put the talentracker from cloud server into my own edited plus emulator</p><p>But whenever i try to null something it gives me an error? </p><p>Error:</p><p>[SPOILER="Error"]</p><p>Cannot convert null to 'Talent' because it is a non-nullable value type </p><p>\HabboHotel\Achievements\AchievementManager.cs 199</p><p>[/SPOILER]</p><p>[SPOILER="Error 2"]</p><p>Cannot convert null to 'Talent' because it is a non-nullable value type </p><p>\HabboHotel\Achievements\Talents\TalenManager.cs 141</p><p>[/SPOILER]</p><p></p><p>Can somebody help me with this?</p><p>[doublepost=1516451738,1516451629][/doublepost][SPOILER="Code for first error"]</p><p>Talent talent = null;</p><p>[/SPOILER]</p><p>[SPOILER="Code for second error"]</p><p> public bool TryGetTalent(string AchGroup, out Talent talent)</p><p> {</p><p> foreach (Talent current in Talents.Values)</p><p> {</p><p> if (current.AchievementGroup == AchGroup)</p><p> {</p><p> talent = current;</p><p> return true;</p><p> }</p><p> }</p><p> talent = null;</p><p> return false;</p><p> }</p><p>[/SPOILER]</p><p>[doublepost=1516455261][/doublepost]nevermind i fixed it ! <img src="/styles/default/xenforo/smilies/emojione/smile.png" class="smilie" loading="lazy" alt=":)" title="Smile :)" data-shortname=":)" /></p></blockquote><p></p>
[QUOTE="JarnoHSTR, post: 426818, member: 79282"] Hi there I'm trying to put the talentracker from cloud server into my own edited plus emulator But whenever i try to null something it gives me an error? Error: [SPOILER="Error"] Cannot convert null to 'Talent' because it is a non-nullable value type \HabboHotel\Achievements\AchievementManager.cs 199 [/SPOILER] [SPOILER="Error 2"] Cannot convert null to 'Talent' because it is a non-nullable value type \HabboHotel\Achievements\Talents\TalenManager.cs 141 [/SPOILER] Can somebody help me with this? [doublepost=1516451738,1516451629][/doublepost][SPOILER="Code for first error"] Talent talent = null; [/SPOILER] [SPOILER="Code for second error"] public bool TryGetTalent(string AchGroup, out Talent talent) { foreach (Talent current in Talents.Values) { if (current.AchievementGroup == AchGroup) { talent = current; return true; } } talent = null; return false; } [/SPOILER] [doublepost=1516455261][/doublepost]nevermind i fixed it ! :) [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
Plus Emulator Error
Top