Domenicano_RolePlay
Новичок
Привет всем! У меня возникла проблемка! Не сохраняются данные!
Моя загрузка:
Мое сохранение:
Функция вызова сохранения:
p.s
UPDATE `groop` SET `gName`= '',`gSpawnx`= '0.000000',`gSpawny`= '0.000000',`gSpawnz`= '0.000000',`gEntrancex`= '0.000000',`gEntrancey`= '0.000000',`gEntrancez`= '0.000000',`gExitx`= '0.000000',`gExity`= '0.000000',`gExitz`= '0.000000',`gInt`= '0',`gBalance`= '0',`gMats`= '0',`gDrugs`= '0',`gHel`= '0' WHERE gID = '0'
Моя загрузка:
PHP:
new a;
for(x = 1; x <= r; x++)
{
a = cache_get_field_content_int(x-1,"gID");
cache_get_row(x-1,1, GroupsInfo[a][gName], DATABASE, MAX_PLAYER_NAME);
GroupsInfo[a][gSpawnx] = cache_get_row_float(x-1,2, DATABASE);
GroupsInfo[a][gSpawny] = cache_get_row_float(x-1,3, DATABASE);
GroupsInfo[a][gSpawnz] = cache_get_row_float(x-1,4, DATABASE);
GroupsInfo[a][gEntrancex] = cache_get_row_float(x-1,5, DATABASE);
GroupsInfo[a][gEntrancey] = cache_get_row_float(x-1,6, DATABASE);
GroupsInfo[a][gEntrancez] = cache_get_row_float(x-1,7, DATABASE);
GroupsInfo[a][gExitx] = cache_get_row_float(x-1,8, DATABASE);
GroupsInfo[a][gExity] = cache_get_row_float(x-1,9, DATABASE);
GroupsInfo[a][gExitz] = cache_get_row_float(x-1,10, DATABASE);
GroupsInfo[a][gInt] = cache_get_row_int(x-1,11, DATABASE);
GroupsInfo[a][gBalance] = cache_get_row_int(x-1,12, DATABASE);
GroupsInfo[a][gMats] = cache_get_row_int(x-1,13, DATABASE);
GroupsInfo[a][gDrugs] = cache_get_row_int(x-1,14, DATABASE);
GroupsInfo[a][gHel] = cache_get_row_int(x-1,15, DATABASE);
TotalGroup++;
}
PHP:
case 7:
{
mysql_format(DATABASE,QUERY,sizeof(QUERY), "UPDATE `"TABLE_GROOP"` SET `gName`= '%s',`gSpawnx`= '%f',`gSpawny`= '%f',`gSpawnz`= '%f',`gEntrancex`= '%f',`gEntrancey`= '%f',`gEntrancez`= '%f',`gExitx`= '%f',`gExity`= '%f',`gExitz`= '%f',`gInt`= '%d',`gBalance`= '%d',`gMats`= '%d',`gDrugs`= '%d',`gHel`= '%d' WHERE gID = '%d'",
GroupsInfo[i][gName],GroupsInfo[i][gSpawnx],GroupsInfo[i][gSpawny],GroupsInfo[i][gSpawnz],GroupsInfo[i][gEntrancex],GroupsInfo[i][gEntrancey],GroupsInfo[i][gEntrancez],GroupsInfo[i][gExitx],GroupsInfo[i][gExity],GroupsInfo[i][gExitz],GroupsInfo[i][gInt],GroupsInfo[i][gBalance],GroupsInfo[i][gMats],GroupsInfo[i][gDrugs],GroupsInfo[i][gHel],GroupsInfo[i][gID]);
mysql_function_query(DATABASE, QUERY, true, "", "");
printf("%s",QUERY);
}
PHP:
for(new i = 1; i <= TotalGroup; i++) SaveMySQL(7,i);
UPDATE `groop` SET `gName`= '',`gSpawnx`= '0.000000',`gSpawny`= '0.000000',`gSpawnz`= '0.000000',`gEntrancex`= '0.000000',`gEntrancey`= '0.000000',`gEntrancez`= '0.000000',`gExitx`= '0.000000',`gExity`= '0.000000',`gExitz`= '0.000000',`gInt`= '0',`gBalance`= '0',`gMats`= '0',`gDrugs`= '0',`gHel`= '0' WHERE gID = '0'
