Advertisement
Guest User

Untitled

a guest
Jan 16th, 2018
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.43 KB | None | 0 0
  1. #ifndef FULL_YANG
  2. long long nTotalMoney = 0;
  3.  
  4.     for (int n = 0; n < bItemCount; ++n)
  5.     {
  6.         nTotalMoney += static_cast<long long>((pTable+n)->price);
  7.     }
  8.  
  9.     nTotalMoney += static_cast<long long>(GetGold());
  10.  
  11.     if (GOLD_MAX <= nTotalMoney)
  12.     {
  13.         sys_err("[OVERFLOW_GOLD] Overflow (GOLD_MAX) id %u name %s", GetPlayerID(), GetName());
  14.         ChatPacket(CHAT_TYPE_INFO, LC_TEXT("You have too much yang in your inventory"));
  15.         return;
  16.     }
  17. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement