Problem with TextLabels
#2

pawn Код:
Delete3DTextLabel(Bomber[playerid]);
Delete3DTextLabel(Sniper[playerid]);
Delete3DTextLabel(Agent[playerid]);
Delete3DTextLabel(Engineer[playerid]);
Delete3DTextLabel(Airforce[playerid]);
Why are you using so many textlabels? Why won't you just use this instead:

pawn Код:
new RankLabel[MAX_PLAYERS];
And:

pawn Код:
if(gClass[playerid] == SOLDIER_CLASS)
{
    TogglePlayerControllable(playerid, 1);
    ResetPlayerWeapons(playerid);
    GivePlayerWeapon(playerid, 5, 1);
    GivePlayerWeapon(playerid, 31, 100);
    GivePlayerWeapon(playerid, 17, 5);
    GivePlayerWeapon(playerid, 27, 200);
    GivePlayerWeapon(playerid, 24, 50);
    Delete3DTextLabel(RankLabel[playerid]);
    RankLabel[playerid] = Create3DTextLabel("Soldier",0x008080FF,30.0,40.0,50.0,40.0, 0);
    Attach3DTextLabelToPlayer(RankLabel[playerid], playerid, 0.0, 0.0, 0.5);
}
Also, are you sure that when a player is choosing his class, you do this?
pawn Код:
gClass[playerid] = CLASSNAME
Reply


Messages In This Thread
Problem with TextLabels - by Jarnu - 06.08.2012, 11:58
Re: Problem with TextLabels - by Dan. - 06.08.2012, 12:04
Re: Problem with TextLabels - by Jarnu - 06.08.2012, 12:06
Re: Problem with TextLabels - by Dan. - 06.08.2012, 12:12
Re: Problem with TextLabels - by Jarnu - 06.08.2012, 12:31
Re: Problem with TextLabels - by RelaxCafe - 06.08.2012, 12:33
Re: Problem with TextLabels - by Adornil - 15.08.2015, 02:07

Forum Jump:


Users browsing this thread: 1 Guest(s)