回答編集履歴
1
chara_id
answer
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
int colCount = sqlite3_column_count(pStmt);
|
1
|
+
int colCount = sqlite3_column_count(pStmt);
|
2
2
|
while (sqlite3_step(pStmt) == SQLITE_ROW) {
|
3
|
+
std::string chara_id = cocos2d::StringUtils::format("%s", sqlite3_column_text(pStmt, 0));
|
3
4
|
for (int col = 0; col < colCount; col++) {
|
4
5
|
std::string name = sqlite3_column_name(pStmt, col);
|
5
6
|
std::string value = cocos2d::StringUtils::format("%s", sqlite3_column_text(pStmt, col));
|
6
|
-
std::string chara_id = cocos2d::StringUtils::format("%s", sqlite3_column_text(pStmt, 0));
|
7
7
|
GameManager::getInstance().characterInfo[chara_id][name] = value;
|
8
8
|
}
|
9
9
|
}
|