Added a few arrays, .amx size got 400kb bigger
#1

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
Reply


Messages In This Thread
Added a few arrays, .amx size got 400kb bigger - by IKnowWhatIAmDoing - 06.07.2014, 17:14
Re: Added a few arrays, .amx size got 400kb bigger - by Ihateyou - 06.07.2014, 17:30
Re: Added a few arrays, .amx size got 400kb bigger - by IKnowWhatIAmDoing - 06.07.2014, 17:33
Re: Added a few arrays, .amx size got 400kb bigger - by Jefff - 06.07.2014, 18:05
Re: Added a few arrays, .amx size got 400kb bigger - by IKnowWhatIAmDoing - 06.07.2014, 18:14

Forum Jump:


Users browsing this thread: 3 Guest(s)