Which is better?
#1

Option 1:

Код:
enum efuncs
{
 estring[256 char];
}
new func[][efuncs];
{
 {"Text example"},
 {"Text example 2"}
};
or

Option 2:
Код:
GetFunction(id)
{
 new string[256 char];
 switch(id)
 {
   case 1: format(string, sizeof(string), "Text example");
   case 2: format(string, sizeof(string), "Text example 2");
 }
 return string;
}
Reply


Messages In This Thread
Which is better? - by BlasterDev - 03.10.2018, 16:19
Re: Which is better? - by BlasterDev - 03.10.2018, 16:37
Re: Which is better? - by [WSF]ThA_Devil - 03.10.2018, 17:00
Re: Which is better? - by SaMuRy - 03.10.2018, 17:11
Re: Which is better? - by [WSF]ThA_Devil - 03.10.2018, 17:20
Re: Which is better? - by Nero_3D - 04.10.2018, 02:25

Forum Jump:


Users browsing this thread: 1 Guest(s)