Forum

> > CS2D > Scripts > error in save script on citylife
Forums overviewCS2D overview Scripts overviewLog in to reply

English error in save script on citylife

6 replies
To the start Previous 1 Next To the start

old error in save script on citylife

Ajmin
User Off Offline

Quote
save script not working for me in a citylife lua.
it works when i host it with new game and dont works when with dedicated.
idk what to do next.
sometime saves sometime not

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
function SaveUserStat(id)
     if (UsgnIds[id] > 0) then

          file = io.open("sys/lua/SAZ/Data/"..UsgnIds[id]..'.txt', "w+") or io.tmpfile()
          local text = Vl[id].lvl" 
          file:write(text)          
          file:close()


          file = io.open("sys/lua/SAZ/Clothes/"..UsgnIds[id]..'.txt', "w+") or io.tmpfile()
          local text = ""     
          for k, i in ipairs(Clothes) do
               text = text .." "..i.Lic[id]
          end
          file:write(text)
          file:close()

          file = io.open("sys/lua/SAZ/Addons/"..UsgnIds[id]..'.txt', "w+") or io.tmpfile()
          local text = ""     
          for k, i in ipairs(Addons) do
               text = text .." "..i.Lic[id]
          end
          file:write(text)
          file:close()


          file = io.open("sys/lua/SAZ/Hats/"..UsgnIds[id]..'.txt', "w+") or io.tmpfile()
          local text = ""     
          for k, i in ipairs(Hat) do
               text = text .." "..i.Lic[id]
          end
          file:write(text)
          file:close()


          file = io.open("sys/lua/SAZ/Pets/"..UsgnIds[id]..'.txt', "w+") or io.tmpfile()
          local text = ""     
          for k, i in ipairs(Pets) do
               text = text .." "..i.Lic[id]
          end
          file:write(text)
          file:close()


          else
               msg2(id,"©255000000Please log in to ur U.S.G.N account@C")
          end
end

old Re: error in save script on citylife

mr_s
User Off Offline

Quote
if you are using linux vps you need to see if the folder names start with upcase or not and make them the SAME on vps and on script and restart the server
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview