Raised This Month: $51 Target: $400
 12% 

Solved Arrays assiging same value to all elements


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
ish12321
Veteran Member
Join Date: May 2016
Old 04-20-2018 , 14:42   Arrays assiging same value to all elements
Reply With Quote #1

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 ?
__________________
['O|s|G'] | Death Wins a.k.a Ish Chhabra was here

Last edited by ish12321; 04-20-2018 at 22:49.
ish12321 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 07:38.


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