Hello if i change any letters to åäö i get an error, how can i make it work with åäö
local directions = {
N = 360, 0,
NE = 315,
E = 270,
SE = 225,
S = 180,
SW = 135,
W = 90,
NW = 45,
}
Hello if i change any letters to åäö i get an error, how can i make it work with åäö
local directions = {
N = 360, 0,
NE = 315,
E = 270,
SE = 225,
S = 180,
SW = 135,
W = 90,
NW = 45,
}
Just wrap the index in [""]
Example:
local directions = {
["å"] = 1,
["ö"] = 2
}
Although I would really recommend against using åäö (non-english letters) in variable names, you should only really be using them in translations or such
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.