Jump to content
  • 0

Dialog + Textdraw


ToX1c

Question

Salut cum fac si eu sa pun numele acel sub mapa intr-un dialog?

new pnamee[24];
    GetPlayerName(playerid, pnamee, sizeof(pnamee));
    Nume[playerid] = TextDrawCreate(55.000000,429.000000,pnamee);
    TextDrawAlignment(Nume[playerid],0);
    TextDrawFont(Nume[playerid],1);
    TextDrawLetterSize(Nume[playerid],0.299999,1.000000);
    TextDrawColor(Nume[playerid],0xC7DF14FF);
    TextDrawSetOutline(Nume[playerid],1);
    TextDrawSetProportional(Nume[playerid],1);
    TextDrawSetShadow(Nume[playerid],1);
    TextDrawShowForPlayer(playerid,Nume[playerid]);

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

//sus in script
#define DIALOG_NAME id_dialog //modifica id_dialog

//sub comanda sau ce vrei tu:
new string[128],playername[MAX_PLAYER_NAME];
GetPlayerName(playerid,playername,MAX_PLAYER_NAME);
format(string,128,"Your nickname is: %s",playername)
ShowPlayerDialog(playerid,DIALOG_NAME,DIALOG_STYLE_MSGBOX,,"You nickname",string,"Login","Cancel")

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.