I was in a small project and i made my own script.
But when i tried to use in Cs2D i got a error message when i use tag command.
1
LUA ERROR: sys/lua/raaj nadar/admins.lua:47: attempt to index field '?' (a nil value)
I am trying to fix it but it made it impossible.
Need you help to fix it.
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
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
mod = {} -- Don't put the USGN id here it is for the function. VIP = {} Admin = {} --~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-- --~~~~~~~~~ Tag System(By - Raaj Nadar). ~~~~~~~~~~~-- --~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-- levelnames = {[0]=Banned,[1]=User,[2]=VIP,[3]=Moderator,[4]=Supporter,[5]=Supervisor,[6]=Admin,[7]=Owner,} addhook("say","colors") function colors(id,t) 	if colors == 0 then 	return false 	end end function mod_join(id) 	mod[id] = {} 	mod[id].level = 1 	mod[id].status = "User" 	mod[id].name = player(id,"name") 	mod[id].usgn = player(id,"usgn") 	mod[id].ip = player(id,"ip") 	mod[id].muted = false 	mod[id].tagon = false 	for _, usgn in ipairs(VIP) do 		if player(id,"usgn")==usgn then 		mod[id].level = 2 		mod[id].status = "V.I.P" 		mod[id].tag = "~[VIP]~" 		mod[id].tagon = true 		end 	end 	welcome(id) end addhook("say","say_tag") function say_tag(id,txt) if txt=="!tag" then 	if mod[id].level >= 2 then 		mod[id].tag = true 		msg2(id,"©000255000Color Tag is On!") 			return 1 		else 		mod[id].tag = false 		msg2(id,"©255000000Color Tag Is off!") 			return 1 		end 	end end
Check out and help me...
Have a nice day....be fast i am rushing with the script.