AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Empty bool? (https://forums.alliedmods.net/showthread.php?t=236975)

Buckshot 03-15-2014 10:43

Empty bool?
 
So, let's say i have this bool "Iamabool[32]" And every single one of the 32 are true. How do i set ALL of them to false without having to set each to false one by one? I'd like to know how to do the same with arrays etc. Empty them and set it to zero. Thanks!


edit: I've heard something called EOS is supposed to do this, but i don't know how to use it..

micapat 03-15-2014 10:47

Re: Empty bool?
 
arrayset( variable, value_to_set, variable_size );

Buckshot 03-15-2014 10:51

Re: Empty bool?
 
Quick response, just what i needed. Thanks!


All times are GMT -4. The time now is 06:00.

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