Update 3d Text label
#1

I'm trying to update the 3d text label PlayerRank which is a string everytime the player updates..

I have:

Update3dTextLabel(Text3D:PlayerRank, BLUE, ranktext);

ranktext is already defined above.

I get the warning "Argument type mismatch".
Reply
#2

You need to show how you are formatting the "ranktext" string.
Reply
#3

pawn Код:
if(PlayerInfo[playerid][Rank] == 0)
        {
            ranktext = "Newbie";
        }
        else if(PlayerInfo[playerid][Rank] == 1)
        {
            ranktext = "Playa";
        }
        else if(PlayerInfo[playerid][Rank] == 2)
        {
            ranktext = "Gangsta";
        }
        else if(PlayerInfo[playerid][Rank] == 3)
        {
            ranktext = "Hitman";
        }
        else if(PlayerInfo[playerid][Rank] == 4)
        {
            ranktext = "OG";
        }
        else if(PlayerInfo[playerid][Rank] == 5)
        {
            ranktext = "Double OG";
        }
        else if(PlayerInfo[playerid][Rank] == 6)
        {
            ranktext = "Triple OG";
        }
        else if(PlayerInfo[playerid][Rank] == 7)
        {
            ranktext = "GodFather";
        }

    format(string, sizeof(string), "Rank: %s", ranktext);
    PlayerRank[playerid] = Create3DTextLabel(string,RED,30.0,40.0,50.0,40.0,0);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)