alowner Posted September 16, 2019 Share Posted September 16, 2019 unexpected symbol near 'in' function findPlayer(name) local matches = {} fir i,v in ipairs(getElementsByType)("player")) do if getPlayerName(v) == name then return v end local playerName = getPlayerName(v):gsud("#%x%x%x%x%x%x", "") playerName = playerName:lower() if playerName:find(name:lower(), 0) then table.insert(matches, v) end end if #matches == 1 then return matches[1] end return false end Está falando que o erro tá na linha 3 mais slá, alguém de uma olhada ae e me diga oq é Link to comment
DNL291 Posted September 17, 2019 Share Posted September 17, 2019 Tópico movido, @alowner 1 Link to comment
alowner Posted September 18, 2019 Author Share Posted September 18, 2019 20 hours ago, Furzy said: é for não fir kk Muito obrigado, porém ta unexpected symbol near '=' na linha 3, e eu não estou achando Link to comment
Furzy Posted September 18, 2019 Share Posted September 18, 2019 12 minutes ago, alowner said: Muito obrigado, porém ta unexpected symbol near '=' na linha 3, e eu não estou achando tem um '' ) '' lá errado também for i,v in ipairs(getElementsByType("player")) do 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now