SA-MP Forums Archive
Help! 3DTEXTLABEL Doesnt Update! - 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)
+--- Thread: Help! 3DTEXTLABEL Doesnt Update! (/showthread.php?tid=371694)



Help! 3DTEXTLABEL Doesnt Update! - markjaysonpinoy - 24.08.2012

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~!!!


Re: Help! 3DTEXTLABEL Doesnt Update! - markjaysonpinoy - 24.08.2012

bump


Re: Help! 3DTEXTLABEL Doesnt Update! - markjaysonpinoy - 24.08.2012

+REp


Re: Help! 3DTEXTLABEL Doesnt Update! - markjaysonpinoy - 24.08.2012

++++++++++++REP!! HELP PLEASE! I reall yneed to finish this


Re: Help! 3DTEXTLABEL Doesnt Update! - markjaysonpinoy - 24.08.2012

HELP!!!!!!!!!!!!!!!!!!!!!!1 22 VIEWS NO COMMENTS! SERIOUSLY GUYS!


Re: Help! 3DTEXTLABEL Doesnt Update! - JaKe Elite - 24.08.2012

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


Re: Help! 3DTEXTLABEL Doesnt Update! - markjaysonpinoy - 24.08.2012

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.


Re: Help! 3DTEXTLABEL Doesnt Update! - kbalor - 24.08.2012

I think it must be deleted.
Code:
DeletePlayer3DTextLabel



Re: Help! 3DTEXTLABEL Doesnt Update! - markjaysonpinoy - 24.08.2012

Where should i put the DeletePlayer3DTextLabel?


Re: Help! 3DTEXTLABEL Doesnt Update! - Riddick94 - 24.08.2012

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.