05.08.2015, 17:31
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
Something like this ^
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);