MySQL Input line too long
#1

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],
Reply


Messages In This Thread
MySQL Input line too long - by Zens - 16.07.2015, 14:35
AW: MySQL Input line too long - by Mencent - 16.07.2015, 14:41
Re: AW: MySQL Input line too long - by Zens - 16.07.2015, 15:06
Re: MySQL Input line too long - by Zens - 16.07.2015, 16:20

Forum Jump:


Users browsing this thread: 1 Guest(s)