16.07.2015, 14:35
How can I possibly split this code in two to make it shorter? I'm getting this error,
Код:
C:\Users\Test\Desktop\roleplay.pwn(8228) : error 075: input line too long (after substitutions) C:\Users\Test\Desktop\roleplay.pwn(8229) : error 037: invalid string (possibly non-terminated string) C:\Users\Test\Desktop\roleplay.pwn(8229) : error 017: undefined symbol "UPDATE" C:\Users\Test\Desktop\roleplay.pwn(8229) : error 029: invalid expression, assumed zero C:\Users\Test\Desktop\roleplay.pwn(8229) : fatal error 107: too many error messages on one line
Код:
format(query, sizeof(query), "UPDATE `companies` SET `companyName` = '%s', `companyColor` = '%d', `companyType` = '%d', `companyRanks` = '%d', `companyInformationX` = '%.4f', `companyInformationY` = '%.4f', `companyInformationZ` = '%.4f', `companyInformationInt` = '%d', `companyInformationWorld` = '%d', `companyPurchaseX` = '%.4f', `companyPurchaseY` = '%.4f', `companyPurchaseZ` = '%.4f', `companyPurchaseInt` = '%d', `companyPurchaseWorld` = '%d', `SpawnX` = '%f', `SpawnY` = '%f', `SpawnZ` = '%f', `SpawnInterior` = '%d', `SpawnVW` = '%d'", SQL_ReturnEscaped(CompanyData[companyid][companyName]), CompanyData[companyid][companyColor], CompanyData[companyid][companyType], CompanyData[companyid][companyRanks], CompanyData[companyid][companyInformationPos][0], CompanyData[companyid][companyInformationPos][1], CompanyData[companyid][companyInformationPos][2], CompanyData[companyid][companyInformationInt], CompanyData[companyid][companyInformationWorld], CompanyData[companyid][companyPurchasePos][0], CompanyData[companyid][companyPurchasePos][1], CompanyData[companyid][companyPurchasePos][2], CompanyData[companyid][companyPurchaseInt], CompanyData[companyid][companyPurchaseWorld],