Arrays assiging same value to all elements
Hey,
I've a boolean multidimensional array : new bool:array[33][33]; Now, I want to set all elements of array[id] to true. One way is using looping. Is there any other way to do it in single line, something like array[id] = {false, false, ...}; without having to type false 33 times ? |
Re: Arrays assiging same value to all elements
You can do that = { x , x, ...} number when declaring only.
You can use arrayset() at runtime. |
Re: Arrays assiging same value to all elements
Quote:
|
| All times are GMT -4. The time now is 04:34. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.