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.
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.