I give in! Help?

Kristo

Website & Software Developer
Feb 5, 2015
269
69
Keep getting this error with my code

[ERROR] addons/chat-cosmetics-master/lua/autorun/sh_config.lua:86: ')' expected near ','
1. unknown - addons/chat-cosmetics-master/lua/autorun/sh_config.lua:0

[ERROR] addons/chat-cosmetics-master/lua/autorun/sh_config.lua:25: ')' expected near ','
1. unknown - addons/chat-cosmetics-master/lua/autorun/sh_config.lua:0

I have no idea even after looking at my code how to fix this.. Can somebody help? Code below.

Pastebin -
 
Jan 7, 2016
194
15
Did you do it like he says in the file itself?
Your code
Code:
CUConfig.Tags["admin"] = { -- Group name in the ""
    Color( (0, 8, 255 ), -- The color of the tag
    "Administrator", -- What to display in the tag
    color_white, -- The brackets color of the tag
    Color( 255, 255, 255 ) -- Chat color, or if you don't want a specific chat color, use 'false' (WILL NOT OVVERIDE /advert CHAT COLOR!)
}
His code
Code:
CUConfig.Tags["admin"] = {
    Color( 255, 94, 94 ),
    "Admin",
    color_white,
    false
}
You copied the part where it has all the words, which is not needed, so what you need to do for yours is use the one afterwards 

In short try doing this instead:
[CODE]CUConfig.Tags["user"] = {
    Color(0, 63, 255),
    "V7N",
    color_white,
    false
}
^ Use this as the format for each username, color rank ect, not the first one.
CUConfig.Tags["user"] = {
Color(138, 138, 138),
"Guest",
color_white,
false
}[/CODE]
 
Did you do it like he says in the file itself?
Your code
Code:
CUConfig.Tags["admin"] = { -- Group name in the ""
    Color( (0, 8, 255 ), -- The color of the tag
    "Administrator", -- What to display in the tag
    color_white, -- The brackets color of the tag
    Color( 255, 255, 255 ) -- Chat color, or if you don't want a specific chat color, use 'false' (WILL NOT OVVERIDE /advert CHAT COLOR!)
}
His code
Code:
CUConfig.Tags["admin"] = {
    Color( 255, 94, 94 ),
    "Admin",
    color_white,
    false
}
You copied the part where it has all the words, which is not needed, so what you need to do for yours is use the one afterwards

In short try doing this instead:
[CODE]CUConfig.Tags["user"] = {
    Color(0, 63, 255),
    "V7N",
    color_white,
    false
}
^ Use this as the format for each username, color rank ect, not the first one.
CUConfig.Tags["user"] = {
Color(138, 138, 138),
"Guest",
color_white,
false
}[/CODE]
False represents this: -- Chat color, or if you don't want a specific chat color, use 'false' (WILL NOT OVVERIDE /advert CHAT
 
Did you do it like he says in the file itself?
Your code
Code:
CUConfig.Tags["admin"] = { -- Group name in the ""
    Color( (0, 8, 255 ), -- The color of the tag
    "Administrator", -- What to display in the tag
    color_white, -- The brackets color of the tag
    Color( 255, 255, 255 ) -- Chat color, or if you don't want a specific chat color, use 'false' (WILL NOT OVVERIDE /advert CHAT COLOR!)
}
His code
Code:
CUConfig.Tags["admin"] = {
    Color( 255, 94, 94 ),
    "Admin",
    color_white,
    false
}
You copied the part where it has all the words, which is not needed, so what you need to do for yours is use the one afterwards

In short try doing this instead:
[CODE]CUConfig.Tags["user"] = {
    Color(0, 63, 255),
    "V7N",
    color_white,
    false
}
^ Use this as the format for each username, color rank ect, not the first one.
CUConfig.Tags["user"] = {
Color(138, 138, 138),
"Guest",
color_white,
false
}[/CODE]
 

False represents this: -- Chat color, or if you don't want a specific chat color, use 'false' (WILL NOT OVVERIDE /advert CHAT
If you want a specific chat color use true
 

Users who are viewing this thread

Top