19.05.2014, 07:39
Because there are no structs and classes in pawn, i want to use enum type in enum, but get error when using the "double" enum massive.
And the errors that i get are:
Is there any way to use somting like struct or class in pawn?
Code:
enum AnimationProperties { aId, aLib, aName }; enum AnimationsInfo { AnimationProperties:walk, AnimationProperties:walkHand, AnimationProperties:run, AnimationProperties:biss, }; new aInfo[AnimationsInfo]; forward SetAnimations(); public SetAnimations() { aInfo[walkHand][aId] = 0; // line 244 }
Quote:
(line 244): error 001: expected token: ";", but found "[" (line 244): error 029: invalid expression, assumed zero (line 244): warning 215: expression has no effect (line 244): error 001: expected token: ";", but found "]" |