Can anyone explain Flat File Databases
#1

I looked through the documentation the thign that confuses me is the format, and then save

Another thing is the Enums.

Say you have

enum PlayerInfo
{
age,
money,
sex,
race
};


Ok now would you do something like

PlayerInfo CharInfo[MAX_PLAYERS];

And then if you wanted to access CharInfo you would do

CharInfo[playerid][age] = 5;


?? Sorry I am C++ native !
Reply
#2

enum is basically a multi-dimensional array that has the second dimension replaced with words instead of the numbers to make it easier for the coder.

You can create an enum like so

pawn Код:
enum PlayerInfo
{
age,
money,
sex,
race
};
new CharInfo[MAX_PLAYERS][PlayerInfo];
I'm not exactly sure what you mean by Flat File databases.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)