18.05.2016, 12:53
Код:
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] ); } }
Код:
(1356 -- 1362) : error 029: invalid expression, assumed zero (1356 -- 1362) : error 001: expected token: ",", but found ";"
Код:
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+ );