Jump to content

Hex problem


Recommended Posts

Posted

why i cant see the player color when i pm him

function thePM(thePlayer,commandName,sendToName,...)
	local pmWords = { ... }
	local pmMessage = table.concat( pmWords, " " )
	if sendToName then
		if getPlayerFromNamePart2(sendToName) then
		local toPlayer = getPlayerFromNamePart2(sendToName)
		local r,g,b = getPlayerNametagColor (toPlayer)
			if not (toPlayer == thePlayer) then --that () needed
				if not (pmMessage == "") then
					outputChatBox("#FC3986(Whisper) to " .. getPlayerName(toPlayer) .. ":#ffffff " .. pmMessage, thePlayer, r, g, b, true)

Part of my script

  • Moderators
Posted

There are already two hex values inside of the string. They will be dominating the colour.

Do you want to improve your Lua programming skills and make less mistakes?   Start with Lua Language Server!   🙀

 

  Useful functions  3x 

  Tutorials  4x 

 

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