Adidas_Dagestanec |
Дата: Четверг, 24.11.2016, 15:59 | Сообщение # 1
|
Любитель
Сообщений: 48
Статус: Offline
|
Данные загружаются, но не сохраняются, что я пропустил?
Моя загрузка:
Цитата 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++;
Мое сохранение
Цитата mysql_format(DATABASE, QUERY, sizeof(QUERY), "UPDATE `"TABLE_GROOP"` SET "); format(temp,sizeof(temp),"`gName`= '%s',",GroupsInfo[i][gName]), strcat(QUERY,temp,sizeof(QUERY)); format(temp,sizeof(temp),"`gSpawnx`= '%f',",GroupsInfo[i][gSpawnx]), strcat(QUERY,temp,sizeof(QUERY)); format(temp,sizeof(temp),"`gSpawny`= '%f',",GroupsInfo[i][gSpawny]), strcat(QUERY,temp,sizeof(QUERY)); format(temp,sizeof(temp),"`gSpawnz`= '%f',",GroupsInfo[i][gSpawnz]), strcat(QUERY,temp,sizeof(QUERY)); format(temp,sizeof(temp),"`gEntrancex`= '%f',",GroupsInfo[i][gEntrancex]), strcat(QUERY,temp,sizeof(QUERY)); format(temp,sizeof(temp),"`gEntrancey`= '%f',",GroupsInfo[i][gEntrancey]), strcat(QUERY,temp,sizeof(QUERY)); format(temp,sizeof(temp),"`gEntrancez`= '%f',",GroupsInfo[i][gEntrancez]), strcat(QUERY,temp,sizeof(QUERY)); format(temp,sizeof(temp),"`gExitx`= '%f',",GroupsInfo[i][gExitx]), strcat(QUERY,temp,sizeof(QUERY)); format(temp,sizeof(temp),"`gExity`= '%f',",GroupsInfo[i][gExity]), strcat(QUERY,temp,sizeof(QUERY)); format(temp,sizeof(temp),"`gExitz`= '%f',",GroupsInfo[i][gExitz]), strcat(QUERY,temp,sizeof(QUERY)); format(temp,sizeof(temp),"`gInt`= '%i',",GroupsInfo[i][gInt]), strcat(QUERY,temp,sizeof(QUERY)); format(temp,sizeof(temp),"`gBalance`= '%i',",GroupsInfo[i][gBalance]), strcat(QUERY,temp,sizeof(QUERY)); format(temp,sizeof(temp),"`gMats`= '%i',",GroupsInfo[i][gMats]), strcat(QUERY,temp,sizeof(QUERY)); format(temp,sizeof(temp),"`gDrugs`= '%i',",GroupsInfo[i][gDrugs]), strcat(QUERY,temp,sizeof(QUERY)); format(temp,sizeof(temp),"`gHel`= '%i'",GroupsInfo[i][gHel]), strcat(QUERY,temp,sizeof(QUERY)); format(temp,sizeof(temp)," WHERE gID = '%i'",GroupsInfo[i][gID]), strcat(QUERY,temp,sizeof(QUERY)); mysql_function_query(DATABASE, QUERY, true, "", "");
В mysql_log ошибок нет
Сообщение отредактировал Adidas_Dagestanec - Четверг, 24.11.2016, 16:00 |
|
|
|