name$+"savegame\.dat is not saving as name$+"savegame\.dat
it is just saving as .dat with no name at all. in the input i put my name as input name$, so my function should save the file as the name i put into the input .dat,so what am i doing wrong?
FUNCTION SaveGameobjects()
if file exist(name$+"savegame\.dat")=1 then delete file name$+"savegame\.dat"
open to write 1,name$+"savegame\.dat"
write byte 1,n
for x=20 to n
if object exist(x)=1
x#=object position x(x)
y#=object position y(x)
z#=object position z(x)
ax#=object angle x(x)
ay#=object angle y(x)
az#=object angle z(x)
write float 1,x#
write float 1,y#
write float 1,z#
write float 1,ax#
write float 1,ay#
write float 1,az#
endif
next x
close file 1
CENTER TEXT 500, 160, "Save Succesfull! Press enter key to continue."
ENDFUNCTION SaveGameobjects
my signature keeps being erased by a mod So this is my new signature.