SA-MP Forums Archive
CMySQLResult::GetRowDataByName() - invalid row index ('0') - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: CMySQLResult::GetRowDataByName() - invalid row index ('0') (/showthread.php?tid=605641)



CMySQLResult::GetRowDataByName() - invalid row index ('0') - danielpalade - 22.04.2016

Whenever a player login's, I get the following mysql errors.
Код:
[19:08:55] [ERROR] "mysql_tquery" - invalid connection handle (id: 1)
[19:08:55] [ERROR] "mysql_tquery" - invalid connection handle (id: 1)
[19:08:55] [ERROR] "mysql_tquery" - invalid connection handle (id: 1)
[19:08:55] [ERROR] "mysql_tquery" - invalid connection handle (id: 1)
[19:08:55] [ERROR] "mysql_tquery" - invalid connection handle (id: 1)
[19:08:55] [ERROR] "mysql_tquery" - invalid connection handle (id: 1)
[19:08:55] [ERROR] "mysql_tquery" - invalid connection handle (id: 1)
[19:08:55] [ERROR] "mysql_tquery" - invalid connection handle (id: 1)
[19:08:55] [ERROR] "mysql_tquery" - invalid connection handle (id: 1)
[19:08:55] [ERROR] "mysql_tquery" - invalid connection handle (id: 1)
[19:08:55] [ERROR] "mysql_tquery" - invalid connection handle (id: 1)
[19:08:55] [ERROR] "mysql_tquery" - invalid connection handle (id: 1)
[19:08:55] [ERROR] "mysql_tquery" - invalid connection handle (id: 1)
[19:08:55] [ERROR] "mysql_tquery" - invalid connection handle (id: 1)
[19:08:55] [ERROR] "mysql_tquery" - invalid connection handle (id: 1)
[19:08:55] [ERROR] "mysql_tquery" - invalid connection handle (id: 1)
[19:08:55] [ERROR] "mysql_close" - invalid connection handle (id: 1)
[19:09:13] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('0')
[19:09:13] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('0')
[19:09:13] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('0')
[19:09:13] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('0')
[19:09:13] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('0')
[19:09:13] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('0')
[19:09:13] [ERROR] cache_get_field_content_int - invalid datatype
[19:09:13] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('0')
[19:09:13] [ERROR] cache_get_field_content_int - invalid datatype
[19:09:13] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('0')
[19:09:13] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('0')
[19:09:13] [ERROR] cache_get_field_content_int - invalid datatype
[19:09:13] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('0')
[19:09:13] [ERROR] cache_get_field_content_int - invalid datatype
[19:09:13] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('0')
Код:
printf( "rows: %d | fields: %d", rows, fields);
		cache_get_field_content(0, "playerPassword", result); format(playerVariables[extraid][pPassword], 129, result);
		cache_get_field_content(0, "playerEmail", result); format(playerVariables[extraid][pEmail], 255, result);
		cache_get_field_content(0, "playerSkin", result); playerVariables[extraid][pSkin] = strval(result);
		cache_get_field_content(0, "playerMoney", result); playerVariables[extraid][pMoney] = strval(result);
        cache_get_field_content(0, "playerClanTagType", result); playerVariables[extraid][pClanTagType] = strval(result);
        cache_get_field_content(0, "playerBankMoney", result); playerVariables[extraid][pBankMoney] = strval(result);
        cache_get_field_content(0, "playerHealth", result); playerVariables[extraid][pHealth] = floatstr(result);
        cache_get_field_content(0, "playerArmour", result); playerVariables[extraid][pArmour] = floatstr(result);
        cache_get_field_content(0, "playerVIP", result); playerVariables[extraid][pWarns] = strval(result);
        cache_get_field_content(0, "playerHouse", result); playerVariables[extraid][pHouse] = strval(result);
        cache_get_field_content(0, "playerBusiness", result); playerVariables[extraid][pBusiness] = strval(result);
        cache_get_field_content(0, "playerAdminLevel", result); playerVariables[extraid][pAdminLevel] = strval(result);
       	cache_get_field_content(0, "playerInterior", result); playerVariables[extraid][pInterior] = strval(result);
       	cache_get_field_content(0, "playerVirtualWorld", result); playerVariables[extraid][pVirtualWorld] = strval(result);
       	cache_get_field_content(0, "playerPhone", result); playerVariables[extraid][pPhone] = strval(result);
       	cache_get_field_content(0, "playerID", result); playerVariables[extraid][pInternalID] = strval(result);
       	cache_get_field_content(0, "playerJob", result); playerVariables[extraid][pJob] = strval(result);
       	cache_get_field_content(0, "playerJobSkill2", result); playerVariables[extraid][pDonate] = strval(result);
       	cache_get_field_content(0, "playerMaterials", result); playerVariables[extraid][pMaterials] = strval(result);
       	cache_get_field_content(0, "playerGroup", result); playerVariables[extraid][pGroup] = strval(result);
       	cache_get_field_content(0, "playerGroupRank", result); playerVariables[extraid][pGroupRank] = strval(result);
		cache_get_field_content(0, "playerClanDays", result); playerVariables[extraid][pClanDays] = strval(result);
       	cache_get_field_content(0, "playerClan", result); playerVariables[extraid][pClan] = strval(result);
       	cache_get_field_content(0, "playerClanRank", result); playerVariables[extraid][pClanRank] = strval(result);
       	cache_get_field_content(0, "playerHours", result); playerVariables[extraid][pPlayingHours] = strval(result);
		cache_get_field_content(0, "playerAdminName", result); format(playerVariables[extraid][pCrimeReason], 200, result);
		cache_get_field_content(0, "playerFirstLogin", result); playerVariables[extraid][pFirstLogin] = strval(result);
		cache_get_field_content(0, "playerGender", result); playerVariables[extraid][pGender] = strval(result);
		cache_get_field_content(0, "playerPrisonID", result); playerVariables[extraid][pPrisonID] = strval(result);
		cache_get_field_content(0, "playerPrisonTime", result); playerVariables[extraid][pPrisonTime] = strval(result);
		cache_get_field_content(0, "playerPhoneNumber", result); playerVariables[extraid][pPhoneNumber] = strval(result);
		cache_get_field_content(0, "playerPhoneBook", result); playerVariables[extraid][pPhoneBook] = strval(result);
		cache_get_field_content(0, "playerHelperLevel", result); playerVariables[extraid][pHelper] = strval(result);
		cache_get_field_content(0, "playerDropCarTimeout", result); playerVariables[extraid][pDropCarTimeout] = strval(result);
		cache_get_field_content(0, "playerRope", result); playerVariables[extraid][pDriveLicense] = strval(result);
		cache_get_field_content(0, "playerGunLic", result); playerVariables[extraid][pGunLicense] = strval(result);
		cache_get_field_content(0, "playerFlyLic", result); playerVariables[extraid][pFlyLicense] = strval(result);
		cache_get_field_content(0, "playerBoatLic", result); playerVariables[extraid][pBoatLicense] = strval(result);
		cache_get_field_content(0, "playerAdminDuty", result); playerVariables[extraid][pRobPoints] = strval(result);
		cache_get_field_content(0, "playerCrimes", result); playerVariables[extraid][pCrimes] = strval(result);
		cache_get_field_content(0, "playerArrests", result); playerVariables[extraid][pArrests] = strval(result);
		cache_get_field_content(0, "playerWarrants", result); playerVariables[extraid][pWarrants] = strval(result);
		cache_get_field_content(0, "playerLevel", result); playerVariables[extraid][pLevel] = strval(result);
		cache_get_field_content(0, "playerGlasses", result); playerVariables[extraid][pGlasses] = strval(result);
		cache_get_field_content(0, "playerHelpedPlayers", result); playerVariables[extraid][pHelpedPlayers] = strval(result);
		cache_get_field_content(0, "playerHelperTokens", result); playerVariables[extraid][pHelperTokens] = strval(result);
		cache_get_field_content(0, "playerColor", result); playerVariables[extraid][pColor] = strval(result);
		cache_get_field_content(0, "playerSeconds", result); playerVariables[extraid][pSeconds] = strval(result);
		cache_get_field_content(0, "playerAge", result); playerVariables[extraid][pRPoints] = strval(result);
		cache_get_field_content(0, "playerAge1", result); playerVariables[extraid][pAge] = strval(result);
		cache_get_field_content(0, "playerCarModel", result); playerVariables[extraid][pCarModel1] = strval(result);
		cache_get_field_content(0, "playerCarMod0", result); playerVariables[extraid][pCarMods1][0] = strval(result);
		cache_get_field_content(0, "playerCarMod1", result); playerVariables[extraid][pCarMods1][1] = strval(result);
		cache_get_field_content(0, "playerCarMod2", result); playerVariables[extraid][pCarMods1][2] = strval(result);
		cache_get_field_content(0, "playerCarMod3", result); playerVariables[extraid][pCarMods1][3] = strval(result);
		cache_get_field_content(0, "playerCarMod4", result); playerVariables[extraid][pCarMods1][4] = strval(result);
		cache_get_field_content(0, "playerCarMod5", result); playerVariables[extraid][pCarMods1][5] = strval(result);
		cache_get_field_content(0, "playerCarMod6", result); playerVariables[extraid][pCarMods1][6] = strval(result);
		cache_get_field_content(0, "playerCarMod7", result); playerVariables[extraid][pCarMods1][7] = strval(result);
        cache_get_field_content(0, "playerCarMod8", result); playerVariables[extraid][pCarMods1][8] = strval(result);
        cache_get_field_content(0, "playerCarMod9", result); playerVariables[extraid][pCarMods1][9] = strval(result);
        cache_get_field_content(0, "playerCarMod10", result); playerVariables[extraid][pCarMods1][10] = strval(result);
        cache_get_field_content(0, "playerCarMod11", result); playerVariables[extraid][pCarMods1][11] = strval(result);
        cache_get_field_content(0, "playerCarMod12", result); playerVariables[extraid][pCarMods1][12] = strval(result);
        cache_get_field_content(0, "playerCarMod20", result); playerVariables[extraid][pCarMods2][0] = strval(result);
        cache_get_field_content(0, "playerCarMod21", result); playerVariables[extraid][pCarMods2][1] = strval(result);
        cache_get_field_content(0, "playerCarMod22", result); playerVariables[extraid][pCarMods2][2] = strval(result);
        cache_get_field_content(0, "playerCarMod23", result); playerVariables[extraid][pCarMods2][3] = strval(result);
        cache_get_field_content(0, "playerCarMod24", result); playerVariables[extraid][pCarMods2][4] = strval(result);
        cache_get_field_content(0, "playerCarMod25", result); playerVariables[extraid][pCarMods2][5] = strval(result);
        cache_get_field_content(0, "playerCarMod26", result); playerVariables[extraid][pCarMods2][6] = strval(result);
        cache_get_field_content(0, "playerCarMod27", result); playerVariables[extraid][pCarMods2][7] = strval(result);
        cache_get_field_content(0, "playerCarMod28", result); playerVariables[extraid][pCarMods2][8] = strval(result);
        cache_get_field_content(0, "playerCarMod29", result); playerVariables[extraid][pCarMods2][9] = strval(result);
        cache_get_field_content(0, "playerCarMod30", result); playerVariables[extraid][pCarMods2][10] = strval(result);
        cache_get_field_content(0, "playerCarMod31", result); playerVariables[extraid][pCarMods2][11] = strval(result);
        cache_get_field_content(0, "playerCarMod32", result); playerVariables[extraid][pCarMods2][12] = strval(result);
        cache_get_field_content(0, "playerCarMod60", result); playerVariables[extraid][pCarMods3][0] = strval(result);
        cache_get_field_content(0, "playerCarMod61", result); playerVariables[extraid][pCarMods3][1] = strval(result);
        cache_get_field_content(0, "playerCarMod62", result); playerVariables[extraid][pCarMods3][2] = strval(result);
        cache_get_field_content(0, "playerCarMod63", result); playerVariables[extraid][pCarMods3][3] = strval(result);
        cache_get_field_content(0, "playerCarMod64", result); playerVariables[extraid][pCarMods3][4] = strval(result);
        cache_get_field_content(0, "playerCarMod65", result); playerVariables[extraid][pCarMods3][5] = strval(result);
        cache_get_field_content(0, "playerCarMod66", result); playerVariables[extraid][pCarMods3][6] = strval(result);
        cache_get_field_content(0, "playerCarMod67", result); playerVariables[extraid][pCarMods3][7] = strval(result);
        cache_get_field_content(0, "playerCarMod68", result); playerVariables[extraid][pCarMods3][8] = strval(result);
        cache_get_field_content(0, "playerCarMod69", result); playerVariables[extraid][pCarMods3][9] = strval(result);
        cache_get_field_content(0, "playerCarMod70", result); playerVariables[extraid][pCarMods3][10] = strval(result);
        cache_get_field_content(0, "playerCarMod71", result); playerVariables[extraid][pCarMods3][11] = strval(result);
        cache_get_field_content(0, "playerCarMod72", result); playerVariables[extraid][pCarMods3][12] = strval(result);
        cache_get_field_content(0, "playerCarMod80", result); playerVariables[extraid][pCarMods4][0] = strval(result);
        cache_get_field_content(0, "playerCarMod81", result); playerVariables[extraid][pCarMods4][1] = strval(result);
        cache_get_field_content(0, "playerCarMod82", result); playerVariables[extraid][pCarMods4][2] = strval(result);
        cache_get_field_content(0, "playerCarMod83", result); playerVariables[extraid][pCarMods4][3] = strval(result);
        cache_get_field_content(0, "playerCarMod84", result); playerVariables[extraid][pCarMods4][4] = strval(result);
        cache_get_field_content(0, "playerCarMod85", result); playerVariables[extraid][pCarMods4][5] = strval(result);
        cache_get_field_content(0, "playerCarMod86", result); playerVariables[extraid][pCarMods4][6] = strval(result);
        cache_get_field_content(0, "playerCarMod87", result); playerVariables[extraid][pCarMods4][7] = strval(result);
        cache_get_field_content(0, "playerCarMod88", result); playerVariables[extraid][pCarMods4][8] = strval(result);
        cache_get_field_content(0, "playerCarMod89", result); playerVariables[extraid][pCarMods4][9] = strval(result);
        cache_get_field_content(0, "playerCarMod90", result); playerVariables[extraid][pCarMods4][10] = strval(result);
        cache_get_field_content(0, "playerCarMod91", result); playerVariables[extraid][pCarMods4][11] = strval(result);
        cache_get_field_content(0, "playerCarMod92", result); playerVariables[extraid][pCarMods4][12] = strval(result);
        cache_get_field_content(0, "playerCarPosX", result); playerVariables[extraid][pCarPos1][0] = floatstr(result);
        cache_get_field_content(0, "playerCarPosY", result); playerVariables[extraid][pCarPos1][1] = floatstr(result);
        cache_get_field_content(0, "playerCarPosZ", result); playerVariables[extraid][pCarPos1][2] = floatstr(result);
        cache_get_field_content(0, "playerCarPosZAngle", result); playerVariables[extraid][pCarPos1][3] = floatstr(result);
        cache_get_field_content(0, "playerCarPosX3", result); playerVariables[extraid][pCarPos3][0] = floatstr(result);
        cache_get_field_content(0, "playerCarPosY3", result); playerVariables[extraid][pCarPos3][1] = floatstr(result);
        cache_get_field_content(0, "playerCarPosZ3", result); playerVariables[extraid][pCarPos3][2] = floatstr(result);
    	cache_get_field_content(0, "playerCarPosZAngle3", result); playerVariables[extraid][pCarPos3][3] = floatstr(result);
        cache_get_field_content(0, "playerCarPosX4", result); playerVariables[extraid][pCarPos4][0] = floatstr(result);
        cache_get_field_content(0, "playerCarPosY4", result); playerVariables[extraid][pCarPos4][1] = floatstr(result);
        cache_get_field_content(0, "playerCarPosZ4", result); playerVariables[extraid][pCarPos4][2] = floatstr(result);
    	cache_get_field_content(0, "playerCarPosZAngle4", result); playerVariables[extraid][pCarPos4][3] = floatstr(result);
    	cache_get_field_content(0, "playerCarPosX2", result); playerVariables[extraid][pCarPos2][0] = floatstr(result);
        cache_get_field_content(0, "playerCarPosY2", result); playerVariables[extraid][pCarPos2][1] = floatstr(result);
        cache_get_field_content(0, "playerCarPosZ2", result); playerVariables[extraid][pCarPos2][2] = floatstr(result);
    	cache_get_field_content(0, "playerCarPosZAngle2", result); playerVariables[extraid][pCarPos2][3] = floatstr(result);
    	cache_get_field_content(0, "playerCarColour1", result); playerVariables[extraid][pCarColour1][0] = strval(result);
       	cache_get_field_content(0, "playerCarColour2", result); playerVariables[extraid][pCarColour1][1] = strval(result);
       	cache_get_field_content(0, "playerCarPaintJob", result); playerVariables[extraid][pCarPaintjob] = strval(result);
       	cache_get_field_content(0, "playerCarLock", result); playerVariables[extraid][pCarLock] = strval(result);
       	cache_get_field_content(0, "playerCarColour21", result); playerVariables[extraid][pCarColour2][0] = strval(result);
       	cache_get_field_content(0, "playerCarColour22", result); playerVariables[extraid][pCarColour2][1] = strval(result);
       	cache_get_field_content(0, "playerCarPaintJob2", result); playerVariables[extraid][pCarPaintjob2] = strval(result);
       	cache_get_field_content(0, "playerCarLock2", result); playerVariables[extraid][pCarLock2] = strval(result);
       	cache_get_field_content(0, "playerCarColor31", result); playerVariables[extraid][pCarColour3][0] = strval(result);
       	cache_get_field_content(0, "playerCarColor32", result); playerVariables[extraid][pCarColour3][1] = strval(result);
       	cache_get_field_content(0, "playerCarPaintJob3", result); playerVariables[extraid][pCarPaintjob3] = strval(result);
       	cache_get_field_content(0, "playerCarLock3", result); playerVariables[extraid][pCarLock3] = strval(result);
       	cache_get_field_content(0, "playerCarColor41", result); playerVariables[extraid][pCarColour4][0] = strval(result);
       	cache_get_field_content(0, "playerCarColor42", result); playerVariables[extraid][pCarColour4][1] = strval(result);
       	cache_get_field_content(0, "playerCarPaintJob4", result); playerVariables[extraid][pCarPaintjob4] = strval(result);
       	cache_get_field_content(0, "playerCarLock4", result); playerVariables[extraid][pCarLock4] = strval(result);
       	cache_get_field_content(0, "playerCarKM3", result); playerVariables[extraid][pCarKM3] = strval(result);
       	cache_get_field_content(0, "playerCarKM4", result); playerVariables[extraid][pCarKM4] = strval(result);
       	cache_get_field_content(0, "playerFightStyle", result); playerVariables[extraid][pFightStyle] = strval(result);
       	cache_get_field_content(0, "playerCarWeapon1", result); playerVariables[extraid][pCarWeapons] = strval(result);
       	cache_get_field_content(0, "playerCarWeapon2", result); playerVariables[extraid][pFPunish] = strval(result);
       	cache_get_field_content(0, "playerCarWeapon3", result); playerVariables[extraid][pFWarns] = strval(result);
       	cache_get_field_content(0, "playerCarWeapon4", result); playerVariables[extraid][pSpawnChange] = strval(result);
       	cache_get_field_content(0, "playerCarWeapon5", result); playerVariables[extraid][pPremiumPoints] = strval(result);
       	cache_get_field_content(0, "playerCarTrunk1", result); playerVariables[extraid][pCarKM] = strval(result);
       	cache_get_field_content(0, "playerCarKM2", result); playerVariables[extraid][pCarKM2] = strval(result);
       	cache_get_field_content(0, "playerCarTrunk2", result); playerVariables[extraid][pDrugs] = strval(result);
       	cache_get_field_content(0, "playerCarModel2", result); playerVariables[extraid][pCarModel2] = strval(result);
       	cache_get_field_content(0, "playerCarModel3", result); playerVariables[extraid][pCarModel3] = strval(result);
       	cache_get_field_content(0, "playerCarModel4", result); playerVariables[extraid][pCarModel4] = strval(result);
       	cache_get_field_content(0, "playerPhoneCredit", result); playerVariables[extraid][pPhoneCredit] = strval(result);
       	cache_get_field_content(0, "playerWalkieTalkie", result); playerVariables[extraid][pWalkieTalkie] = strval(result);
       	cache_get_field_content(0, "playerManager", result); playerVariables[extraid][pManager] = strval(result);
       	cache_get_field_content(0, "playerGiftHours", result); playerVariables[extraid][pGiftHours] = strval(result);
       	cache_get_field_content(0, "playerHud", result); playerVariables[extraid][ShowHealth] = strval(result);
       	cache_get_field_content(0, "playerInsurance", result); playerVariables[extraid][pInsurance] = strval(result);
       	cache_get_field_content(0, "playerInsurance2", result); playerVariables[extraid][pInsurance2] = strval(result);
       	cache_get_field_content(0, "playerInsurance3", result); playerVariables[extraid][pInsurance3] = strval(result);
       	cache_get_field_content(0, "playerInsurance4", result); playerVariables[extraid][pInsurance4] = strval(result);
		cache_get_field_content(0, "playerInsurancePoints", result); playerVariables[extraid][pInsurancePoints] = strval(result);
       	cache_get_field_content(0, "playerInsurancePoints2", result); playerVariables[extraid][pInsurancePoints2] = strval(result);
       	cache_get_field_content(0, "playerInsurancePoints3", result); playerVariables[extraid][pInsurancePoints3] = strval(result);
       	cache_get_field_content(0, "playerInsurancePoints4", result); playerVariables[extraid][pInsurancePoints4] = strval(result);
		cache_get_field_content(0, "playerHelperDays", result); playerVariables[extraid][pHelperDays] = strval(result);
		cache_get_field_content(0, "playerDMStatus", result); playerVariables[extraid][pDMStatus] = strval(result);
		cache_get_field_content(0, "playerFunc", result); playerVariables[extraid][pFunc] = strval(result);
		cache_get_field_content(0, "playerHoursTWPoints", result); playerVariables[extraid][pHPoints] = strval(result);
		cache_get_field_content(0, "playerHoursThisWeek", result); playerVariables[extraid][pHThisWeek] = strval(result);
		cache_get_field_content(0, "playerALocked", result); playerVariables[extraid][pALock] = strval(result);
		cache_get_field_content(0, "playerAdminIP", playerVariables[extraid][pAdminIP], handle, 256);
		cache_get_field_content(0, "playerWantedSeconds", result); playerVariables[extraid][pWantedSeconds] = strval(result);
		cache_get_field_content(0, "playerRepairKit", result); playerVariables[extraid][pRepairKit] = strval(result);
		cache_get_field_content(0, "playerSkillFarm", result); playerVariables[extraid][pSkillFarm] = strval(result);
		cache_get_field_content(0, "playerSkillGarbage", result); playerVariables[extraid][pSkillGarbage] = strval(result);
		cache_get_field_content(0, "playerSkillTruck", result); playerVariables[extraid][pSkillTruck] = strval(result);
		cache_get_field_content(0, "playerSkillStreet", result); playerVariables[extraid][pSkillStreet] = strval(result);
		cache_get_field_content(0, "playerSkillMechanic", result); playerVariables[extraid][pSkillMechanic] = strval(result);
		cache_get_field_content(0, "playerSkillArms", result); playerVariables[extraid][pSkillArms] = strval(result);
		cache_get_field_content(0, "playerSkillPizza", result); playerVariables[extraid][pSkillPizza] = strval(result);
		cache_get_field_content(0, "playerSkillCurier", result); playerVariables[extraid][pSkillCurier] = strval(result);
		cache_get_field_content(0, "playerSkillCarJack", result); playerVariables[extraid][pSkillCarJack] = strval(result);
		cache_get_field_content(0, "playerSkillFish", result); playerVariables[extraid][pSkillFish] = strval(result);		
		cache_get_field_content(0, "playerFarms", result); playerVariables[extraid][pFarms] = strval(result);
		cache_get_field_content(0, "playerGarbs", result); playerVariables[extraid][pGarbs] = strval(result);
		cache_get_field_content(0, "playerTrucks", result); playerVariables[extraid][pTrucks] = strval(result);
		cache_get_field_content(0, "playerStreets", result); playerVariables[extraid][pStreets] = strval(result);
		cache_get_field_content(0, "playerMechanics", result); playerVariables[extraid][pMechanics] = strval(result);
		cache_get_field_content(0, "playerArms", result); playerVariables[extraid][pArms] = strval(result);
		cache_get_field_content(0, "playerPizza", result); playerVariables[extraid][pPizza] = strval(result);
		cache_get_field_content(0, "playerCurier", result); playerVariables[extraid][pCurier] = strval(result);
		cache_get_field_content(0, "playerJacks", result); playerVariables[extraid][pJacks] = strval(result);
		cache_get_field_content(0, "playerFish", result); playerVariables[extraid][pFishAm] = strval(result);			
		cache_get_field_content(0, "playerNeededFarm", result); playerVariables[extraid][pNeededFarm] = strval(result);
		cache_get_field_content(0, "playerNeededGarbage", result); playerVariables[extraid][pNeededGarbage] = strval(result);
		cache_get_field_content(0, "playerNeededTruck", result); playerVariables[extraid][pNeededTruck] = strval(result);
		cache_get_field_content(0, "playerNeededStreet", result); playerVariables[extraid][pNeededStreet] = strval(result);
		cache_get_field_content(0, "playerNeededMechanic", result); playerVariables[extraid][pNeededMechanic] = strval(result);
		cache_get_field_content(0, "playerNeededArms", result); playerVariables[extraid][pNeededArms] = strval(result);
		cache_get_field_content(0, "playerNeededPizza", result); playerVariables[extraid][pNeededPizza] = strval(result);
		cache_get_field_content(0, "playerNeededCurier", result); playerVariables[extraid][pNeededCurier] = strval(result);
		cache_get_field_content(0, "playerNeededCarJack", result); playerVariables[extraid][pNeededCarJack] = strval(result);
		cache_get_field_content(0, "playerNeededFish", result); playerVariables[extraid][pNeededFish] = strval(result);
		cache_get_field_content(0, "playerArmor", result); playerVariables[extraid][ShowArmor] = strval(result);
		cache_get_field_content(0, "playerFPS", result); playerVariables[extraid][ShowFPS] = strval(result);
It definatly has something to do with the loading of the stats.


Respuesta: CMySQLResult::GetRowDataByName() - invalid row index ('0') - Xabi - 22.04.2016

Quote:

invalid connection handle (id: 1)

You have an error connecting to the database, check the IP, username, password and database name.


Re: Respuesta: CMySQLResult::GetRowDataByName() - invalid row index ('0') - danielpalade - 22.04.2016

Quote:
Originally Posted by Xabi
Посмотреть сообщение
You have an error connecting to the database, check the IP, username, password and database name.
The thing is, everything works fine. There's nothing wrong.