Error buy gifthc

Reikenz

Member
Apr 5, 2018
64
3
dsCBKbh.png


My RedeemClubGiftEvent.cs class
Code:
using Plus.HabboHotel.Catalog.HabboClub;

namespace Plus.Communication.Packets.Incoming.Catalog.HabboClub
{
    class RedeemClubGiftEvent : IPacketEvent
    {
        public void Parse(GameClient Session, ClientPacket Packet)
        {
            string GiftName = Packet.PopString();

            ItemData item = PlusEnvironment.GetGame().GetItemManager().GetItemByName(GiftName);
            //CatalogClubGift Gift = PlusEnvironment.GetGame().GetCatalog().GetHabboClub().GetClubGifts(item.Id);

            Session.GetHabbo().LastGiftTime = (int)PlusEnvironment.Now();
            Session.SendPacket(new PurchaseOKComposer());

            Session.SendNotification("hey " + GiftName);
        }
    }
}
Error:
Code:
23:33:48 - [ERROR] Exception:
System.OverflowException: L'opération arithmétique a provoqué un dépassement de capacité.
   à Plus.Communication.Packets.Incoming.Catalog.HabboClub.RedeemClubGiftEvent.Parse(GameClient Session, ClientPacket Packet) dans C:\Users\asus\Desktop\Release 2\Emulator Source\Communication\Packets\Incoming\Catalog\HabboClub\RedeemClubGiftEvent.cs:ligne 24
   à Plus.Communication.Packets.PacketManager.TryExecutePacket(GameClient Session, ClientPacket Packet) dans C:\Users\asus\Desktop\Release 2\Emulator Source\Communication\Packets\PacketManager.cs:ligne 158
   à Plus.HabboHotel.GameClients.GameClient.parser_onNewPacket(ClientPacket Message) dans C:\Users\asus\Desktop\Release 2\Emulator Source\HabboHotel\GameClients\GameClient.cs:ligne 68

And on buy hc in:
DnGIUyF.png

I not receive my hc i have a command cand give hc and on execute command i don't receive my hc
PS: i have not error for hc buy

Anyone can help me please ?
 

Users who are viewing this thread

Top