Enums are freaking me out
#9

Quote:
Originally Posted by Sellize
Посмотреть сообщение
But why do I need to use Info while the enum is called PlayerInfo? that's what is bugging me
pawn Код:
enum PlayerInfo
{
    isMuted,
    isJailed,
}
 
new Info[MAX_PLAYERS][PlayerInfo];
pawn Код:
new Info[MAX_PLAYERS][PlayerInfo];
==> You need to use Info and not PlayerInfo.. playerinfo is the enum info is the variabile you will use..
You could do this if you want to use PlayerInfo and not Info :
pawn Код:
enum Info
{
    isMuted,
    isJailed,
}
 
new PlayerInfo[MAX_PLAYERS][Info];
Reply


Messages In This Thread
Enums are freaking me out - by Sellize - 20.01.2013, 13:24
Re: Enums are freaking me out - by Threshold - 20.01.2013, 13:26
Re: Enums are freaking me out - by Vince - 20.01.2013, 13:29
Re: Enums are freaking me out - by Sellize - 20.01.2013, 14:03
Re: Enums are freaking me out - by Threshold - 20.01.2013, 14:08
Re: Enums are freaking me out - by Sellize - 20.01.2013, 14:10
Re: Enums are freaking me out - by InfiniTy. - 20.01.2013, 14:10
Re: Enums are freaking me out - by Sellize - 20.01.2013, 14:13
Re: Enums are freaking me out - by InfiniTy. - 20.01.2013, 14:16
Re: Enums are freaking me out - by LarzI - 20.01.2013, 14:19

Forum Jump:


Users browsing this thread: 1 Guest(s)