I have the following Lua script and it works fine until I add two decimal points. It errors with “malformed number near ‘10.7.5’”
if event.user_tag2 == "Team1" then
event.sid = 10.1
elseif event.user_tag2 == "Team2" then
event.sid = 10.4
elseif event.user_tag2 == "Team3" then
event.sid = 10.6
elseif event.user_tag2 == "Team4" then
event.sid = 10.7
elseif event.user_tag2 == "Team5" then
event.sid = 10.7.5
elseif event.user_tag2 == "Team6" then
event.sid = 10.3
elseif event.user_tag2 == "Team7" then
event.sid = 10.2
elseif event.user_tag2 == "Team8" then
event.sid = 10.5
elseif event.user_tag2 == "Team9" then
event.sid = 10.9
elseif event.user_tag2 == "Team10" then
event.sid = 11.2
elseif event.user_tag2 == "Team11" then
event.sid = 10.8
else
event.sid = 10.4
end
return event
Does anyone have any ideas why this is happening?
Thanks in advance!