02-15-2013, 07:52 AM
thanks i now have a list of all the API functions however i don't know how to use most of those functions
i am trying to make a chat plugin so you can see your group and i have this code:
i am trying to make a chat plugin so you can see your group and i have this code:
Server:SendMessage( Group:GetColor() .. "[" .. Group:GetName() .. "]" .. Player:GetColor() .. Player:GetName() .. ": " .. cChatColor.LightGray .. Message )howerver i get this error all the time:
Code:
LUA: Plugins/Test/main.lua:17: attempt to index global 'Group' (a nil value)
Error in plugin chat calling function OnChat()