[Plusemu] Group fix

Results 1 to 5 of 5
  1. #1
    Developer Eronisch is offline
    MemberRank
    Jul 2009 Join Date
    The NetherlandsLocation
    1,328Posts

    [Plusemu] Group fix

    Does anyone have a fix for groups?

    I noticed that there is a invalid cast when you login and have a group.


  2. #2
    Unspoiled Perfection AKllX is offline
    MemberRank
    Aug 2007 Join Date
    @ akllxprojectLocation
    366Posts

    Re: [Plusemu] Group fix

    Most of cast exceptions in Habbo emulators are caused by casting and data column into an uint type. It should be explicitly converted. I mean, you should change all '(uint)' to 'Convert.ToUInt32(data-column)'

  3. #3
    Apprentice Galaxybeta is offline
    MemberRank
    Aug 2013 Join Date
    17Posts

    Re: [Plusemu] Group fix

    Quote Originally Posted by AKllX View Post
    Most of cast exceptions in Habbo emulators are caused by casting and data column into an uint type. It should be explicitly converted. I mean, you should change all '(uint)' to 'Convert.ToUInt32(data-column)'
    '(uint)' to 'Convert.ToUInt32(data-column)'
    Using this fix will make it work?

  4. #4
    Unspoiled Perfection AKllX is offline
    MemberRank
    Aug 2007 Join Date
    @ akllxprojectLocation
    366Posts

    Re: [Plusemu] Group fix

    Quote Originally Posted by Galaxybeta View Post
    '(uint)' to 'Convert.ToUInt32(data-column)'
    Using this fix will make it work?
    That's just a theorical answer based in theorical C#. In my conception for high level programming languages you should cast only objects on boxing and unboxing. For MySQL data I would use Convert() because if there is some NULL data to be converted it won't throw an exception but a default value instead. Of course in that case your problem is bigger.

  5. #5
    Apprentice Galaxybeta is offline
    MemberRank
    Aug 2013 Join Date
    17Posts

    Re: [Plusemu] Group fix

    Alright, Hmm which would you say would be a easy way how to make voids in c#? Like a tut?



Advertisement