Array must be indexed...
Code:
PHP Code:
PHP Code:
|
Re: Array must be indexed...
Jeez...
You are creating 3 (static) array variables and trying to use them independently without an index. Just for the sake of record, what are you really trying to achieve? |
Re: Array must be indexed...
It's pretty clear, split a string of the form "r g b"("255 255 255" for example) in integers representing the r g b channels value for the color.
You should assign str_to_float(*) to a/b/c, not r/g/b. |
Re: Array must be indexed...
thEsp, he's probably setting HUD color using a string cvar "255 0 0", or something, and needs the individual values.
Shadows Adi, consider using argparse |
Re: Array must be indexed...
Quote:
|
Re: Array must be indexed...
Quote:
|
| All times are GMT -4. The time now is 02:59. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.