@@ -23,7 +23,7 @@ newaction {
23
23
-- Make Bin directory if not exists
24
24
local success , message = os .mkdir (BIN_DIR )
25
25
if not success then
26
- errmsg (" ERROR: Couldn't create Bin directory" , " \n " .. message )
26
+ errormsg (" ERROR: Couldn't create Bin directory" , " \n " .. message )
27
27
os.exit (1 )
28
28
return
29
29
end
@@ -32,7 +32,7 @@ newaction {
32
32
if os .host () == " windows" then
33
33
local success , message = os .copydir (DATA_DIR , BIN_DIR )
34
34
if not success then
35
- errmsg (" ERROR: Couldn't create copy data directory" , " \n " .. message )
35
+ errormsg (" ERROR: Couldn't create copy data directory" , " \n " .. message )
36
36
os.exit (1 )
37
37
return
38
38
end
@@ -41,22 +41,22 @@ newaction {
41
41
-- Copy configs if they don't already exist
42
42
local success , message = os .copydir (" Server/mods/deathmatch" , BIN_DIR .. " /server/mods/deathmatch" , " *.conf" , false , true )
43
43
if not success then
44
- errmsg (" ERROR: Couldn't copy server config files" , " \n " .. message )
44
+ errormsg (" ERROR: Couldn't copy server config files" , " \n " .. message )
45
45
os.exit (1 )
46
46
return
47
47
end
48
48
49
49
local success , message = os .copydir (" Server/mods/deathmatch" , BIN_DIR .. " /server/mods/deathmatch" , " *.xml" , false , true )
50
50
if not success then
51
- errmsg (" ERROR: Couldn't copy server xml files" , " \n " .. message )
51
+ errormsg (" ERROR: Couldn't copy server xml files" , " \n " .. message )
52
52
os.exit (1 )
53
53
return
54
54
end
55
55
56
56
-- Make sure server/x64 directory exists
57
57
local success , message = os .mkdir (BIN_DIR .. " /server/x64" )
58
58
if not success then
59
- errmsg (" ERROR: Couldn't create server/x64 directory" , " \n " .. message )
59
+ errormsg (" ERROR: Couldn't create server/x64 directory" , " \n " .. message )
60
60
os.exit (1 )
61
61
return
62
62
end
@@ -73,19 +73,19 @@ newaction {
73
73
end
74
74
75
75
if not os .copyfile (BIN_DIR .. " /MTA/netc.dll" , BIN_DIR .. " /MTA/netc_d.dll" ) then
76
- errmsg (" ERROR: Could not copy netc.dll" )
76
+ errormsg (" ERROR: Could not copy netc.dll" )
77
77
os.exit (1 )
78
78
return
79
79
end
80
80
81
81
if not os .copyfile (BIN_DIR .. " /server/net.dll" , BIN_DIR .. " /server/net_d.dll" ) then
82
- errmsg (" ERROR: Could not copy server/net.dll" )
82
+ errormsg (" ERROR: Could not copy server/net.dll" )
83
83
os.exit (1 )
84
84
return
85
85
end
86
86
87
87
if not os .copyfile (BIN_DIR .. " /server/x64/net.dll" , BIN_DIR .. " /server/x64/net_d.dll" ) then
88
- errmsg (" ERROR: Could not copy server/x64/net.dll" )
88
+ errormsg (" ERROR: Could not copy server/x64/net.dll" )
89
89
os.exit (1 )
90
90
return
91
91
end
@@ -100,7 +100,7 @@ newaction {
100
100
end
101
101
102
102
if not os .copyfile (BIN_DIR .. " /server/x64/net.dylib" , BIN_DIR .. " /server/x64/net_d.dylib" ) then
103
- errmsg (" ERROR: Could not copy server/x64/net.dylib" )
103
+ errormsg (" ERROR: Could not copy server/x64/net.dylib" )
104
104
os.exit (1 )
105
105
return
106
106
end
@@ -115,13 +115,13 @@ newaction {
115
115
end
116
116
117
117
if not os .copyfile (BIN_DIR .. " /server/net.so" , BIN_DIR .. " /server/net_d.so" ) then
118
- errmsg (" ERROR: Could not copy server/net.so" )
118
+ errormsg (" ERROR: Could not copy server/net.so" )
119
119
os.exit (1 )
120
120
return
121
121
end
122
122
123
123
if not os .copyfile (BIN_DIR .. " /server/x64/net.so" , BIN_DIR .. " /server/x64/net_d.so" ) then
124
- errmsg (" ERROR: Could not copy server/x64/net.so" )
124
+ errormsg (" ERROR: Could not copy server/x64/net.so" )
125
125
os.exit (1 )
126
126
return
127
127
end
0 commit comments