Change WriteLong to WriteFloat

net.WriteLong is not a valid function in the net library -- it belongs to the file library.