17.04.2012, 01:22
Why doesn't this make the group update?
pawn Код:
stock SaveGroup(groupid)
{
new query[500];
format(query, sizeof(query), "UPDATE groups SET name = '%s', motd = '%s', extx = %f, exty = %f, extz = %f, intx = %f, inty = %f, intz = %f, interior = %d, virtualworld = %d, safex = %f, safey = %f, safez = %f, title = '%s', title2 = '%s', title3 = '%s', title4 = '%s', title5 = '%s', title6 = '%s' WHERE id = %d", gStats[groupid][Name], gStats[groupid][MOTD], gStats[groupid][Ext][0], gStats[groupid][Ext][1], gStats[groupid][Ext][2], gStats[groupid][Int][0], gStats[groupid][Int][1],
gStats[groupid][Int][2], gStats[groupid][Interior], gStats[groupid][VirtualWorld], gStats[groupid][Safe][0], gStats[groupid][Safe][1], gStats[groupid][Safe][2], gStats[groupid][Title][0], gStats[groupid][Title][1], gStats[groupid][Title][2], gStats[groupid][Title][3], gStats[groupid][Title][4], gStats[groupid][Title][5], groupid);
mysql_query(query);
}