Help! 3DTEXTLABEL Doesnt Update!
#1

pawn Code:
if(gTeam[playerid] == TEAM_ALLIED)
    {
        GivePlayerWeapon(playerid,24,110);
        GivePlayerWeapon(playerid,31,110);
        GivePlayerWeapon(playerid,29,110);
        GivePlayerWeapon(playerid,16,3);
        GivePlayerWeapon(playerid,26,110);
        label[playerid] = Create3DTextLabel("ALLIED",GetPlayerColor(playerid), 30.0, 40.0, 50.0, 40.0, 0);
        Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.4);
        Update3DTextLabelText(label[playerid], GetPlayerColor(playerid),"ALLIED");
        SetPlayerTeam(playerid, 0);
    }
    if(gTeam[playerid] == TEAM_SOVIET)
    {
        GivePlayerWeapon(playerid,24,110);
        GivePlayerWeapon(playerid,31,110);
        GivePlayerWeapon(playerid,29,110);
        GivePlayerWeapon(playerid,16,3);
        GivePlayerWeapon(playerid,26,110);
        label1[playerid] = Create3DTextLabel("SOVIET",GetPlayerColor(playerid), 30.0, 40.0, 50.0, 40.0, 0);
        Attach3DTextLabelToPlayer(label1[playerid], playerid, 0.0, 0.0, 0.4);
        Update3DTextLabelText(label1[playerid], GetPlayerColor(playerid),"SOVIET");
        SetPlayerTeam(playerid, 1);
    }
There's the cude, i put it under onplayerspawn, but each time a player switches team, it appears double above the players head!!! IT doesnt UPDATE~!!!
Reply
#2

bump
Reply
#3

+REp
Reply
#4

++++++++++++REP!! HELP PLEASE! I reall yneed to finish this
Reply
#5

HELP!!!!!!!!!!!!!!!!!!!!!!1 22 VIEWS NO COMMENTS! SERIOUSLY GUYS!
Reply
#6

Seriously will you shut up.
Don't spam your thread. Bump the thread if its an 42 hours old.
Reply
#7

Lol I realized ur from Philippines, wouldn't u even help me? I think only 3% of our kababayans are willing to help, most are so proud and that's one of the reasons our country's economy is sooo shitty.
Reply
#8

I think it must be deleted.
Code:
DeletePlayer3DTextLabel
Reply
#9

Where should i put the DeletePlayer3DTextLabel?
Reply
#10

pawn Code:
switch(gTeam[playerid])
{
    case TEAM_ALLIED:
    {
        SetPlayerTeam(playerid, 0);
        GivePlayerWeapon(playerid,  24, 110);
        GivePlayerWeapon(playerid,  31, 110);
        GivePlayerWeapon(playerid,  29, 110);
        GivePlayerWeapon(playerid,  16, 3);
        GivePlayerWeapon(playerid,  26, 110);
        Delete3DTextLabel(label1[playerid]);
        label[playerid] = Create3DTextLabel("ALLIED", GetPlayerColor(playerid), 30.0, 40.0, 50.0, 40.0);
        Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.4);
    }
   
    case TEAM_SOVIET:
    {
        SetPlayerTeam(playerid, 1);
        GivePlayerWeapon(playerid,  24, 110);
        GivePlayerWeapon(playerid,  31, 110);
        GivePlayerWeapon(playerid,  29, 110);
        GivePlayerWeapon(playerid,  16, 3);
        GivePlayerWeapon(playerid,  26, 110);
        Delete3DTextLabel(label1[playerid]);
        label1[playerid] = Create3DTextLabel("SOVIET",GetPlayerColor(playerid), 30.0, 40.0, 50.0, 40.0, 0);
        Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.4);
    }
}
Check and stop bumping.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)