makepremium command?
#8

The code you posted should work too.

To include variables in strings (such as player names), use the "format" function: https://sampwiki.blast.hk/wiki/Format
Код:
new string[64], pname[24];
GetPlayerName(playerid, pname, sizeof(pname));
format(string, sizeof(string), "My name is %s", pname);
SendClientMessage(playerid, -1, string);
Something like this ^
Reply


Messages In This Thread
makepremium command? - by VanillaRain - 05.08.2015, 16:50
Re: makepremium command? - by SpikeSpigel - 05.08.2015, 17:10
Re: makepremium command? - by HazardouS - 05.08.2015, 17:12
Re: makepremium command? - by VanillaRain - 05.08.2015, 17:13
Re: makepremium command? - by VanillaRain - 05.08.2015, 17:18
Re: makepremium command? - by HazardouS - 05.08.2015, 17:25
Re: makepremium command? - by VanillaRain - 05.08.2015, 17:27
Re: makepremium command? - by HazardouS - 05.08.2015, 17:31
Re: makepremium command? - by VanillaRain - 05.08.2015, 17:35
Re: makepremium command? - by HazardouS - 05.08.2015, 17:37

Forum Jump:


Users browsing this thread: 1 Guest(s)