Author Topic: Prefix help  (Read 2085 times)

0 Members and 3 Guests are viewing this topic.

Offline IizStormViper

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
Prefix help
« on: July 07, 2012, 04:29:20 PM »
Hey So I'm setting up ULX to add tags in front of names, but I'm new to lua, this is what I have I thought it would work but it doesn't, Unless I am putting it in the wrong.lua? Mostly I'm probably wrong about it :I. Please help though.

Code: [Select]
local function lOnPlayerChat( ply )
if ply:IsUserRank == "storm" then
    table.insert( tab, Color( team.GetColor( lTeam ) ) )
    table.insert( tab, "[Storm] " )
end

An Error Has Occurred!

array_keys(): Argument #1 ($array) must be of type array, null given