Keep in mind that in AGS assignments always have to be inside a function so it knows when you want the code to be run. Integer-based types (bool, char, short, int, and any enum type) and floats can be initialized as you might do in other languages, but pointer types (including String), arrays, and struct members can't be initialized directly (unless in the case of a pointer/String it is being defined within a function).