Multiple Enum Instances Per Player
#1

Hi,

So say I want to create bank accounts for every player. But maybe I want multiple bank accounts. I have an enum:

Код:
enum pBankAccount{   //bank account enum
	id,
	character_id,
	account_no,
	cash
}
new BankAccount[MAX_PLAYERS][pBankAccount];
If I wanted each player to have multiple bank accounts loaded, so I could access them as such:

Код:
BankAccount[playerid][BankAccountId][cash];
How would I go about doing this in the set up of the enum? Not sure if ive explained that very well, but any help you can give Id appreciate.

Thanks
Reply
#2

new BankAccount[MAX_PLAYERS][MULTIPLE!][pBankAccount];
Reply
#3

Hi all,

Yeah after I posted this, I was looking at it and did exactly as you said. Then came back here to see you'd suggested it...bit of a dull moment from myself haha. None the less, thanks for the help/
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)