23.01.2014, 10:38
@Misiur: yes....
[21:17:13] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('0') [21:17:13] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('0') [21:17:13] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('0') [21:17:13] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('0') [21:17:13] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('0') [21:17:13] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('0') [21:17:13] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('0') [21:17:13] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('0') [21:17:13] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('0') [21:17:13] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('0') [21:17:13] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('0') [21:17:13] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('0')
cache_get_field_content(0, "RaisonBan", pInfo[playerid][RaisonBan], mysql, 129); printf("%s", pInfo[playerid][RaisonBan]); pInfo[playerid][ID] = cache_get_row_int(0, 0); pInfo[playerid][Admin] = cache_get_row_int(0, 5); pInfo[playerid][VIP] = cache_get_row_int(0, 6); pInfo[playerid][Argent] = cache_get_row_int(0, 7); pInfo[playerid][posX] = cache_get_row_float(0, 8); pInfo[playerid][posY] = cache_get_row_float(0, 9); pInfo[playerid][posZ] = cache_get_row_float(0, 10); pInfo[playerid][Interieur] = cache_get_row_int(0, 11); pInfo[playerid][World] = cache_get_row_int(0, 12); pInfo[playerid][Skin] = cache_get_row_int(0, 13); pInfo[playerid][Niveau] = cache_get_row_int(0, 14); pInfo[playerid][Bannis] = cache_get_row_int(0, 16); pInfo[playerid][Vie] = cache_get_row_float(0, 18); pInfo[playerid][Armure] = cache_get_row_float(0, 19); printf("%s", pInfo[playerid][RaisonBan]);
I'm looking into COrm.cpp - would it be possible to change SVarInfo struct "name" field after adding it? Either by introducing orm_removevar, or orm_renamevar? I'm thinking about joined queries (using orm_apply_cache), where field names have prefixes, but later on they don't need one for updating.
|
native mysql_isconnected(connectionHandle = 1);