Accessing a packed string in an array that uses an enumerator gives warnings and errors such as:
warning 215: expression has no effect
error 001: expected token: ";", but found "{"
warning 215: expression has no effect
error 001: expected token: ";", but found "}"
warning 217: loose indentation
error 029: invalid expression, assumed zero
Minimal complete verifiable example (MCVE):
enum data
{
packed_string[32 char]
};
main()
{
new test[data];
test[packed_string]{0} = '1';
}
Changing the first dimension to 0 or data:0 doesn't fix it either. However, changing the array's declaration to test[1][32 char] works.
Workspace Information:
Compiler version: 3.10.10
Command line arguments provided (or sampctl version): None
Issue description:
Accessing a packed string in an array that uses an enumerator gives warnings and errors such as:
Minimal complete verifiable example (MCVE):
Changing the first dimension to
0
ordata:0
doesn't fix it either. However, changing the array's declaration totest[1][32 char]
works.Workspace Information: