Array Invalid (Bug Perhaps)?
Code:
The compiler reads the Code:
Also says Code:
Now I understand why this is occuring, because there is a possibility of a negetive value being the array size, but is there an alternative to achiving this? I'm sick at home today, so may be I'm just not thinking clear enough to figure this out on my own right now. Thanks in advance. -------------- Aye....even tried absolute value...this is somewhat of an annoynce. Code:
How the hell does it assume zero when it's the absolute value +10? :S Bug perhaps? --------------------------------- Even tried const variable + 10.... Code:
|
Re: Array Invalid (Bug Perhaps)?
You just can't do that. You need to use constants when defining arrays.
|
Re: Array Invalid (Bug Perhaps)?
Quote:
Perhaps a better explanation? I just don't see why it is limited to only constant sizes. |
Re: Array Invalid (Bug Perhaps)?
How do you do it when creating a stock function?
|
Re: Array Invalid (Bug Perhaps)?
Code:
But I believe that is something different. The function can use that variable, but it's not necessarily creating it, it's returning values to the variable that IS created. Right? I just don't understand why I cannot create a dynamic array size :S |
Re: Array Invalid (Bug Perhaps)?
Quote:
But you can use one of the metamod plugins who can this. http://forums.alliedmods.net/showthread.php?t=43866 |
| All times are GMT -4. The time now is 22:24. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.