23.12.2013, 11:43
Great tutorial
But I have a question..
You say that we should use static globally because its created once until the server is closed ? But Isn't that the same as "New" ?
Also as I knew from the wiki Ithat I can use it locally if I don't want it to forget it's value, like declaring a global variable locally..
And globally just If I will only use it in the file I declared it in.. Is there any other reason/something I should use it for ?
Yes, It'll call "GetName" 5 times when you can get the name once.
That actually noticed me, I was using it in a command like 10 times.. Thanks Konstantinos
But I have a question..
You say that we should use static globally because its created once until the server is closed ? But Isn't that the same as "New" ?
Also as I knew from the wiki Ithat I can use it locally if I don't want it to forget it's value, like declaring a global variable locally..
And globally just If I will only use it in the file I declared it in.. Is there any other reason/something I should use it for ?
Quote:
You refer to that something like that:
pawn Code:
Would it be bad?. No understood eh very well :S. |
That actually noticed me, I was using it in a command like 10 times.. Thanks Konstantinos