Would this work?
#1

pawn Код:
enum fBCPD
{
    Recruit[128],
    Officer[128],
    Deputy[128],
    Sheriff[128]
}

enum pService
{
    Agent[128],
    Director[128]
}
new Faction[MAX_PLAYERS][pBCPD][pService]
Would that work? Or is there a more efficient way?
Thanks
Reply
#2

bump
Reply
#3

Do you ask us if that would work? Just test it and you'll see if it works or not.
Reply
#4

i mean is there a more efficient way of using enums?
Reply
#5

yes, but use [24] not 128 as I understand you want put names there, right?
Reply
#6

Quote:
Originally Posted by ikey07
Посмотреть сообщение
yes, but use [24] not 128 as I understand you want put names there, right?
They're the rank names, i think i should do

pawn Код:
enum pBCPD
{
Recruit=0[24],
Officer=1[24],
Deputy=2[24],
Sheriff=4[24]
}
new Faction[MAX_PLAYERS][pBCPD][pService]

So ill check
pawn Код:
if[Faction][pBCPD] != 1 // Is an officer?
SendClientMessage(palyerid,-1,"You are logged in as an officer"); // Example
Would the check work like that?

Or maybe even
pawn Код:
enum pFaction
{
Faction[2],
Rank[4]
}
Also another ..
pawn Код:
if[playerid][Faction][Faction=1] && [playerid][Faction][Rank=3] // Player is a Deputy
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)