Jump to content

Debug Monitor


Recommended Posts

You can use string.gsub and search and remove the hex color codes of the players name. Example:
  
local pN = "#00ff00xX#ffff00MADE#00ff00Xx" 
local new_pn = pN:gsub ( "#%x%x%x%x%x%x", "" ) 
outputChatBox ( pN.." was converted to "..new_pn ) 
  
  

And when I want to put this script?

Edited by Guest
Link to comment
Hello how to delete COLOR CODE from name in debugmonitor ?

What is debug monitor, can you show us a screenshot about what you are talking about ?

He thinks what is DayZ the Debug Monitor my post there to be only some adjustments and it will go ..

Edited by Guest
Link to comment
  • Moderators
Hello how to delete COLOR CODE from name in debugmonitor ?

What is debug monitor, can you show us a screenshot about what you are talking about ?

He thinks what is DayZ the Debug Monitor my post there to be only Niako edit and go to ..

In english please ?

Link to comment
  • Moderators
Can you show me this line 492 please ?
guiSetText(statsLabel["name"],"Name: "..string.gsub(namenohex)), "#%x%x%x%x%x%x", "" ) 

You don't understand what you are copying, do you ?

guiSetText(statsLabel["name"],"Name: "..namenohex ) 

namenohex is the name of the localPlayer without the hexa colors, so there is no need to use that string.gsub again.

Link to comment
Can you show me this line 492 please ?
guiSetText(statsLabel["name"],"Name: "..string.gsub(namenohex)), "#%x%x%x%x%x%x", "" ) 

You don't understand what you are copying, do you ?

guiSetText(statsLabel["name"],"Name: "..namenohex ) 

namenohex is the name of the localPlayer without the hexa colors, so there is no need to use that string.gsub again.

I only copy row 492, however, you wanted to or not? .. Like, the name will change and there is no written hexov but when he changed his name so that the name does not change ..

Link to comment
  • Moderators

I first fixed the line 85:

Line 85:
guiSetText(statsLabel["name"],"Meno: "..namenohex) 

Then you posted again with the exact same error but on line 492 ... You could fixed that line 492 if you understood what you copied on line 85. That's why I asked:

You don't understand what you are copying, do you ?

So for the exact same problem appears the exact same fix:

guiSetText(statsLabel["name"],"Name: "..namenohex ) 

Link to comment
I first fixed the line 85:
Line 85:
guiSetText(statsLabel["name"],"Meno: "..namenohex) 

Then you posted again with the exact same error but on line 492 ... You could fixed that line 492 if you understood what you copied on line 85. That's why I asked:

You don't understand what you are copying, do you ?

So for the exact same problem appears the exact same fix:

guiSetText(statsLabel["name"],"Name: "..namenohex ) 

Can you please write the whole post to it?

Link to comment
I first fixed the line 85:
Line 85:
guiSetText(statsLabel["name"],"Meno: "..namenohex) 

Then you posted again with the exact same error but on line 492 ... You could fixed that line 492 if you understood what you copied on line 85. That's why I asked:

You don't understand what you are copying, do you ?

So for the exact same problem appears the exact same fix:

guiSetText(statsLabel["name"],"Name: "..namenohex ) 

Can you please write the whole post to it?

Link to comment
  • Moderators

Add this:

function updateNameNoHex( _, newName ) 
    namenohex = string.gsub ( newName, '#%x%x%x%x%x%x', '' ) 
end 
addEventHandler("onClientPlayerChangeNick", localPlayer, updateNameNoHex) 

Your whole server is made by the community and it's a shame for a "coder".

You are wasting more time on the forum/community asking for help/scripts and copying and pasting codes you don't even understand than learning and fixing/making your server by yourself.

(For me, you are also wasting our time because we are here to help others with their scripts, reply to scripting questions etc and not to help someone to make his gamemode from A to Z or to teach that guy how to script).

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