Results 1 to 6 of 6
  1. #1
    Azrius's Avatar
    Join Date
    Jun 2013
    Gender
    female
    Posts
    238
    Reputation
    10
    Thanks
    251
    My Mood
    Bashful

    Talking [URGENT][ALERT][HELP]help me or im going to die

    how do i use runstring with the new gmod 13 headers i tried using get field and call like this

    LUA->GetField(-1, "print");
    LUA->PushString("xxxxxxxxxxxxxxxxxx");
    LUA->Call(1, 0);

    but when i run it it tells me

    [ERROR] attempt to index a number value
    1. ExampleFunc - [C]:-1
    2. unknown - lua/testbed.lua:2


    btw i just copy/pasted the example code and put the above shit in the example function and tried to call it in a script and also i tried blue kirbys extended luabase but it crashes my game when i try to run a string

    thx gamers
    Last edited by Azrius; 09-22-2014 at 12:22 PM.

  2. #2
    Azrius's Avatar
    Join Date
    Jun 2013
    Gender
    female
    Posts
    238
    Reputation
    10
    Thanks
    251
    My Mood
    Bashful
    i figured it out thx for reading though. also wtf why cant i call chat.AddText with get field and push string it says attempt to call nill value

  3. #3
    niller303's Avatar
    Join Date
    Feb 2011
    Gender
    male
    Location
    Denmark
    Posts
    105
    Reputation
    10
    Thanks
    475
    You should look at https://wiki.garrysmod.com/page/C_Lua:_Functions before posting on the forums
    [IMG]https://www.danasof*****m/sig/Obama33868.jpg[/IMG]

  4. #4
    Azrius's Avatar
    Join Date
    Jun 2013
    Gender
    female
    Posts
    238
    Reputation
    10
    Thanks
    251
    My Mood
    Bashful
    Quote Originally Posted by niller303 View Post
    You should look at https://wiki.garrysmod.com/page/C_Lua:_Functions before posting on the forums
    this is really helpful ty

  5. #5
    Trollaux's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Posts
    2,074
    Reputation
    137
    Thanks
    792
    Quote Originally Posted by niller303 View Post
    You should look at https://wiki.garrysmod.com/page/C_Lua:_Functions before posting on the forums
    credits to blue kirby for writing that epix wikia pagens!
    d e a d b o y s
    Quote Originally Posted by Dave84311 View Post
    What do you call a troll with shitty jokes?
    Trollaux
    Quote Originally Posted by Kyeran View Post
    Foot job with lots of oil.
    Quote Originally Posted by Kyeran View Post
    If she's 12, I'm 12.

  6. #6
    Color's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Posts
    19,896
    Reputation
    2588
    Thanks
    7,864
    My Mood
    Lurking
    //Solved.....

    Member Since 8/05/2012
    Editor 4/04/13 - 4/21/13
    Middleman 7/14/13 - 11/4/13

    Battlefield Minion 6/13/14-3/20/15
    Steam Minion 7/16/14-3/20/15

    Minion+ 10/1/14-3/20/15
    M.A.T. Minion 10/19/14-3/20/15
    ROTMG Minion 1/14/15-3/20/15

    Donator Since 2/26/15 (Thanks @Cursed!)
    Steam Minion 5/9/15 - 11/5/15
    OSFPS Minion 9/15/15 - 11/5/15


Similar Threads

  1. HELP ME SLOW LOADING WHILE GOING IN GAME
    By tabuzo013 in forum CrossFire Help
    Replies: 1
    Last Post: 04-05-2010, 03:18 AM
  2. Help me and yourself by going here through this link!!!!
    By dakillas34 in forum Combat Arms Discussions
    Replies: 6
    Last Post: 03-13-2010, 01:18 PM
  3. [URGENT] .BAT FILE HELP!!!!
    By ozza in forum General Hacking
    Replies: 2
    Last Post: 09-12-2009, 11:17 AM
  4. [UrGENT] I Need Help, HELP ME!
    By dillster7879 in forum Blackshot Hacks & Cheats
    Replies: 2
    Last Post: 09-07-2009, 03:53 PM
  5. C&C read alert 2 help [right place?]
    By kublkun in forum General
    Replies: 0
    Last Post: 08-31-2009, 07:48 AM