26.08.2015, 10:59
You need to make use of the 'format' function.
https://sampwiki.blast.hk/wiki/Format
pawn Код:
public OnPlayerRequestSpawn(playerid)
{
new pName[MAX_PLAYER_NAME], welcomestring[35];
GetPlayerName(playerid, pName, sizeof(pName));
format(welcomestring, sizeof(welcomestring), "Welcome %s", pName);
GameTextForPlayer(playerid, welcomestring, 2500, 3);
return 1;
}