Has anyone had any luck with either of these functions:
INT GetNearestWater (fromLocation, toLocation)
Return the nearest water square to fromLocation in toLocation
-------------------
INT FindCoastalCity(player, cityvar)
Find a city next to the ocean and put it in cityvar. Returns 0 if no coastal cities are found.
I keep getting 'wrong type of argument' errors
INT GetNearestWater (fromLocation, toLocation)
Return the nearest water square to fromLocation in toLocation
-------------------
INT FindCoastalCity(player, cityvar)
Find a city next to the ocean and put it in cityvar. Returns 0 if no coastal cities are found.
Comment