Jump to content

Scoreboard CPU Problem


Talha Tuğsat

Recommended Posts

you need to use performanceBrowser to see which function is wrong.open your internet browser and try this :

http://serverip:port/performancebrowser/    >>>>> (Enter the your server ip and port number.)

 

this page will ask you for a username and password.you will write the account information you use on the server.

Everythink you need in this link : https://wiki.multitheftauto.com/wiki/Resource:Performancebrowser

Edited by ArcAngeL
Link to comment
  • Scripting Moderators
15 minutes ago, ArcAngeL said:

you need to use performanceBrowser to see which function is wrong.open your internet browser and try this :

http://serverip:port/performancebrowser/    >>>>> (Enter the your server ip and port number.)

 

this page will ask you for a username and password.you will write the account information you use on the server.

Everythink you need in this link : https://wiki.multitheftauto.com/wiki/Resource:Performancebrowser

He can also use ipb resource which is available by default:

start ipb

ipb

In console.

Link to comment

ıts original scoreboard
 

borderColor = borderColor or tocolor(0, 183, 235, 200)
            dxDrawRectangle( (sX/2)-(scoreboardDimensions.width/2), (sY/2)-(scoreboardDimensions.height/2), scoreboardDimensions.width, scoreboardDimensions.height, cScoreboardBackground, drawOverGUI )
        dxDrawRectangle((sX/2)-(scoreboardDimensions.width/2) - 1, (sY/2)-(scoreboardDimensions.height/2) + 1, 1, scoreboardDimensions.height - 2, borderColor, postGUI)-- left
        dxDrawRectangle((sX/2)-(scoreboardDimensions.width/2) + scoreboardDimensions.width, (sY/2)-(scoreboardDimensions.height/2) + 1, 1, scoreboardDimensions.height - 2, borderColor, postGUI)-- right
        dxDrawRectangle((sX/2)-(scoreboardDimensions.width/2) + 1, (sY/2)-(scoreboardDimensions.height/2) - 1, scoreboardDimensions.width - 2, 1, borderColor, postGUI)-- top
        dxDrawRectangle((sX/2)-(scoreboardDimensions.width/2) + 1, (sY/2)-(scoreboardDimensions.height/2) + scoreboardDimensions.height, scoreboardDimensions.width - 2, 1, borderColor, postGUI)-- bottom
        dxDrawRectangle((sX/2)-(scoreboardDimensions.width/2), (sY/2)-(scoreboardDimensions.height/2), 1, 1, borderColor, postGUI)
        dxDrawRectangle((sX/2)-(scoreboardDimensions.width/2) + scoreboardDimensions.width - 1, (sY/2)-(scoreboardDimensions.height/2), 1, 1, borderColor, postGUI)
        dxDrawRectangle((sX/2)-(scoreboardDimensions.width/2), (sY/2)-(scoreboardDimensions.height/2) + scoreboardDimensions.height - 1, 1, 1, borderColor, postGUI)
        dxDrawRectangle((sX/2)-(scoreboardDimensions.width/2) + scoreboardDimensions.width - 1, (sY/2)-(scoreboardDimensions.height/2) + scoreboardDimensions.height - 1, 1, 1, borderColor, postGUI)

 

Edited by Talha Tuğsat
Link to comment
  • Moderators
39 minutes ago, Talha Tuğsat said:

ıts original scoreboard
 


borderColor = borderColor or tocolor(0, 183, 235, 200)
            dxDrawRectangle( (sX/2)-(scoreboardDimensions.width/2), (sY/2)-(scoreboardDimensions.height/2), scoreboardDimensions.width, scoreboardDimensions.height, cScoreboardBackground, drawOverGUI )
        dxDrawRectangle((sX/2)-(scoreboardDimensions.width/2) - 1, (sY/2)-(scoreboardDimensions.height/2) + 1, 1, scoreboardDimensions.height - 2, borderColor, postGUI)-- left
        dxDrawRectangle((sX/2)-(scoreboardDimensions.width/2) + scoreboardDimensions.width, (sY/2)-(scoreboardDimensions.height/2) + 1, 1, scoreboardDimensions.height - 2, borderColor, postGUI)-- right
        dxDrawRectangle((sX/2)-(scoreboardDimensions.width/2) + 1, (sY/2)-(scoreboardDimensions.height/2) - 1, scoreboardDimensions.width - 2, 1, borderColor, postGUI)-- top
        dxDrawRectangle((sX/2)-(scoreboardDimensions.width/2) + 1, (sY/2)-(scoreboardDimensions.height/2) + scoreboardDimensions.height, scoreboardDimensions.width - 2, 1, borderColor, postGUI)-- bottom
        dxDrawRectangle((sX/2)-(scoreboardDimensions.width/2), (sY/2)-(scoreboardDimensions.height/2), 1, 1, borderColor, postGUI)
        dxDrawRectangle((sX/2)-(scoreboardDimensions.width/2) + scoreboardDimensions.width - 1, (sY/2)-(scoreboardDimensions.height/2), 1, 1, borderColor, postGUI)
        dxDrawRectangle((sX/2)-(scoreboardDimensions.width/2), (sY/2)-(scoreboardDimensions.height/2) + scoreboardDimensions.height - 1, 1, 1, borderColor, postGUI)
        dxDrawRectangle((sX/2)-(scoreboardDimensions.width/2) + scoreboardDimensions.width - 1, (sY/2)-(scoreboardDimensions.height/2) + scoreboardDimensions.height - 1, 1, 1, borderColor, postGUI)

 

I don't think this part is cause it.

If you delete it, won't use many cpu?

- Any error in debugscript 3?

Edited by stPatrick
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...