Making mouse-detectable zones

Blitz3D Forums/Blitz3D Beginners Area/Making mouse-detectable zones

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I save the zone data like this:

Function SaveZones()
fo=WriteFile("Zones.dat")
For z=1 To 181
WriteInt(fo,ZoneProperty(z,1))
WriteInt(fo,ZoneProperty(z,2))
WriteInt(fo,ZoneProperty(z,3))
WriteInt(fo,ZoneProperty(z,4))
Next
CloseFile(fo)
End Function

But when using THIS to load:

Function LoadZones()
fi=ReadFile("Zones.dat")
For z=1 To 181
ZoneProperty(z,1)=ReadInt(fi)
ZoneProperty(z,1)=ReadInt(fi)
ZoneProperty(z,1)=ReadInt(fi)
ZoneProperty(z,1)=ReadInt(fi)
Next
CloseFile(fi)
End Function

... a Blitz alert-box shows up with the msg " Expecting ')' "

Why is this? I can't see any missing ')' anywhere :/ When removing the LoadZones function from the code, I get no alert.