English error in save script on citylife

6 replies
Goto Page
To the start Previous 1 Next To the start
Up
JeeewNazi
User
Offline Off
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

Code:
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
22.07.14 08:48:19 am
Up
mr_s
User
Offline Off
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
IMG:http://www.gs4u.net/350x20/cs2d/5.231.50.192:36963.png
22.07.14 09:15:18 am
Up
SpriNG
User
Offline Off
@user mr_s: Don't you know?Its the server which you have in your signature, user SaZ Dice .You thought I don't know you?

Well,anyways let's not talk about our personal stuff out here.
22.07.14 07:42:48 pm
Up
SaZ Dice
User
Offline Off
it is my server
22.07.14 08:28:28 pm
Up
SpriNG
User
Offline Off
@user SaZ Dice: I know,user mr_s and you(user SaZ Dice) are the same,I mean multi account.You said you were not the samir I hated,but I found out you were lying to me,Well anyways,let's not talk about our personal stuff out here.
22.07.14 08:32:32 pm
Up
XoOt
Super User
Offline Off
http://www.unrealsoftware.de/forum_posts.php?post=374278&l#jl
I guess you're talking about that topic @user SpriNG: its really obvious.

On topic: it's "your" not "ur"
23.07.14 08:16:48 am
Up
SpriNG
User
Offline Off
@user XoOt: It's not just that, we are best friends, I know much about him.Thats how I found out.user mr_s and user SaZ Dice have the same name (real) samer
To the start Previous 1 Next To the start