Posted: Mon Mar 12, 2018 6:16 am Post subject: I don't know How to write a script
Please write a script and release me please
I want Script Save Value from HasEditBox to Text and Load save to HasEditBox
and Script Show Coordinates ฺ X Y Z Button
Help me please
function SaveVars()
get_Top1 = tonumber(e1.text)
get_Texture1 = tonumber(e2.text)
local f = assert(io.open("SavedVars.txt", "w"))
f:write(get_Top1,"\n")
f:write(get_Texture1,"\n")
f:close()
showMessage("Done... Data Saved")
return
end
function LoadVars()
local f = assert(io.open("SavedVars.txt", "r"))
set_Top1 = f:read("*line")
set_Texture1 = f:read("*line")
f:close()
e1.Text = tostring(set_Top1)
e2.Text = tostring(set_Texture1)
end
function exitTrainer()
form_hide(f)
return caFree
end
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum