29.01.2014, 04:27
Which approach should I take in order to make my server run smoother. What I mean is, should I use only one variable throughout my code? The reason I'm asking is because I sometimes am forced to define a string variable with 256+ cells to read long file lines.
Using this:
Instead of:
Using this:
Code:
new str[100];
public fTest(arg)
{
format(str,sizeof str,"%d", arg);
return str;
}
public fTest2(arg)
{
format(str,sizeof str,"%d", arg);
return str;
}
Code:
public fTest(arg)
{
new str[100];
format(str,sizeof str,"%d", arg);
return str;
}
public fTest2(arg)
{
new str[100];
format(str,sizeof str,"%d", arg);
return str;
}
... and so on

