Forum > Coding >

[HELP PLEASE] Does anyone know how to put a lua script into a button on visual studio

Posts: 18

Threads: 7

Joined: Feb, 2019

Reputation: 0

Posted

for example ik that u have to put the 

api.SendLimitedLuaScript(" "); 

but when i put a script in the " "

it shows me that an error because its more than one line

PLEASE HELP

 

  • 0

Merlinux

Merlinux

Posts: 6

Threads: 0

Joined: Feb, 2019

Reputation: 0

Replied

Give me the Script i'm gonna do that

  • 0

Posts: 5

Threads: 0

Joined: May, 2018

Reputation: 0

Replied

You can do a multi line by having it as

api.SendLimitedLuaScript(@"script");

 

  • 0

Posts: 18

Threads: 7

Joined: Feb, 2019

Reputation: 0

Replied

i tried that but it didnt work.

  • 0

Posts: 5

Threads: 0

Joined: May, 2018

Reputation: 0

Replied

Make sure that if the script contains " your replace it with '. It works fine for me

  • 0

LogiDev

a.k.a. Logi

Posts: 4

Threads: 1

Joined: Mar, 2019

Reputation: 0

Replied

Do : api.SendLimitedLuaScript("script here");

if that didnt solve your problem you may be coding on c++

if u are coding in c++

do :

string script = whateveryoutextboxnameis.Text;

SendLimitedLuaScript("script here");

  • 0

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )