PDA

View Full Version : Importing gangzones from a SQLite database


TheBetaFox
09/04/2012, 03:00 PM
enum eZone {
Float:zMinX,
Float:zMinY,
Float:zMaxX,
Float:zMaxY,
zTeam,
zName[32]
}
new ZoneInfo[][eZone] = {
{2222.56, -1722.33, 2632.83, -1628.53, TEAM_GROVE, "GAN1"},
{2222.56, -1852.87, 2632.83, -1722.33, TEAM_GROVE, "GAN2"},
{2703.58, -2126.9, 2959.35, -1852.87, TEAM_GROVE, "PLS"},
{2137.4, 1703.23, 2437.39, 1783.23, TEAM_MAFIA, "CALI2"}
};

(I have 73 gangzones in the enum, actually, but I won't show all of them to you. :P)
What I want to know is how could I possibly import these gangzones from a SQLite database? I'm not good at SQL, and I use BUD for user management, so yeah... could I have an example of how could I do so? (and possibly of how could I change something in the 'team' column in the database?)
I don't want you to do the entire thing for me, all I need are some examples, so.. help? :3
The ones who help me the most will be rep'd (and you will get free digital pie, who doesn't want that?).