The code is unnecessarily tagging the mode variable with TYPE: all over. You also cannot format the names inside an enumeration as a string.
Example similar to what I assume you were trying to do:
Code:
enum Type
{
NONE = 0,
NEW = 1,
OLD = 2
}
new const TypeNames[Type][5] =
{
"None",
"New",
"Old"
}
new Type:Mode[33]
public client_connect( id )
{
Mode[id] = NONE
}
func()
{
new str[64]
formatex( str, 63, "You are [ %s ]", TypeNames[Mode[id]] )
// ...
}
__________________