Jump to content

[HELP-ME] TeamName Problem


Lower

Recommended Posts

Posted
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.

Posted
	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

Posted
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

 

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...