3d label problem
#1

pawn Код:
new Text3D:levellabel[MAX_PLAYERS];
OnPlayerDisconnect
pawn Код:
Delete3DTextLabel(levellabel[playerid]);
OnPlayerSpawn
pawn Код:
levellabel[playerid] = Create3DTextLabel("Player level", GetPlayerColor(playerid), 30.0, 40.0, 50.0, 10.0, 0);
        Attach3DTextLabelToPlayer(levellabel[playerid], playerid, 0.0, 0.0, 0.7);
Then i have a timer which occurs every 1 minnute.

public lvltimer(playerid)
pawn Код:
new level[64], statsSTRING[128];
        if(GetPlayerScore(playerid) >= 0 && GetPlayerScore(playerid) <= 499 ){level="1 level - Telatabie";}
        else if(GetPlayerScore(playerid) >= 500 && GetPlayerScore(playerid) <= 2499 ){level="2 level - Newbie";}
        else if(GetPlayerScore(playerid) >= 2500 && GetPlayerScore(playerid) <= 4999 ){level="3 level - PRO";}
        format(statsSTRING,sizeof(statsSTRING),"%s\n\t%dXP",level,GetPlayerScore(playerid));
        Update3DTextLabelText(levellabel[playerid], GetPlayerColor(playerid), statsSTRING);

As you maybe understand it's a level system with 3d labels, but the problem is that it does not show label on every player.
Reply


Messages In This Thread
3d label problem - by ajwar - 30.12.2011, 10:30
Re: 3d label problem - by NRJ53 - 30.12.2011, 16:49
Re: 3d label problem - by Face9000 - 30.12.2011, 16:52
Re: 3d label problem - by NRJ53 - 30.12.2011, 17:03
Re: 3d label problem - by NRJ53 - 30.12.2011, 19:26

Forum Jump:


Users browsing this thread: 2 Guest(s)