3dTextLabel problem
#1

Hi, I need help with 3dtextlabel. SS:
Reply
#2

pawn Код:
new str[24];//Let us declare a new variable
format(str,sizeof(str), "%s", NickWys(playerid));//Let's use our variable to store the players name
Create3DTextLabel(str,KOLOR_PBIALY,0.0,0.0,0.0,20.0,-1,0);//Use the variable 'str'
Reply
#3

But i really want to use with this function:
pawn Код:
stock NickWys(playerid)
{
    new nick[64], nickname[MAX_PLAYER_NAME];
    GetPlayerName(playerid,nickname,MAX_PLAYER_NAME);
    UnderscoreToSpace(nickname);
    format(nick, sizeof(nick), "%s (ID: %d)", nickname, playerid);
    strmid(NickCzatx[playerid],nickname, 0, 64, 64);
}
With this I can make ranks under the nickname (sorry for bad english :P)

eg.
pawn Код:
stock NickWys(playerid)
{
    new nick[64], nickname[MAX_PLAYER_NAME];
    GetPlayerName(playerid,nickname,MAX_PLAYER_NAME);
    UnderscoreToSpace(nickname);
    format(nick, sizeof(nick), "%s (ID: %d, %dh)", nickname, playerid, PlayerInfo[playerid][pGodziny]);
    strmid(NickCzatx[playerid],nickname, 0, 64, 64);
    if(GetPVarInt(playerid, "sluzba") == 1)
    {
        if(PlayerInfo[playerid][pFrakcja] == 3)
        {
            format(nick, sizeof(nick), "%s (%d)\n[UMAP]", nickname, playerid);
        }
        if(PlayerInfo[playerid][pFrakcja] == 8)
        {
            format(nick, sizeof(nick), ""KOLOR_APPD"%s (%d)\n[APPD]"BIALY"", nickname, playerid);
        }
        if(PlayerInfo[playerid][pFrakcja] == 4)
        {
            format(nick, sizeof(nick), "%s (%d)\n[APMC]", nickname, playerid);
        }
        if(PlayerInfo[playerid][pFrakcja] == 1)
        {
            format(nick, sizeof(nick), "%s (%d)\n[APN]", nickname, playerid);
        }
        if(PlayerInfo[playerid][pFrakcja] == 99)
        {
            format(nick, sizeof(nick), "%s (%d)\n[SAPD]", nickname, playerid);
        }
    }
}
Reply
#4

Post the pawn code please
Reply
#5

Done, you can close
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)