Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int newAmount = 0;
- std::vector<char*> playerMpSlots =
- {
- "MP0",
- "MP1",
- };
- std::vector<char*> money_possible =
- {
- "PVC_WALLET_BALANCE",
- "EVC_WALLET_BALANCE",
- "PVC_BANK_BALANCE",
- "EVC_BANK_BALANCE",
- "PVC_BALANCE",
- "EVC_BALANCE",
- "EVC_WALLET_BALANCE_CLEARED",
- "EVC_BANK_BALANCE_CLEARED",
- };
- if (NETWORK::NETWORK_IS_SESSION_STARTED())
- {
- for (auto i = 0; i < money_possible.size(); i++)
- {
- for (int j = 0; j < 3; j++)
- {
- char statNameFull[32];
- sprintf_s(statNameFull, "%s_%s", playerMpSlots[j], money_possible[i]);
- Hash hash = GAMEPLAY::GET_HASH_KEY(statNameFull);
- STATS::STAT_GET_INT(hash, &newAmount, -1);
- if (newAmount) goto found;
- }
- found: break;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement