Quote:
Originally Posted by lexzor
try
PHP Code:
stock probItems(const xEnumProbItems:array2D[][], array2DSize)
|
it makes no sense because it would be dependent on 'xEnumProbItems', the idea is to make it dynamic,
what i need is this:
Call
PHP Code:
probItems(xProbItems, sizeof(xProbItems), PROB_ITEM_CHANCE)
PHP Code:
stock probItems(const array2D[][], array2DSize, columChanceToCheck)
for(new i = 0; i < array2DSize; i++)
totalProbability += array2D[i][columChanceToCheck]
but when i try the value is not correct
__________________