06.07.2014, 17:14
stock ReturnNumber(amount)
{
new name[15]; //
switch(amount)
{
case 0..99: name= "Blah1";
case 100..249: name= "Blah2";
case 250..499: name= "Blah3";
case 500..999: name= "Blah4";
case 1000..2499: name= "Blah5";
case 2500..4999: name= "Blah6";
case 5000..9999: name= "Blah7";
default: name= "Blah8" ;
}
return name;
}
So I added a few checks like this (roughly 5 of them), and my .amx size got really big (400kb bigger than usual). I also don't call them very often. (2-3 times max)
And the max array size I gave for them is like 35 or something. So is there anyway to decrease my .amx size? But by using these functions?
Ps. It didn't affect RAM, at all.
Oh and, I'm using them on dialogs and some textdraws, and client messages, as a string to return
{
new name[15]; //
switch(amount)
{
case 0..99: name= "Blah1";
case 100..249: name= "Blah2";
case 250..499: name= "Blah3";
case 500..999: name= "Blah4";
case 1000..2499: name= "Blah5";
case 2500..4999: name= "Blah6";
case 5000..9999: name= "Blah7";
default: name= "Blah8" ;
}
return name;
}
So I added a few checks like this (roughly 5 of them), and my .amx size got really big (400kb bigger than usual). I also don't call them very often. (2-3 times max)
And the max array size I gave for them is like 35 or something. So is there anyway to decrease my .amx size? But by using these functions?
Ps. It didn't affect RAM, at all.
Oh and, I'm using them on dialogs and some textdraws, and client messages, as a string to return