Do a "static" variable stay on the memory until the script stops?
#1

I have some global static variables as well as some local ones. I want to know if both of them stays on the memory for as long as the server is running.
Reply
#2

As long as you don't do a gmx / restart
Reply
#3

Quote:
Originally Posted by Nero_3D
Посмотреть сообщение
As long as you don't do a gmx / restart
Okay. But a "new" variable get destroyed after it leaves it's scope right?
Reply
#4

Yes, just read pawn-lang.pdf (page 60++) or just press the second subject on the left "Data and declarations"
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)