Posts: 2,262
Threads: 260
Joined: Mar 2009
Reputation:
0
The {0, ...} tells the compiler to set all of the array index values to 0.
For example if you accessed the 5th index, the value would be 0. The ... means recurring.
This code is redundant as all index values are already automatically set to 0.
Posts: 228
Threads: 25
Joined: Jan 2015
Reputation:
0
Lol, who ever added that line of code was drunk because it's a null statement to a preexisting statement
Posts: 125
Threads: 2
Joined: Jun 2014
Reputation:
0
It means that when you declare a variable which has a type that contain numbers (int, boolean in our case) their default value will be (0). Therefore setting it's default value to (0) is useless. When you declare a variable which has characters in it (string), their values are NULL for each and every character.
Posts: 1,046
Threads: 29
Joined: Mar 2010
Arrays in PAWN are initialized to zero by default.