invalid expression
#1

Код:
for(new ammoid; ammoid<MAX_STOREAMMO; ammoid++) {
	if(ammoid == MAX_STOREAMMO-1) {
//				printf("Last Ammo ID %d Saved",ammoid); //debug
	    format(string, sizeof(string), "%s `Ammo%d`=%d, `AmmoType%d`=%d WHERE `ID` = %d",string,
			ammoid,
			BackpackInfo[i][sAmmo][ammoid],
			ammoid,
			BackpackInfo[i][sAmmoType][ammoid],
			i+
		);
	}
	else {
//			    printf("Ammo ID %d performed",ammoid); //debug
	    format(string, sizeof(string), "%s \
			`Ammo%d`=%d, \
			`AmmoType%d`=%d,",
			string,
			ammoid,
			BackpackInfo[i][sAmmo][ammoid],
			ammoid,
			BackpackInfo[i][sAmmoType][ammoid]
		);
	}
}
error:
Код:
(1356 -- 1362) : error 029: invalid expression, assumed zero
(1356 -- 1362) : error 001: expected token: ",", but found ";"
what the fuck was wrong in this code
Код:
Line 1356: format(string, sizeof(string), "%s `Ammo%d`=%d, `AmmoType%d`=%d WHERE `ID` = %d",string,
			ammoid,
			BackpackInfo[i][sAmmo][ammoid],
			ammoid,
			BackpackInfo[i][sAmmoType][ammoid],
			i+
		);
Reply


Messages In This Thread
invalid expression - by ToiletDuck - 18.05.2016, 12:53
Re: invalid expression - by F1N4L - 18.05.2016, 12:58
Re: invalid expression - by ToiletDuck - 18.05.2016, 13:01

Forum Jump:


Users browsing this thread: 1 Guest(s)