It is probably a REALLY stupid question, but:
How do i make a string inside a string? It throws errors when i put them like this:
[CODE]
v:SendLua("net.Start(\"blah\")
net.WriteType( 8 )
net.SendToServer()
")[/CODE]
[ERROR] lua/ac.lua:3: unfinished string near ' "net.Start("blah") net.WriteType( 8) ) net.SendToServer()'
1. unknown - lua/ac.lua:0
[QUOTE=Padle;49306680]It is probably a REALLY stupid question, but:
How do i make a string inside a string? It throws errors when i put them like this:
[CODE]
v:SendLua("net.Start(\"blah\")
net.WriteType( 8 )
net.SendToServer()
")[/CODE]
[ERROR] lua/ac.lua:3: unfinished string near ' "net.Start("blah") net.WriteType( 8) ) net.SendToServer()'
1. unknown - lua/ac.lua:0[/QUOTE]
dont use sentlua, its not secure.
[QUOTE=whitestar;49306697]" STRING " ' STRING ' [[ STRING ]]
[editline]13th December 2015[/editline]
[code]
v:SendLua("net.Start('Blah')"
[/code][/QUOTE]
Still throws the same error.
[ERROR] lua/ac.lua:4: unfinished string near '"net.Start('blah') '
1. unknown - lua/ac.lua:0
Because you forgot the " after ).
[QUOTE=whitestar;49306774]Because you forgot the " after ).[/QUOTE]
Not really;i want the client to send these 3 lines, so there shouldnt be a ", right?
Sorry, you need to Log In to post a reply to this thread.