19.03.2016, 19:22
Hey, how do I replace the characters ( ' ' ) to output "Unknown"?
That's what I want
Here's my code http://pastebin.com/btkB934q (SouthclawJK & Scavenge Survive)
https://github.com/Southclaw/Scaveng...er/country.pwn
Код:
stock GetPlayerCountryDataAsString(playerid, output[], len = sizeof(output)) { if(!IsPlayerConnected(playerid)) return 0; format(output, len, "\ HHostname: '%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; }
That's what I want
Here's my code http://pastebin.com/btkB934q (SouthclawJK & Scavenge Survive)
https://github.com/Southclaw/Scaveng...er/country.pwn