Reikenz
Member
- Apr 5, 2018
- 64
- 3
![dsCBKbh.png](/proxy.php?image=https%3A%2F%2Fi.imgur.com%2FdsCBKbh.png&hash=5f7bffb4400c0f7854b130500a554e21)
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);
}
}
}
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](/proxy.php?image=https%3A%2F%2Fi.imgur.com%2FDnGIUyF.png&hash=2fd86abf10c05c56bcd92561c1afe4f6)
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 ?