[Help] Textdraw
#3

Okay, thank you I will try it out.

EDIT:
Now it looks like this but still doesn't show:

pawn Код:
new otext[20];
                if(PlayerInfo[playerid][pOrigin] == 1) { otext = "USA"; }
                else if(PlayerInfo[playerid][pOrigin] == 2) { otext = "Europe"; }
                else if(PlayerInfo[playerid][pOrigin] == 3) { otext = "Asia"; }
                else if(PlayerInfo[playerid][pOrigin] == 4) { otext = "Africa"; }
            new name[MAX_PLAYER_NAME];
            new level = PlayerInfo[playerid][pLevel];
            new age = PlayerInfo[playerid][pAge];
            new pnumber = PlayerInfo[playerid][pPnumber];
            new coordsstring[256];
                format(coordsstring, sizeof(coordsstring),"< %s >",name);
                Stats[0] = TextDrawCreate(507, 145, coordsstring);
                format(coordsstring, sizeof(coordsstring), "Level:[%d]", level);
                Stats[1] = TextDrawCreate(507, 155, coordsstring);
                format(coordsstring, sizeof(coordsstring), "Age:[%d]", age);
                Stats[2] = TextDrawCreate(507, 165, coordsstring);
                format(coordsstring, sizeof(coordsstring), "Origin:[%d]",otext);
                Stats[3] = TextDrawCreate(507, 175, coordsstring);
                format(coordsstring, sizeof(coordsstring), "Ph:[%d]",pnumber);
                Stats[4] = TextDrawCreate(507, 185, coordsstring);
                Stats[5] = TextDrawCreate(507, 196, "_______________");
                //Stats[0]
                TextDrawAlignment(Stats[0], 1);
                TextDrawFont(Stats[0], 1);
                TextDrawLetterSize(Stats[0], 0.1, 0.1);
                TextDrawColor(Stats[0], COLOR_LIGHT_BLUE);
                //Stats[1]
                TextDrawAlignment(Stats[1], 1);
                TextDrawFont(Stats[1], 1);
                TextDrawLetterSize(Stats[1], 0.1, 0.1);
                TextDrawColor(Stats[1], COLOR_LIGHT_BLUE);
                //Stats[2]
                TextDrawAlignment(Stats[2], 1);
                TextDrawFont(Stats[2], 1);
                TextDrawLetterSize(Stats[2], 0.1, 0.1);
                TextDrawColor(Stats[2], COLOR_LIGHT_BLUE);
                //Stats[3]
                TextDrawAlignment(Stats[3], 1);
                TextDrawFont(Stats[3], 1);
                TextDrawLetterSize(Stats[3], 0.1, 0.1);
                TextDrawColor(Stats[3], COLOR_LIGHT_BLUE);
                //Stats[4]
                TextDrawAlignment(Stats[4], 1);
                TextDrawFont(Stats[4], 1);
                TextDrawLetterSize(Stats[4], 0.1, 0.1);
                TextDrawColor(Stats[4], COLOR_LIGHT_BLUE);
                //Stats[5]
                TextDrawAlignment(Stats[5], 1);
                TextDrawFont(Stats[5], 1);
                TextDrawLetterSize(Stats[5], 0.1, 0.1);
                TextDrawColor(Stats[5], COLOR_LIGHT_BLUE);
Reply


Messages In This Thread
[Help] Textdraw - by Benne - 17.11.2009, 13:29
Re: [Help] Textdraw - by dice7 - 17.11.2009, 13:35
Re: [Help] Textdraw - by Benne - 17.11.2009, 13:39
Re: [Help] Textdraw - by dice7 - 17.11.2009, 14:36
Re: [Help] Textdraw - by Benne - 17.11.2009, 14:40
Re: [Help] Textdraw - by Unte99 - 08.10.2010, 18:23

Forum Jump:


Users browsing this thread: 2 Guest(s)