[Tutorial] How to use enums [ BASICS]
#9

How can I use this?

pawn Код:
enum E_EXAMPLE (*= 2)
{
    E_EXAMPLE_0 = 1,
    E_EXAMPLE_1,
    E_EXAMPLE_2
}
An enum is simular to the multi-dimensional array, I'm assuming it's one but anyway. Quoting the wiki here:
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.

Reply


Messages In This Thread
How to use enums [ BASICS] - by Kyle - 10.09.2011, 22:10
Re: How to use enums [ BASICS] - by PrawkC - 10.09.2011, 22:13
Re: How to use enums [ BASICS] - by FireCat - 10.09.2011, 22:17
Re: How to use enums [ BASICS] - by Kyle - 10.09.2011, 22:21
Re: How to use enums [ BASICS] - by Zh3r0 - 10.09.2011, 22:39
Re: How to use enums [ BASICS] - by [M]onsieur - 10.09.2011, 22:43
Re: How to use enums [ BASICS] - by Kyle - 10.09.2011, 23:01
Re: How to use enums [ BASICS] - by Zh3r0 - 10.09.2011, 23:06
Re: How to use enums [ BASICS] - by Lorenc_ - 11.09.2011, 01:17
Re: How to use enums [ BASICS] - by Ehab1911 - 13.09.2011, 11:16

Forum Jump:


Users browsing this thread: 1 Guest(s)