A little question about GameTextForPlayer
#2

You need to make use of the 'format' function.

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;
}
https://sampwiki.blast.hk/wiki/Format
Reply


Messages In This Thread
A little question about GameTextForPlayer - by saffierr - 26.08.2015, 10:37
Re: A little question about GameTextForPlayer - by Threshold - 26.08.2015, 10:59

Forum Jump:


Users browsing this thread: 1 Guest(s)