SA-MP Forums Archive
3D Text Labels - 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: 3D Text Labels (/showthread.php?tid=294845)



3D Text Labels - Cowboy - 03.11.2011

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


Re: 3D Text Labels - Michael@Belgium - 03.11.2011

What you have under OnPlayerSpawn() ?


Re: 3D Text Labels - Wesley221 - 03.11.2011

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