Hyunsu Posted June 29, 2011 Share Posted June 29, 2011 sorry for my broken english i made some scripts. ----------------------------------------------------- addEventHandler("onClientRender", getRootElement(), function() for ~~ do -- about 20 loops local ~~~ = char type; local ~~~2 = number type; local ~~~3 = table type; local ~~~4 = element type; -- In other word, there are Many variables in many types and many calculations. dxdrawText(~~); dxDrawImage(~~); end end ); ------------------------------------------------------ there is no lack in first one hour after connection. but, after one hour, the situation is changed. These problems are occured with old, or bad computer. So, I think there are memory leak because of these phenomenon. As far as I know, Local variables disappear after uses. What do you think about these problems? Link to comment
JR10 Posted June 29, 2011 Share Posted June 29, 2011 for ~~ what the hell is ~~ and on dxDrawText and dxDrawImage Wrong Arguments and again what the hell is ~~ char type?? This is the weirdest code i've ever seen Problems?? this code shouldn't work at all. Link to comment
Deltanic Posted June 30, 2011 Share Posted June 30, 2011 @ JR10: That's called rough code, used to just show your scripting method. As Hyunsu said, the script runs fine. Ofcourse he isn't using such a code for real, as that wont even execute. @ Hyunsu: What do you mean exactly? Is the script running slower after an hour of playing? If that's the case, your system might get overheated and drop performance to cool down. 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