Forum

> > CS2D > Servers > Lua Error Array (a nil value)
Forums overviewCS2D overview Servers overviewLog in to reply

English Lua Error Array (a nil value)

11 replies
To the start Previous 1 Next To the start

old Lua Error Array (a nil value)

mr_s
User Off Offline

Quote
LUA ERROR: sys/lua/Team Boss o/Main.lua:7: attempt to call global 'Array' (a nil value)
this is a part of script :
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
nokill = 0
--Lord Smiley's lua 
-- :D !smiley face!



withd = Array(32,0)
depos = Array(32,0)
rp_balad = Array(32,0)
h_card 			 =Array(32,0)
Bankmoney		  =Array(32,0)
rp_ct 		  = Array(32,false)
rp_Adminlevel = Array(32,0)
rp_license 	  = Array(32,0)
vehicle_license = Array(32,0)
rp_money 	  = Array(32,100)
rp_arrest 	  = Array(32,false)
rp_vipaddons  = Array(32,0)
rp_vipmsg = Array(32,0)
rp_NextAddons = Array(32,0)
UsgnIds = Array(32, 0)
PicImage = Array(32, 0)
--footbal--
team_no = Array(32,0)
havebal = Array(32,false)
FTWin 	= Array(2,1)
-----------
tsb = Array(32,0)
player_have_pos = Array(32,false)
tele_x  = Array(32,0)
tele_y  = Array(32,0)
rp_criminal = Array(32,false)
---houses---
house1 = Array(32,0)
house2 = Array(32,0)
house3 = Array(32,0)
house4 = Array(32,0)
house5 = Array(32,0)
house6 = Array(32,0)
house7 = Array(32,0)
house8 = Array(32,0)
house9 = Array(32,0)
house10 = Array(32,0)
havehouse = Array(32,0)
havehorse = Array(32,0)
havehouse1 = Array(32,0)
havehouse2 = Array(32,0)
havehouse3 = Array(32,0)
havehouse4 = Array(32,0)
havehouse5 = Array(32,0)
havehouse6 = Array(32,0)
havehouse7 = Array(32,0)
havehouse8 = Array(32,0)
havehouse9 = Array(32,0)
havehouse10 = Array(32,0)
house1owner = "Empty"
house2owner = "Empty"
house3owner = "Empty"
house4owner = "Empty"
house5owner = "Empty"
house6owner = "Empty"
house7owner = "Empty"
house8owner = "Empty"
house9owner = "Empty"
house10owner = "Empty"
-- vehicles values --
-- Vehicle 1 --
vehicle1_tx = Array(32,0)
vehicle1_ty = Array(32,0)
vehicle1_x = Array(32,0)
vehicle1_y = Array(32,0)
vehicle1_pic = Array(32,0)
vehicle1_pl_speed = Array(32,0)
vehicle1_img = Array(32,0)
vehicle1_img_pos = Array(32,0)
currentvehicle1 = Array(32,0)
pl_have_vehicle1 = Array(32,0)
vehicle1_pl = Array(32,0)
-- Vehicle 2 --
vehicle2_tx = Array(32,0)
vehicle2_ty = Array(32,0)
vehicle2_x = Array(32,0)
vehicle2_y = Array(32,0)
vehicle2_pic = Array(32,0)
vehicle2_pl_speed = Array(32,0)
vehicle2_img = Array(32,0)
vehicle2_img_pos = Array(32,0)
currentvehicle2 = Array(32,0)
pl_have_vehicle2 = Array(32,0)
vehicle2_pl = Array(32,0)
-- Vehicle 3 --
vehicle3_tx = Array(32,0)
vehicle3_ty = Array(32,0)
vehicle3_x = Array(32,0)
vehicle3_y = Array(32,0)
vehicle3_pic = Array(32,0)
vehicle3_pl_speed = Array(32,0)
vehicle3_img = Array(32,0)
vehicle3_img_pos = Array(32,0)
currentvehicle3 = Array(32,0)
pl_have_vehicle3 = Array(32,0)
vehicle3_pl = Array(32,0)
-- Vehicle 4 --
vehicle4_tx = Array(32,0)
vehicle4_ty = Array(32,0)
vehicle4_x = Array(32,0)
vehicle4_y = Array(32,0)
vehicle4_pic = Array(32,0)
vehicle4_pl_speed = Array(32,0)
vehicle4_img = Array(32,0)
vehicle4_img_pos = Array(32,0)
currentvehicle4 = Array(32,0)
pl_have_vehicle4 = Array(32,0)
vehicle4_pl = Array(32,0)
-- Vehicle 5 --
vehicle5_tx = Array(32,0)
vehicle5_ty = Array(32,0)
vehicle5_x = Array(32,0)
vehicle5_y = Array(32,0)
vehicle5_pic = Array(32,0)
vehicle5_pl_speed = Array(32,0)
vehicle5_img = Array(32,0)
vehicle5_img_pos = Array(32,0)
currentvehicle5 = Array(32,0)
pl_have_vehicle5 = Array(32,0)
vehicle5_pl = Array(32,0)
-- Vehicle 6 --
vehicle6_tx = Array(32,0)
vehicle6_ty = Array(32,0)
vehicle6_x = Array(32,0)
vehicle6_y = Array(32,0)
vehicle6_pic = Array(32,0)
vehicle6_pl_speed = Array(32,0)
vehicle6_img = Array(32,0)
vehicle6_img_pos = Array(32,0)
currentvehicle6 = Array(32,0)
pl_have_vehicle6 = Array(32,0)
vehicle6_pl = Array(32,0)
-- Vehicle 7 --
vehicle7_tx = Array(32,0)
vehicle7_ty = Array(32,0)
vehicle7_x = Array(32,0)
vehicle7_y = Array(32,0)
vehicle7_pic = Array(32,0)
vehicle7_pl_speed = Array(32,0)
vehicle7_img = Array(32,0)
vehicle7_img_pos = Array(32,0)
currentvehicle7 = Array(32,0)
pl_have_vehicle7 = Array(32,0)
vehicle7_pl = Array(32,0)
-- Vehicle 8 --
vehicle8_tx = Array(32,0)
vehicle8_ty = Array(32,0)
vehicle8_x = Array(32,0)
vehicle8_y = Array(32,0)
vehicle8_pic = Array(32,0)
vehicle8_pl_speed = Array(32,0)
vehicle8_img = Array(32,0)
vehicle8_img_pos = Array(32,0)
currentvehicle8 = Array(32,0)
pl_have_vehicle8 = Array(32,0)
vehicle8_pl = Array(32,0)
-- Vehicle 9 --
vehicle9_tx = Array(32,0)
vehicle9_ty = Array(32,0)
vehicle9_x = Array(32,0)
vehicle9_y = Array(32,0)
vehicle9_pic = Array(32,0)
vehicle9_pl_speed = Array(32,0)
vehicle9_img = Array(32,0)
vehicle9_img_pos = Array(32,0)
currentvehicle9 = Array(32,0)
pl_have_vehicle9 = Array(32,0)
vehicle9_pl = Array(32,0)
-- Vehicle 10 --
vehicle10_tx = Array(32,0)
vehicle10_ty = Array(32,0)
vehicle10_x = Array(32,0)
vehicle10_y = Array(32,0)
vehicle10_pic = Array(32,0)
vehicle10_pl_speed = Array(32,0)
vehicle10_img = Array(32,0)
vehicle10_img_pos = Array(32,0)
currentvehicle10 = Array(32,0)
pl_have_vehicle10 = Array(32,0)
vehicle10_pl = Array(32,0)
-- Vehicle 11 --
vehicle11_tx = Array(32,0)
vehicle11_ty = Array(32,0)
vehicle11_x = Array(32,0)
vehicle11_y = Array(32,0)
vehicle11_pic = Array(32,0)
vehicle11_pl_speed = Array(32,0)
vehicle11_img = Array(32,0)
vehicle11_img_pos = Array(32,0)
currentvehicle11 = Array(32,0)
pl_have_vehicle11 = Array(32,0)
vehicle11_pl = Array(32,0)
-- Vehicle 12 --
vehicle12_tx = Array(32,0)
vehicle12_ty = Array(32,0)
vehicle12_x = Array(32,0)
vehicle12_y = Array(32,0)
vehicle12_pic = Array(32,0)
vehicle12_pl_speed = Array(32,0)
vehicle12_img = Array(32,0)
vehicle12_img_pos = Array(32,0)
currentvehicle12 = Array(32,0)
pl_have_vehicle12 = Array(32,0)
vehicle12_pl = Array(32,0)
--horse---
please help me i am using debian vps
oh guys!
edited 2×, last 22.08.13 11:38:34 am

old Re: Lua Error Array (a nil value)

Dovahkin
User Off Offline

Quote
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
nokill = 0
--Lord Smiley's lua 
-- :D !smiley face!

function initArray(m)
	local array = {}
	for i = 1, m do
		array[i]=0
	end
	return array
end

withd = Array(32,0)
depos = Array(32,0)
rp_balad = Array(32,0)
h_card                 =Array(32,0)
Bankmoney            =Array(32,0)
rp_ct             = Array(32,false)
rp_Adminlevel = Array(32,0)
rp_license        = Array(32,0)
vehicle_license = Array(32,0)
rp_money        = Array(32,100)
rp_arrest        = Array(32,false)
rp_vipaddons  = Array(32,0)
rp_vipmsg = Array(32,0)
rp_NextAddons = Array(32,0)
UsgnIds = Array(32, 0)
PicImage = Array(32, 0)
--footbal--
team_no = Array(32,0)
havebal = Array(32,false)
FTWin      = Array(2,1)
-----------
tsb = Array(32,0)
player_have_pos = Array(32,false)
tele_x  = Array(32,0)
tele_y  = Array(32,0)
rp_criminal = Array(32,false)
---houses---
house1 = Array(32,0)
house2 = Array(32,0)
house3 = Array(32,0)
house4 = Array(32,0)
house5 = Array(32,0)
house6 = Array(32,0)
house7 = Array(32,0)
house8 = Array(32,0)
house9 = Array(32,0)
house10 = Array(32,0)
havehouse = Array(32,0)
havehorse = Array(32,0)
havehouse1 = Array(32,0)
havehouse2 = Array(32,0)
havehouse3 = Array(32,0)
havehouse4 = Array(32,0)
havehouse5 = Array(32,0)
havehouse6 = Array(32,0)
havehouse7 = Array(32,0)
havehouse8 = Array(32,0)
havehouse9 = Array(32,0)
havehouse10 = Array(32,0)
house1owner = "Empty"
house2owner = "Empty"
house3owner = "Empty"
house4owner = "Empty"
house5owner = "Empty"
house6owner = "Empty"
house7owner = "Empty"
house8owner = "Empty"
house9owner = "Empty"
house10owner = "Empty"
-- vehicles values --
-- Vehicle 1 --
vehicle1_tx = Array(32,0)
vehicle1_ty = Array(32,0)
vehicle1_x = Array(32,0)
vehicle1_y = Array(32,0)
vehicle1_pic = Array(32,0)
vehicle1_pl_speed = Array(32,0)
vehicle1_img = Array(32,0)
vehicle1_img_pos = Array(32,0)
currentvehicle1 = Array(32,0)
pl_have_vehicle1 = Array(32,0)
vehicle1_pl = Array(32,0)
-- Vehicle 2 --
vehicle2_tx = Array(32,0)
vehicle2_ty = Array(32,0)
vehicle2_x = Array(32,0)
vehicle2_y = Array(32,0)
vehicle2_pic = Array(32,0)
vehicle2_pl_speed = Array(32,0)
vehicle2_img = Array(32,0)
vehicle2_img_pos = Array(32,0)
currentvehicle2 = Array(32,0)
pl_have_vehicle2 = Array(32,0)
vehicle2_pl = Array(32,0)
-- Vehicle 3 --
vehicle3_tx = Array(32,0)
vehicle3_ty = Array(32,0)
vehicle3_x = Array(32,0)
vehicle3_y = Array(32,0)
vehicle3_pic = Array(32,0)
vehicle3_pl_speed = Array(32,0)
vehicle3_img = Array(32,0)
vehicle3_img_pos = Array(32,0)
currentvehicle3 = Array(32,0)
pl_have_vehicle3 = Array(32,0)
vehicle3_pl = Array(32,0)
-- Vehicle 4 --
vehicle4_tx = Array(32,0)
vehicle4_ty = Array(32,0)
vehicle4_x = Array(32,0)
vehicle4_y = Array(32,0)
vehicle4_pic = Array(32,0)
vehicle4_pl_speed = Array(32,0)
vehicle4_img = Array(32,0)
vehicle4_img_pos = Array(32,0)
currentvehicle4 = Array(32,0)
pl_have_vehicle4 = Array(32,0)
vehicle4_pl = Array(32,0)
-- Vehicle 5 --
vehicle5_tx = Array(32,0)
vehicle5_ty = Array(32,0)
vehicle5_x = Array(32,0)
vehicle5_y = Array(32,0)
vehicle5_pic = Array(32,0)
vehicle5_pl_speed = Array(32,0)
vehicle5_img = Array(32,0)
vehicle5_img_pos = Array(32,0)
currentvehicle5 = Array(32,0)
pl_have_vehicle5 = Array(32,0)
vehicle5_pl = Array(32,0)
-- Vehicle 6 --
vehicle6_tx = Array(32,0)
vehicle6_ty = Array(32,0)
vehicle6_x = Array(32,0)
vehicle6_y = Array(32,0)
vehicle6_pic = Array(32,0)
vehicle6_pl_speed = Array(32,0)
vehicle6_img = Array(32,0)
vehicle6_img_pos = Array(32,0)
currentvehicle6 = Array(32,0)
pl_have_vehicle6 = Array(32,0)
vehicle6_pl = Array(32,0)
-- Vehicle 7 --
vehicle7_tx = Array(32,0)
vehicle7_ty = Array(32,0)
vehicle7_x = Array(32,0)
vehicle7_y = Array(32,0)
vehicle7_pic = Array(32,0)
vehicle7_pl_speed = Array(32,0)
vehicle7_img = Array(32,0)
vehicle7_img_pos = Array(32,0)
currentvehicle7 = Array(32,0)
pl_have_vehicle7 = Array(32,0)
vehicle7_pl = Array(32,0)
-- Vehicle 8 --
vehicle8_tx = Array(32,0)
vehicle8_ty = Array(32,0)
vehicle8_x = Array(32,0)
vehicle8_y = Array(32,0)
vehicle8_pic = Array(32,0)
vehicle8_pl_speed = Array(32,0)
vehicle8_img = Array(32,0)
vehicle8_img_pos = Array(32,0)
currentvehicle8 = Array(32,0)
pl_have_vehicle8 = Array(32,0)
vehicle8_pl = Array(32,0)
-- Vehicle 9 --
vehicle9_tx = Array(32,0)
vehicle9_ty = Array(32,0)
vehicle9_x = Array(32,0)
vehicle9_y = Array(32,0)
vehicle9_pic = Array(32,0)
vehicle9_pl_speed = Array(32,0)
vehicle9_img = Array(32,0)
vehicle9_img_pos = Array(32,0)
currentvehicle9 = Array(32,0)
pl_have_vehicle9 = Array(32,0)
vehicle9_pl = Array(32,0)
-- Vehicle 10 --
vehicle10_tx = Array(32,0)
vehicle10_ty = Array(32,0)
vehicle10_x = Array(32,0)
vehicle10_y = Array(32,0)
vehicle10_pic = Array(32,0)
vehicle10_pl_speed = Array(32,0)
vehicle10_img = Array(32,0)
vehicle10_img_pos = Array(32,0)
currentvehicle10 = Array(32,0)
pl_have_vehicle10 = Array(32,0)
vehicle10_pl = Array(32,0)
-- Vehicle 11 --
vehicle11_tx = Array(32,0)
vehicle11_ty = Array(32,0)
vehicle11_x = Array(32,0)
vehicle11_y = Array(32,0)
vehicle11_pic = Array(32,0)
vehicle11_pl_speed = Array(32,0)
vehicle11_img = Array(32,0)
vehicle11_img_pos = Array(32,0)
currentvehicle11 = Array(32,0)
pl_have_vehicle11 = Array(32,0)
vehicle11_pl = Array(32,0)
-- Vehicle 12 --
vehicle12_tx = Array(32,0)
vehicle12_ty = Array(32,0)
vehicle12_x = Array(32,0)
vehicle12_y = Array(32,0)
vehicle12_pic = Array(32,0)
vehicle12_pl_speed = Array(32,0)
vehicle12_img = Array(32,0)
vehicle12_img_pos = Array(32,0)
currentvehicle12 = Array(32,0)
pl_have_vehicle12 = Array(32,0)
vehicle12_pl = Array(32,0)
--horse---

This should work now.

old Re: Lua Error Array (a nil value)

SaZ Dice
User Off Offline

Quote
now i get this error
1
2
3
4
5
6
7
8
9
10
11
12
13
14
LUA ERROR: sys/lua/Team Boss o/Main.lua:5491: attempt to index global 'CONFIG' (a nil value)
U.S.G.N.: Sending serverlist ADD-request...
U.S.G.N.: Server added to serverlist
U.S.G.N.: Sending serverlist UPDATE-request...
U.S.G.N.: Serverlist entry updated
LUA ERROR: sys/lua/Team Boss o/Main.lua:5021: bad argument #1 to 'msg2' (number expected, got nil)
Starting transfer to »SaZ | Dice« (files: 25) ...
»SaZ | Dice« needs or accepts no files.
»SaZ | Dice« joins the Terrorist Forces
»SaZ | Dice« died
»SaZ | Dice« joins the Terrorist Forces
LUA ERROR: sys/lua/Team Boss o/Main.lua:3836: attempt to call global 'SaveUserStat' (a nil value)
U.S.G.N.: Sending serverlist UPDATE-request...
U.S.G.N.: Serverlist entry updated
download main here :
http://www.4shared.com/file/lrGdd-2N/Main.html

EDIT : if anyone fixed my lua completely he will be admin in my 24/7 server

EDIT 2 : he will be admin level 2

EDIT 3 :admin level 3
edited 3×, last 22.08.13 02:22:33 pm

old Re: Lua Error Array (a nil value)

Avo
User Off Offline

Quote
It may not help to fix your problem, but look, I'll show you some magic:
More >

old Re: Lua Error Array (a nil value)

mr_s
User Off Offline

Quote
pls solve config and global for me, i am having same problems, i use debian 7 vps
help
Oh Man, all got helped but me not, why?
OH man
edited 4×, last 24.08.13 02:19:56 pm
To the start Previous 1 Next To the start
Log in to reply Servers overviewCS2D overviewForums overview