28.10.2013, 16:43
I have one dilemma what is faster and smarter to do , and why?
I more interested in why?
Example 1:
Example 2:
What is bather to do use one global variable for every or create local then use it ?
Which one take less resource?
And do you need to destroy local variable after use or is automatic ?
I more interested in why?
Example 1:
Код:
stock foo(playerid,param1,param2[]) { new Local_Variable[512]; // some code use Local_Variable // and more code }
Код:
new Global_Variable[512]; stock foo(playerid,param1,param2[]) { // some code use Global_Variable // and more code }
Which one take less resource?
And do you need to destroy local variable after use or is automatic ?