- Joined
- Aug 7, 2013
- Messages
- 1,338
Hi,
I am trying to use the "this" keyword for a struct method, but I keep getting a syntax error. I am very confused.
Error: "this is not a type that allows . syntax"
I am trying to use the "this" keyword for a struct method, but I keep getting a syntax error. I am very confused.
JASS:
static method toString takes nothing returns string
return monsterId2Str[this.index]
endmethod
Error: "this is not a type that allows . syntax"