View Single Post
07-13-10, 11:30 PM   #20
Torhal
A Pyroguard Emberseer
 
Torhal's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2008
Posts: 1,196
You are also needlessly complicating your code:

Code:
function CreateText(name,text,x,y,parent,w,h,relativeto,relativepoint)
  
    Parent = parent
  

  local Name = name
  local TextX = x
  local TextY = y
  local RelativeTo = relativeto
  local RelativePoint = relativepoint
  local TextWidth = w
  local TextHeight = h
  local Text = text
Why are you making variables to store variables? Just use the function arguments directly.
__________________
Whenever someone says "pls" because it's shorter than "please", I say "no" because it's shorter than "yes".

Author of NPCScan and many other AddOns.
  Reply With Quote