Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

Multiple Enum Instances Per Player

$
0
0
Hi,

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

Code:

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:

Code:

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

Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>