Advertisement
djhonga2001

Untitled

Apr 22nd, 2016
416
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. int newAmount = 0;
  2.  
  3. std::vector<char*> playerMpSlots =
  4. {
  5. "MP0",
  6. "MP1",
  7. };
  8.  
  9. std::vector<char*> money_possible =
  10. {
  11. "PVC_WALLET_BALANCE",
  12. "EVC_WALLET_BALANCE",
  13. "PVC_BANK_BALANCE",
  14. "EVC_BANK_BALANCE",
  15. "PVC_BALANCE",
  16. "EVC_BALANCE",
  17. "EVC_WALLET_BALANCE_CLEARED",
  18. "EVC_BANK_BALANCE_CLEARED",
  19. };
  20. if (NETWORK::NETWORK_IS_SESSION_STARTED())
  21. {
  22. for (auto i = 0; i < money_possible.size(); i++)
  23. {
  24. for (int j = 0; j < 3; j++)
  25. {
  26. char statNameFull[32];
  27. sprintf_s(statNameFull, "%s_%s", playerMpSlots[j], money_possible[i]);
  28. Hash hash = GAMEPLAY::GET_HASH_KEY(statNameFull);
  29. STATS::STAT_GET_INT(hash, &newAmount, -1);
  30. if (newAmount) goto found;
  31. }
  32. found: break;
  33. }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement