function in format
#1

Hi, does anyone know how I can use this function in this format?


Код:
format(string, sizeof(string), "Country: %s",GetPlayerCachedCountryName(..));
SendClientMessage(playerid, -1, string);
...


// cntr_Country[45],
stock GetPlayerCachedCountryName(playerid, output[], len = sizeof(output))
{
	if(!IsPlayerConnected(playerid))
		return 0;

	output[0] = EOS;
	strcat(output, PlayerCountryData[playerid][cntr_Country], len);

	return 1;
}
Reply


Messages In This Thread
function in format - by FinStar - 11.09.2016, 18:43
Re: function in format - by Gammix - 11.09.2016, 18:47
Re: function in format - by Jefff - 11.09.2016, 20:04
Re: function in format - by Shinja - 11.09.2016, 21:51

Forum Jump:


Users browsing this thread: 1 Guest(s)