You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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[32char]
};
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
Operating System: Windows
The text was updated successfully, but these errors were encountered:
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:
The text was updated successfully, but these errors were encountered: