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
#2

Код:
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
#3

Quote:
Originally Posted by F1N4L
Посмотреть сообщение
Код:
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+ // <<<<<<<<
				);
Oooo What the fuck I forgot the digit loool Thankss i just figgure out that I've missing the digit there xD damn u do dis pawno
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)