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:
Can somebody help me with this?
nevermind i fixed it !
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:
Cannot convert null to 'Talent' because it is a non-nullable value type
\HabboHotel\Achievements\AchievementManager.cs 199
\HabboHotel\Achievements\AchievementManager.cs 199
Cannot convert null to 'Talent' because it is a non-nullable value type
\HabboHotel\Achievements\Talents\TalenManager.cs 141
\HabboHotel\Achievements\Talents\TalenManager.cs 141
Can somebody help me with this?
Talent talent = null;
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;
}
{
foreach (Talent current in Talents.Values)
{
if (current.AchievementGroup == AchGroup)
{
talent = current;
return true;
}
}
talent = null;
return false;
}
nevermind i fixed it !