3D Text Labels
#1

Hello, I have this code

pawn Код:
new Text3D:PlayerLabel[MAX_PLAYERS];

// This under OnPlayerRequestSpawn

    format(gName,sizeof(gName),"%s",GetGangTag(PlayerInfo[playerid][Gang]));
    PlayerLabel[playerid] = Create3DTextLabel(gName,White,30.0, 40.0, 50.0, 40.0, 0);
    Attach3DTextLabelToPlayer(PlayerLabel[playerid],playerid, 0.0, 0.0, 0.7);

// The stock, this works anywhere else


stock GetGangTag(GangID)
{
    new Query[150]; format(Query, sizeof(Query), "SELECT tag FROM gangs WHERE id = %d", GangID);
    mysql_query(Query);
    mysql_store_result();
    while(mysql_retrieve_row())
    {
        mysql_get_field("tag",Query);
    }
    return Query;
}
It doesn't show when they spawn?
Please help
Reply
#2

What you have under OnPlayerSpawn() ?
Reply
#3

Does it show when someone else is in-game?
You dont see the player tag on your own char.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)