const in function
Hey, how can I add a const parameter in function like:
PHP Code:
Quote:
|
Re: const in function
I guess Arkshine didn't add const for colors.
BTW change random_num(1, 3) to random(sizeof RandomColors). |
Re: const in function
So is there another way of getting (R,G,B) colors from my list and adding them to set_dhudmessage function ?
|
Re: const in function
May need to mod the function on your own. I've never seen\used it but:
PHP Code:
PHP Code:
|
Re: const in function
set_dhudmessage mimic set_hudmessage, meaning the color is not a string.
set_dhudmessage( red, green, blue, ... ); |
Re: const in function
how can I parse it ?
PHP Code:
|
Re: const in function
Why working with string ?
|
Re: const in function
- Was said that colors are not string and are 3 different params
- You mis-use parse native - If you use parse you would have to convert string colors into int colors. PHP Code:
|
Re: const in function
Quote:
|
| All times are GMT -4. The time now is 04:18. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.