Help Cant Do a Lua Script

  • AgileAsassian
    8th Feb 2014 Member 0 Permalink

    I made a file in my tpt folder called multi.lua and went to the tpt console and type dofile("muti.lua") and then it says multi.lua:1417: '=' expected near '<eof>'

    And so i did dofile("muti.txt") then it said cannot open multi.txt: No such file or directory

  • Schneumer
    8th Feb 2014 Member 0 Permalink

    @AgileAsassian (View Post)

     Oh you are havin the same problem? First of all, it should be called tptmp.lua unless you are doing a different script.....are you doing the multiplayer one?

  • CeeJayBee
    8th Feb 2014 Member 0 Permalink

    "I made a file in my tpt folder called multi.lua"

     

    Yeah, it should be tptmp.lua (I'm assuming that's what you are trying to load)

     

    "And so i did dofile("muti.txt") then it said cannot open multi.txt: No such file or directory"

     

     .txt files can't be run. Try using cracker64's "The last autorun you'll ever need"

    Edited 2 times by CeeJayBee. Last: 8th Feb 2014
  • mniip
    8th Feb 2014 Developer 0 Permalink
    @CeeJayBee (View Post)
    Any files can be run, extension is just a visual difference.

    @AgileAsassian (View Post)
    If the file is called multi.lua dofile'ing multi.txt obviously won't work. The first thing you did was right. the error about '=' seems to be the error in the script, nothing of your fault
  • CeeJayBee
    8th Feb 2014 Member 0 Permalink

    mniip:

    @AgileAsassian (View Post)
    If the file is called multi.lua dofile'ing multi.txt obviously won't work. The first thing you did was right. the error about '=' seems to be the error in the script, nothing of your fault

     That's what I meant :P