Announcement

Collapse
No announcement yet.

Another SLIC Help request.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    Well, believe it or not, it's once again a bracket error, this time only a }-bracket instead of a )-bracket. But I also saw another bug, that's more or less related to the bracket problem: there's 1 else clause to little. Here's what the fixed part should look like:
    Code:
    	if (tmpUnit == UnitDB(UNIT_PIKEMEN)) {
    		if (tmpCity.owner == 1 | | tmpCity.owner == 3 | | tmpCity.owner == 4) {	// player 1, 3 or 4
    			if (tmpCity.location != athensLoc && tmpCity.location != piraeusLoc
    					&& tmpCity.location != corinthLoc && tmpCity.location != thebesLoc) {
    				return 1;					// except for big cities, all greeks can build this
    			} else {
    				return 0;
    			}					// big cities and non-Greeks can't build this
    		} else {		// new
    			return 0;	// new
    		}			// new
    	} elseif (tmpUnit == UnitDB(UNIT_MACHINE_GUNNER)) {
    [This message has been edited by Locutus (edited March 20, 2001).]
    Administrator of WePlayCiv -- Civ5 Info Centre | Forum | Gallery

    Comment

    Working...
    X