Raised This Month: $ Target: $400
 0% 

Solved pass 'enum' as parameter


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
wilian159
Member
Join Date: Dec 2013
Old 07-24-2022 , 18:02   Re: pass 'enum' as parameter
Reply With Quote #9

Quote:
Originally Posted by lexzor View Post
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(xProbItemssizeof(xProbItems), PROB_ITEM_CHANCE

PHP Code:
stock probItems(const array2D[][], array2DSizecolumChanceToCheck)
    for(new 
0array2DSizei++)
        
totalProbability += array2D[i][columChanceToCheck
but when i try the value is not correct
__________________
wilian159 is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 15:40.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode