function in format
#4

You can return string in stock
PHP код:
stock GetPlayerCachedCountryName(playerid)
{
    new 
output[35] = "Unknown";
    if(
IsPlayerConnected(playerid))
    {
        
output[0] = EOS;
        
strcat(outputPlayerCountryData[playerid][cntr_Country], 35);
    }
    return 
output;

PHP код:
format(stringsizeof(string), "Country: %s",GetPlayerCachedCountryName(playerid)); 
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)