anyway ?
#8

Quote:
Originally Posted by Mauzen
Посмотреть сообщение
You can put arrays in the enum instead of lots of single variables:

pawn Код:
enum TeamCars {
    Y[13],
    N[20],
    M[17],
    T[11]
}
To use them, call them like this:
variable[Y][2];
I feel like a newbie. (lol) I should probably make this into an array, right?

pawn Код:
pWeapon1,
    pAmmo1,
    pWeapon2,
    pAmmo2,
    pWeapon3,
    pAmmo3,
    pWeapon4,
    pAmmo4,
    pWeapon5,
    pAmmo5,
    pWeapon6,
    pAmmo6,
    pWeapon7,
    pAmmo7,
    pWeapon8,
    pAmmo8,
    pWeapon9,
    pAmmo9,
    pWeapon10,
    pAmmo10,
    pWeapon11,
    pAmmo11,
    pWeapon12,
    pAmmo12,
Reply


Messages In This Thread
anyway ? - by Gh0sT_ - 03.10.2010, 11:37
Re: anyway ? - by Mauzen - 03.10.2010, 11:45
Re: anyway ? - by Gh0sT_ - 03.10.2010, 15:40
Re: anyway ? - by Jeffry - 03.10.2010, 16:09
Re: anyway ? - by Gh0sT_ - 03.10.2010, 16:59
Re: anyway ? - by Gh0sT_ - 04.10.2010, 12:28
Re: anyway ? - by Gh0sT_ - 05.10.2010, 10:53
Re: anyway ? - by Scenario - 05.10.2010, 17:12
Re: anyway ? - by Mauzen - 05.10.2010, 17:28
Re: anyway ? - by Scenario - 05.10.2010, 17:31

Forum Jump:


Users browsing this thread: 1 Guest(s)