In-game panel suggestions
#5

Go with either booleans or bit arrays.


pawn Код:
#define TOTAL_SETTINGS  10
#define P_SETTING_PM               0
#define P_SETTING_TD               1
#define CONTINUE HERE              2
pSettings[MAX_PLAYERS][TOTAL_SETTINGS char] (total settings would be the amount of settings you'd have)

// Now you can use it like this
pSettings[playerid][P_SETTING_PM] = 1;
This example is not correct it's more of a psuedo code with actual code hah, but I hope you get the idea. Look at the includes for bit arrays, I think ****** made y_bits in YSI and Ryder` also made an include for it.
Reply


Messages In This Thread
In-game panel suggestions - by Face9000 - 29.10.2012, 21:31
Re: In-game panel suggestions - by MP2 - 30.10.2012, 08:49
Re: In-game panel suggestions - by Face9000 - 30.10.2012, 12:22
Re: In-game panel suggestions - by Glint - 30.10.2012, 13:17
Re: In-game panel suggestions - by playbox12 - 30.10.2012, 13:58
Re: In-game panel suggestions - by Face9000 - 30.10.2012, 14:17
Re: In-game panel suggestions - by [HK]Ryder[AN] - 30.10.2012, 16:03
Re: In-game panel suggestions - by Face9000 - 30.10.2012, 18:46

Forum Jump:


Users browsing this thread: 1 Guest(s)