Quote:
Originally Posted by manicogmaing
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