Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

initializing enum array

$
0
0
Code:

enum e_my_array { e_my_array_id, Float:e_my_array_length }
stock my_array[5][e_my_array] = {{-1, 0.0}, ...};

Quote:

error 029: invalid expression, assumed zero
Compiles well when initialisation part removed. What's the problem?

Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>