SA-MP Forums Archive
Update 3d Text label - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Update 3d Text label (/showthread.php?tid=160856)



Update 3d Text label - TKZ227 - 17.07.2010

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".


Re: Update 3d Text label - DJDhan - 17.07.2010

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


Re: Update 3d Text label - TKZ227 - 18.07.2010

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);