Forum

> > CS2D > Scripts > In main chunk?
Forums overviewCS2D overview Scripts overviewLog in to reply

English In main chunk?

4 replies
To the start Previous 1 Next To the start

old In main chunk?

Inflexion
User Off Offline

Quote
Hello, people. Did you guys remember yuki admin script?
Well, I edited it a little bit and the edit was a little bit buggy so here's what i get at my console(not shown completely)

Spoiler >

btw, here's the code following the lines:
-----------SETTINGS.LUA
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
saytags = {
[-1] = "(»Idiot«)"; 
[0] = "(»Guest«)";
[1] = "(»Member«)";
[2] = "(»VIP«)"
[3] = "(SuperUser)";
[4] = "(»Mod«)";
[5] = "(»S-Mod«)";
[6] = "(»Co.Owner«)";
[7] = "(»Mapper«)";
[8] = "(»Scripter«)";
[9] = "(»Hoster«)"
[10] = "(»Owner«)";
}
[code]
------------------------------------------------MAIN.LUA
--[[
This Script is released under Creative Commons 4.0 BY-SA, be sure not to violate the
commons before you redistribute the script.
]]

scriptversion = "6.4.9" -- DO NEVER MODIFY IT!
yuki = {} -- DO NEVER MODIFY IT!
yukidir = "sys/lua/yuki/"
yuki.about = 
{
[1] = {"Author", "Yuki Usagi"};
[2] = {"USGN", "131785"};
[3] = {"Special Thanks", "TopNotch , VADemon, _Yank, Oops321"};
[4] = {"Script version", scriptversion};
}
yuki.debug = false -- for debug only
USGN = {}
ignorelist = {}
taguse = {}
locked = {}
idiotsay = {}
locked[1] = false
locked[2] = false
muted = {}
fow = 0
ranking = {}
saytag = {}
saycolor = {}
awplock = {}
bug = {}
awplock[1] = false
awplock[2] = false
for current = 1, 32 do ignorelist[current] = {} end
for i = 1, 32 do idiotsay[i] = false end

----------------------------------------

loadfiles =
{
"color",
"settings",
"cmds",
"radio",
"hooks",
"func",
"saycmds"
}

for i = 1, #loadfiles do
	if io.open(yukidir..loadfiles[i]..".lua")then
		dofile(yukidir..loadfiles[i]..".lua")
		bug[i] = 0
	else
		bug[i] = 1
	end
	io.close()
end

----------------------------------------
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
--[[
This Script is released under Creative Commons 4.0 BY-SA, be sure not to violate the
commons before you redistribute the script.
]]

scriptversion = "6.4.9" -- DO NEVER MODIFY IT!
yuki = {} -- DO NEVER MODIFY IT!
yukidir = "sys/lua/yuki/"
yuki.about = 
{
[1] = {"Author", "Yuki Usagi"};
[2] = {"USGN", "131785"};
[3] = {"Special Thanks", "TopNotch , VADemon, _Yank, Oops321"};
[4] = {"Script version", scriptversion};
}
yuki.debug = false -- for debug only
USGN = {}
ignorelist = {}
taguse = {}
locked = {}
idiotsay = {}
locked[1] = false
locked[2] = false
muted = {}
fow = 0
ranking = {}
saytag = {}
saycolor = {}
awplock = {}
bug = {}
awplock[1] = false
awplock[2] = false
for current = 1, 32 do ignorelist[current] = {} end
for i = 1, 32 do idiotsay[i] = false end

----------------------------------------

loadfiles =
{
"color",
"settings",
"cmds",
"radio",
"hooks",
"func",
"saycmds"
}

for i = 1, #loadfiles do
	if io.open(yukidir..loadfiles[i]..".lua")then
		dofile(yukidir..loadfiles[i]..".lua")
		bug[i] = 0
	else
		bug[i] = 1
	end
	io.close()
end

----------------------------------------


Thanks.

old Re: In main chunk?

VADemon
User Off Offline

Quote
Your Lua error lines are completely off. The issue is the first table, there're commas missing behind the strings at the end of some lines:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
saytags = {
[-1] = "(»Idiot«)",
[0] = "(»Guest«)",
[1] = "(»Member«)",
[2] = "(»VIP«)",
[3] = "(SuperUser)",
[4] = "(»Mod«)",
[5] = "(»S-Mod«)",
[6] = "(»Co.Owner«)",
[7] = "(»Mapper«)";
[8] = "(»Scripter«)",
[9] = "(»Hoster«)",
[10] = "(»Owner«)",
}

old Re: In main chunk?

Inflexion
User Off Offline

Quote
o.0, and the main.lua?

edit: thanks so much! I didn't notice because i was focusing on the main.lua.
Thanks!
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview