Lower Posted April 16, 2017 Share Posted April 16, 2017 local teamname = (getTeamName(playerTeam) or "Player") Bad argument @ 'getTeamName' [Expected team at argument 1, got boolean] The code have errors? -- Sorry bad english, i'm portuguese. Link to comment
Fist Posted April 16, 2017 Share Posted April 16, 2017 variable playerTeam is not a team object. I can't really much tell you anything without seeing full script. Link to comment
Lower Posted April 17, 2017 Author Share Posted April 17, 2017 local playerTeam = getPlayerTeam ( player, team2 ) local teamname = (getTeamName(playerTeam) or "Player") local team = "#00AAFF"..teamname Are these 3 lines possible to identify the problem? thanks for help Link to comment
Fist Posted April 17, 2017 Share Posted April 17, 2017 1 hour ago, Lower said: local playerTeam = getPlayerTeam ( player, team2 ) local teamname = (getTeamName(playerTeam) or "Player") local team = "#00AAFF"..teamname Are these 3 lines possible to identify the problem? thanks for help try this or if are you using it on client side then just replace "player" with "localPlayer" if it's used only for local player local playerTeam = getPlayerTeam(player) local teamname = (getTeamName(playerTeam)) local team = "#00AAFF"..teamname Link to comment
Mr.Loki Posted April 17, 2017 Share Posted April 17, 2017 @LowerShow the whole function. 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