Spy Class 3dTextLabel delete problem?
#1

Hi all,

İ'm add spy class gamemode.But i have a problem..When selecting players spy class 3dtextlabel delete.

Код:
	switch(listitem)
			{
				case 0:
				{
			        if(gClass[playerid] == SPY)
    					{
			            SetPlayerSkin(playerid, 73);
			            SetPlayerColor(playerid, TEAM_EURASIA_COLOR);
                        Update3DTextLabelText(RankLabel[playerid], 0x15FF0044, " ");
                        BilgiMesajiGonder(playerid, "İngiltere takımına ajan olarak sızdın.");
						}
					}

				    case 1:
			        {
			        if(gClass[playerid] == SPY)
    					{
			            SetPlayerSkin(playerid, 254);
			            SetPlayerColor(playerid, TEAM_ARAB_COLOR);
                        Update3DTextLabelText(RankLabel[playerid], 0xFFAF0244, " ");
						BilgiMesajiGonder(playerid, "Arabistan takımına ajan olarak sızdın.");
						}
					}

				    case 2:
			        {
			        if(gClass[playerid] == SPY)
    					{
 					    SetPlayerSkin(playerid, 285);
		         	    SetPlayerColor(playerid, TEAM_SOVIET_COLOR);
                        Update3DTextLabelText(RankLabel[playerid], 0xFF000044, " ");
						BilgiMesajiGonder(playerid, "Rusya takımına ajan olarak sızdın.");
						}
					}

			        case 3:
			        {
			        if(gClass[playerid] == SPY)
    					{
			            SetPlayerSkin(playerid, 287);
			            SetPlayerColor(playerid, TEAM_USA_COLOR);
                        Update3DTextLabelText(RankLabel[playerid], 0x0080FF44, " ");
						BilgiMesajiGonder(playerid, "Amerika takımına ajan olarak sızdın.");
						}
					}

		            case 4:
			        {
			        if(gClass[playerid] == SPY)
    					{
			            SetPlayerSkin(playerid, 206);
			            SetPlayerColor(playerid, TEAM_AUS_COLOR);
                        Update3DTextLabelText(RankLabel[playerid], 0x69006944, " ");
						BilgiMesajiGonder(playerid, "Almanya takımına ajan olarak sızdın.");
						}
				  }
            }
	   }
The team selected don't see new team 3dtextlabel
Reply
#2

i dont solve problem.Help
Reply
#3

Update3DTextLabelText(RankLabel[playerid], 0xFF000044, " ");

There's no text inserted. Which would output blank.
Reply
#4

Quote:
Originally Posted by itsCody
Посмотреть сообщение
Update3DTextLabelText(RankLabel[playerid], 0xFF000044, " ");

There's no text inserted. Which would output blank.
No,I have this function;

Код:
forward UpdateLabelText(playerid);
public UpdateLabelText(playerid)
{
   format(str, sizeof(str), "%s - %s\n %s" ,GetRankName(playerid), GetTeamName(playerid), GetClass(playerid));
   if(gTeam[playerid] == TEAM_EURASIA)
   {
        Update3DTextLabelText(RankLabel[playerid], 0xFFFFFFFF, " ");
		Update3DTextLabelText(RankLabel[playerid], TEAM_EURASIA_COLOR, str);
   }
   else if(gTeam[playerid] == TEAM_SOVIET)
   {
        Update3DTextLabelText(RankLabel[playerid], 0xFFFFFFFF, " ");
		Update3DTextLabelText(RankLabel[playerid], TEAM_SOVIET_COLOR, str);
   }
   else if(gTeam[playerid] == TEAM_AUS)
   {
        Update3DTextLabelText(RankLabel[playerid], 0xFFFFFFFF, " ");
		Update3DTextLabelText(RankLabel[playerid], TEAM_AUS_COLOR, str);
   }
   else if(gTeam[playerid] == TEAM_ARAB)
   {
        Update3DTextLabelText(RankLabel[playerid], 0xFFFFFFFF, " ");
		Update3DTextLabelText(RankLabel[playerid], TEAM_ARAB_COLOR, str);
   }
   else if(gTeam[playerid] == TEAM_USA)
   {
        Update3DTextLabelText(RankLabel[playerid], 0xFFFFFFFF, " ");
		Update3DTextLabelText(RankLabel[playerid], TEAM_USA_COLOR, str);
   }
   else if(gTeam[playerid] == TEAM_NONE)
   {
        Update3DTextLabelText(RankLabel[playerid], 0xFFFFFFFF, " ");
   }
   return 1;
}
Reply
#5

And the error is visible if you care to look.
Update3DTextLabelText(RankLabel[playerid], 0xFFFFFFFF, " ");

Update3DTextLabelText(RankLabel[playerid], 0xFFFFFFFF, str);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)