29.05.2015, 06:28
It does, if he has something like this, it will cause it. I just pointed it out since if he is doing this at the script it might be a cause, but it would not be as big as 100mb, unless he's doing something very very wrong.
This for example gives you an extra 100kb
The reason for that to happen is because the script checks the script if it's like if(number == 1) if(number == 2) if (number == 3) if (number == 4) etc. etc. all the way up to 10000 so ibnstead checking if the number is higher or lower is better.
This for example gives you an extra 100kb
The reason for that to happen is because the script checks the script if it's like if(number == 1) if(number == 2) if (number == 3) if (number == 4) etc. etc. all the way up to 10000 so ibnstead checking if the number is higher or lower is better.
pawn Code:
stock ReturnString(number)
{
new String[22];
switch(number)
{
case 1..99: String = "something1";
case 100..999: String = "something2";
case 1000..9999: String = "something3";
}
return String;
}


