10.02.2019, 15:31
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
This is that textdraw
Код:
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; }
Код:
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);