Textdraw string not changing
#1

On my Login textdraw I have a texdtraw that says "Welcome, PlayerName" I have did this but it is not working textdraw still says "Welcome," and that was his default string


Код:
public OnPlayerConnect(playerid)
{
    new string[100], nameic[MAX_PLAYER_NAME];
    GetPlayerName(playerid, nameic, MAX_PLAYER_NAME);
    format(string, sizeof(string),"Welcome, %s", nameic);
    PlayerTextDrawSetString(playerid, LoginTD[playerid][21], string);
    return 1;
}
This is that textdraw
Код:
	LoginTD[playerid][21] = CreatePlayerTextDraw(playerid, 156.550186, 382.041595, "Welcome,");
	PlayerTextDrawLetterSize(playerid, LoginTD[playerid][21], 0.126249, 0.649167);
	PlayerTextDrawAlignment(playerid, LoginTD[playerid][21], 1);
	PlayerTextDrawColor(playerid, LoginTD[playerid][21], -1);
	PlayerTextDrawUseBox(playerid, LoginTD[playerid][21], true);
	PlayerTextDrawBoxColor(playerid, LoginTD[playerid][21], 0);
	PlayerTextDrawSetShadow(playerid, LoginTD[playerid][21], 0);
	PlayerTextDrawSetOutline(playerid, LoginTD[playerid][21], 1);
	PlayerTextDrawFont(playerid, LoginTD[playerid][21], 2);
	PlayerTextDrawSetProportional(playerid, LoginTD[playerid][21], 1);
Reply


Messages In This Thread
Textdraw string not changing - by TokicMajstor - 10.02.2019, 15:31
Re: Textdraw string not changing - by TokicMajstor - 11.02.2019, 16:50
Re: Textdraw string not changing - by Florin48 - 11.02.2019, 17:04
Re: Textdraw string not changing - by Florin48 - 11.02.2019, 17:07
Re: Textdraw string not changing - by Freaksken - 11.02.2019, 18:09
Re: Textdraw string not changing - by TokicMajstor - 11.02.2019, 19:13

Forum Jump:


Users browsing this thread: 1 Guest(s)