- Joined
- Nov 30, 2007
- Messages
- 1,202
Could someone please tell me what I'm doing wrong here? Thanks in advance. :>
JASS:
library CityLibrary initializer Init
globals
private constant integer n_building_types = 10
private City array city
endglobals
struct City
string name
integer array building_type_count[n_building_types]
integer construction_count
group g
unit u
endstruct
private function Init takes nothing returns nothing
city[0] = City.create()
city[0].name = "Stockholm"
call BJDebugMsg("I live in " + city[0].name + "!")
endfunction
endlibrary