29.11.2014, 10:17
I would try with this:
pawn Код:
enum gInfo
{
gName[24],
members
// ...
};
new GroupInfo[MAX_GROUPS][gInfo];
// saving function
for(new i = 0; i<MAX_GROUPS; i++)
{
format(string, sizeof(string), "UPDATE `groups` SET `Name`='%s' WHERE `GroupID`='%d'", i, DB_Escape(GroupInfo[i][gName]));
db_free_result(db_query(GroupDatabase, string));
}

