Setting bool array to false
#3

When initialized variables - given no explicit value - will have the value 0/false. So in this case it's not even necessary. If you still want to explicitly initialize an entire array you can use the progressive initializer, also known as the ellipsis operator: ... (literally three dots).

PHP код:
new bool:fo_moved[32] = {false, ...}; 
For more information see pawn-lang.pdf, section Data and declarations, subsection Progressive initiallers for arrays.
Reply


Messages In This Thread
Setting bool array to false - by SystemX - 23.11.2015, 13:56
Re: Setting bool array to false - by AbyssMorgan - 23.11.2015, 13:59
Re: Setting bool array to false - by Vince - 23.11.2015, 14:00

Forum Jump:


Users browsing this thread: 1 Guest(s)