mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-07 21:55:42 +12:00
Make more accurate to pinto
This commit is contained in:
parent
a134ded412
commit
117ca8a38a
1 changed files with 6 additions and 2 deletions
|
@ -2374,11 +2374,15 @@ namespace HISP.Server
|
||||||
}
|
}
|
||||||
catch (Exception)
|
catch (Exception)
|
||||||
{
|
{
|
||||||
Logger.ErrorPrint(sender.LoggedinUser.Username + " Tried to send a invalid dynamic input (Money TRADE, amount is NaN)");
|
goto error;
|
||||||
|
}
|
||||||
|
if(amountMoney <= 0)
|
||||||
|
{
|
||||||
|
Logger.ErrorPrint(sender.LoggedinUser.Username + " tried to trade less than 0$");
|
||||||
}
|
}
|
||||||
|
|
||||||
if(sender.LoggedinUser.Money <= amountMoney)
|
if(sender.LoggedinUser.Money <= amountMoney)
|
||||||
{
|
{
|
||||||
|
error:;
|
||||||
byte[] tooMuchMoney = PacketBuilder.CreateChat(Messages.TradeMoneyOfferTooMuch, PacketBuilder.CHAT_BOTTOM_RIGHT);
|
byte[] tooMuchMoney = PacketBuilder.CreateChat(Messages.TradeMoneyOfferTooMuch, PacketBuilder.CHAT_BOTTOM_RIGHT);
|
||||||
sender.SendPacket(tooMuchMoney);
|
sender.SendPacket(tooMuchMoney);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Reference in a new issue