Dialog, tags replace
#1

Hello, I want to ask you, I have a dialogue, and it got the information about the players (location, etc ..) and I need to do to make the brand '' replaced the word "Unknown"



That's the tag ( ' ' ) replace (Unknown) knows someone how to do it?

There is original script from Scavenge & Survive (SouthclawJK)

https://raw.githubusercontent.com/So...er/country.pwn

I was inspired by this one

Код:
stock GetPlayerCountryDataAsString(playerid, output[], len = sizeof(output))
{
	if(!IsPlayerConnected(playerid))
		return 0;

	format(output, len, "\
		Hostname: '%s'\n\
		Code: '%s'\n\
		Country: '%s'\n\
		Region: '%s'\n\
		ISP: '%s'\n\
		Proxy: %s",
		PlayerCountryData[playerid][cntr_Hostname],
		PlayerCountryData[playerid][cntr_Code],
		PlayerCountryData[playerid][cntr_Country],
		PlayerCountryData[playerid][cntr_Region],
		PlayerCountryData[playerid][cntr_ISP],
		PlayerCountryData[playerid][cntr_Proxy] ? ("Yes") : ("No"));

	return 1;
}
Reply


Messages In This Thread
Dialog, tags replace - by FinStar - 18.03.2016, 21:35
Re: Dialog, tags replace - by Virtual1ty - 18.03.2016, 22:14
Re: Dialog, tags replace - by FinStar - 19.03.2016, 00:06
Re: Dialog, tags replace - by FinStar - 19.03.2016, 08:20
Re: Dialog, tags replace - by FinStar - 19.03.2016, 11:03

Forum Jump:


Users browsing this thread: 1 Guest(s)