05.12.2018, 13:32
Better would be something like:
Even without a function call and it holds your amx small.
PHP код:
//Globally declared
#define GetFactionName(%0) f_names[%0]
stock const f_names[][] = {"Civil", "Police Departament", "Paramedic Departament", "Taxi Company"};
//Now you can use:
new string[128];
format(string, 128, "Faction: %s", GetFactionName(PlayerData[playerid][faction]);