11.09.2016, 21:51
You can return string in stock
PHP код:
stock GetPlayerCachedCountryName(playerid)
{
new output[35] = "Unknown";
if(IsPlayerConnected(playerid))
{
output[0] = EOS;
strcat(output, PlayerCountryData[playerid][cntr_Country], 35);
}
return output;
}
PHP код:
format(string, sizeof(string), "Country: %s",GetPlayerCachedCountryName(playerid));