Jump to content

Preciso de ajuda, simples


Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...