Hello i want to save information in my server (money location team ext) do you know any guide that explaine how to setup sql in mta and how to use it thank
Thank i have check the wiki but havent read this line
When you open a file, its file position is set to the beginning of the file. Each call to fileRead or fileWrite moves the position ahead by the amount of bytes that were read/written. This way, by using fileIsEOF you can check if you've passed through the whole file.
local positionfile = fileOpen("position.txt", false)
fileWrite(positionfile, "Position: x = " .. x .. " y = " .. y .. " z = " .. z .. " ")
fileClose(positionfile)
here is my code it work but i want it to write at the end of the existing file
Hello i want to add some information to a file without delete it what i can add to my filewrite or fileopen for it ?
i know that in c++ its app but i dont know in lua