26.09.2011, 17:16
Hey guys,
Somehow my 3DTextLabel doesnt appear.
The 'RANK1' etc DOES contain information and the 'print' things do appear in the console; all of them.
~Wesley
Somehow my 3DTextLabel doesnt appear.
pawn Код:
new Text3D:Rank[MAX_PLAYERS];
new R3D[50];
switch( PlayerInfo[playerid][pKills] )
{
case RANK1KILLS: format( R3D, sizeof R3D, "Rank: #RANK1" );
case RANK2KILLS: format( R3D, sizeof R3D, "Rank: #RANK2" );
case RANK3KILLS: format( R3D, sizeof R3D, "Rank: #RANK3" );
case RANK4KILLS: format( R3D, sizeof R3D, "Rank: #RANK4" );
case RANK5KILLS: format( R3D, sizeof R3D, "Rank: #RANK5" );
case RANK6KILLS: format( R3D, sizeof R3D, "Rank: #RANK6" );
case RANK7KILLS: format( R3D, sizeof R3D, "Rank: #RANK7" );
case RANK8KILLS: format( R3D, sizeof R3D, "Rank: #RANK8" );
case RANK9KILLS: format( R3D, sizeof R3D, "Rank: #RANK9" );
case RANK10KILLS: format( R3D, sizeof R3D, "Rank: #RANK10" );
}
new Float:pPos[3];
GetPlayerPos( playerid, pPos[0], pPos[1], pPos[2] );
print("Creating TL");
Rank[playerid] = Create3DTextLabel( R3D, RANKCOLOR, pPos[0], pPos[1], pPos[2], 40.0, -1, 0 );
print("Created TL & attaching it now");
Attach3DTextLabelToPlayer( Rank[playerid], playerid, 0.0, 0.0, 5.0 );
print("Attached!");
~Wesley