03.11.2011, 17:00
Hello, I have this code
It doesn't show when they spawn?
Please help
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;
}
Please help