Results 1 to 2 of 2
  1. #1
    HAMismyname's Avatar
    Join Date
    May 2015
    Gender
    male
    Location
    planet earth
    Posts
    9
    Reputation
    10
    Thanks
    0
    My Mood
    Amused

    Question Why doesnt this work??

     

    Totalpoints = 0
    local trigger= vgui.Create ("DFrame");
    trigger:RegisterEvent("CHAT_MSG_SAY");
    trigger:SetScript("OnEvent",function(self,event,ms g)
    if event=="CHAT_MSG_SAY" and msg==".givepoint" then
    Totalpoints = Totalpoints + 1
    end
    end);


    Why does this not work?

    Current error message:
    [ERROR] lua/code.lua:10: attempt to call global 'CreateFrame' (a nil value)
    1. unknown - lua/splash.lua:10

    - - - Updated - - -

    Nevermind close thread Im stupid, i figured it out

  2. #2
    Hunter's Avatar
    Join Date
    Dec 2013
    Gender
    male
    Location
    Depths Of My Mind.
    Posts
    17,468
    Reputation
    3771
    Thanks
    6,159
    My Mood
    Cheerful
    /Moved to the correct section, solved & closed.

Similar Threads

  1. [Solved] Extremely new to lua, why doesnt this work?
    By HAMismyname in forum Garry's Mod Coding & Resources
    Replies: 7
    Last Post: 05-16-2016, 08:16 AM
  2. [Help] Why doesnt this button work?
    By color0a in forum Garry's Mod Coding & Resources
    Replies: 5
    Last Post: 02-25-2015, 05:54 PM
  3. why doesnt this work?
    By koolman123 in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 5
    Last Post: 08-28-2010, 04:08 AM
  4. why doesnt 2prong work?
    By chubkakes in forum WarRock - International Hacks
    Replies: 12
    Last Post: 02-24-2008, 04:38 PM
  5. why doesnt this work?
    By $GHOST$ in forum C++/C Programming
    Replies: 11
    Last Post: 04-06-2006, 09:34 PM