View Single Post
ESK0
BANNED
Join Date: May 2014
Location: Czech Republic
Old 04-25-2020 , 15:37   Re: [CS:GO] eItems API (CSGOItems replacement) | Ver: 0.7
Reply With Quote #16

Quote:
Originally Posted by manicogmaing View Post
Is this the correct way to get a random Pin, if yes then it's not working correctly.

As this is giving IDs that don't exist in items_game.txt

PHP Code:
g_iCoin[i] = GetRandomInt(eItems_GetPinDefIndexByPinNum(0), eItems_GetPinDefIndexByPinNum(g_iPinCount 1)); 
Hello, this is not correct way.

Code:
int iPinNum = GetRandomInt(0, eItems_GetPinsCount() -1);
int iPinDefIndex = eItems_GetPinDefIndexByPinNum(iPinNum);
This should be working

Last edited by ESK0; 04-25-2020 at 15:37.
ESK0 is offline