11.09.2011, 01:17
How can I use this?
An enum is simular to the multi-dimensional array, I'm assuming it's one but anyway. Quoting the wiki here:
pawn Код:
enum E_EXAMPLE (*= 2)
{
E_EXAMPLE_0 = 1,
E_EXAMPLE_1,
E_EXAMPLE_2
}
Quote:
Enumerations are a very useful system for representing large groups of data and modifying constants quickly. There are a few main uses - replacing large sets of define statements, symbolically representing array slots (these are actually the same thing but they look different) and creating new tags. |