SetSignLines does not work
#7
You'd need to make an array out of the "lines" variable. Lua has bit different syntax rules:
local a, b, c = 1, 2, 3, 4
--> a == 1; b == 2; c == 3; 4 gets forgotten

-- In this same fashion:
local lines = "line1", "line2", "line3", "line4"
--> lines = "line1"; Lua discards "line2" - "line4"

-- You probably want this:
local lines = { World:GetSignLines(PosX, PosY, PosZ) }
--> lines[1] == "line1"; lines[2] == "line2" etc.
Reply
Thanks given by:


Messages In This Thread
SetSignLines does not work - by nixi - 01-16-2016, 12:37 AM
RE: SetSignLines does not work - by NiLSPACE - 01-16-2016, 01:23 AM
RE: SetSignLines does not work - by nixi - 01-16-2016, 02:21 AM
RE: SetSignLines does not work - by ThuGie - 01-16-2016, 03:21 AM
RE: SetSignLines does not work - by nixi - 01-16-2016, 04:08 AM
RE: SetSignLines does not work - by NiLSPACE - 01-16-2016, 04:06 AM
RE: SetSignLines does not work - by xoft - 01-16-2016, 06:54 AM
RE: SetSignLines does not work - by xoft - 01-16-2016, 06:54 AM
RE: SetSignLines does not work - by nixi - 01-21-2016, 03:52 AM
RE: SetSignLines does not work - by Seadragon91 - 01-16-2016, 07:32 AM
RE: SetSignLines does not work - by xoft - 01-16-2016, 07:59 AM



Users browsing this thread: 2 Guest(s)