Coding help

This is used for general discussion that is not necessarily server-related.
Post Reply
Bagel
New to forums
New to forums
Posts: 1
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Sun Aug 10, 2014 12:12 pm

Coding help

Post by Bagel »

Heres the code:

local Tags = {}
Tags["coowner"] = { Color( ( 0, 255, 255 ) ), "Super-Admin", Color( 0, 255, 255 ) }
Tags["superadmin"] = { Color( ( 0, 255, 255 ) ), "Owner", Color( 0, 255, 255 ) }
Tags["admin"] = { Color( ( 255 ,0, 255 ) ), "Admin", Color( 255 ,0, 255 ) }
Tags["VIP"] = { Color( ( 0 ,240 ,0 ) ), "VIP", Color( 0, 240 ,0 ) }
Tags["moderator"] = { Color( ( 255 ,0, 255 ) ), "Mod", Color( 255 ,0, 255 ) }

Heres the error:
[ERROR] lua/autorun/client/chattags.lua:5: ')' expected near ','
1. unknown - lua/autorun/client/chattags.lua:0

I have more of the code but I'm pretty sure thats the code with the problem. Help.
.=QUACK=.Major.Pain
This is my homepage
This is my homepage
Posts: 1573
Joined: Sun Jun 26, 2011 8:03 am

Re: Coding help

Post by .=QUACK=.Major.Pain »

Don't know much about the code, but at first glance, your left/right brackets seem to match, so if it's in that bit of code, something elses is triggering it.

I do see in your the Color arguments, you have places where the comma spacing is off. Not sure if that would be the cause.

Other than that, can't say.
Visit gspreviews.com And Rate & Review Your Old & Current GSP's
Find Your GSP Coupons at gspreviews.com/coupons/
User avatar
soja
This is my homepage
This is my homepage
Posts: 2389
Joined: Fri May 18, 2012 3:20 pm

Re: Coding help

Post by soja »

Line numbers would help
Not a NFO employee
User avatar
Decicus
Compulsive poster
Compulsive poster
Posts: 65
Joined: Thu Dec 05, 2013 1:55 am
Location: Norway
Contact:

Re: Coding help

Post by Decicus »

Your "Color" functions inside the table has another pair of brackets.
For example:

Tags["coowner"] = { Color( ( 0, 255, 255 ) ), "Super-Admin", Color( 0, 255, 255 ) }

Should be:

Tags["coowner"] = { Color( 0, 255, 255 ), "Super-Admin", Color( 0, 255, 255 ) }
Post Reply