3dTextLabel problem
#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


Messages In This Thread
3dTextLabel problem - by sylvi - 31.03.2013, 12:36
Re: 3dTextLabel problem - by Neil. - 31.03.2013, 12:40
Re: 3dTextLabel problem - by sylvi - 31.03.2013, 12:43
Re: 3dTextLabel problem - by Gamer_007 - 31.03.2013, 12:47
Re: 3dTextLabel problem - by sylvi - 31.03.2013, 12:48

Forum Jump:


Users browsing this thread: 1 Guest(s)