How to make these locals variables global?
#3

Better would be something like:

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(string128"Faction: %s"GetFactionName(PlayerData[playerid][faction]); 
Even without a function call and it holds your amx small.
Reply


Messages In This Thread
How to make these locals variables global? - by Fabyx15 - 27.11.2018, 17:17
Re: How to make these locals variables global? - by Alexis17 - 05.12.2018, 13:12
Re: How to make these locals variables global? - by Kaliber - 05.12.2018, 13:32
Re: How to make these locals variables global? - by Fabyx15 - 05.12.2018, 14:14

Forum Jump:


Users browsing this thread: 1 Guest(s)