Originally Posted by Debjit
Which version of streamer you are using.
Syntax for CreateDynamic3DTextLabel in latest verison is:
PHP код:
CreateDynamic3DTextLabel(const text[], color, Float:x, Float:y, Float:z, Float:drawdistance, attachedplayer = INVALID_PLAYER_ID, attachedvehicle = INVALID_VEHICLE_ID, testlos = 0, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = STREAMER_3D_TEXT_LABEL_SD, STREAMER_TAG_AREA areaid = STREAMER_TAG_AREA -1, priority = 0)
Here is a tip
PHP код:
if(IsAdminOnDuty[playerid])
//Instead of formatting it and createing it in each matrix, you can simply format it in each matrix and then Create the Text.
{
format(szName, sizeof(szName), "{9ACD32}Administrator{FFFFFF}\n%s (%d)", GetPlayerNameEx(playerid), playerid);
}
else
{
format(szName, sizeof(szName), "{BBBBBB}Survivor{FFFFFF}\n%s (%d)", GetPlayerNameEx(playerid), playerid);
}
TagName[playerid] = CreateDynamic3DTextLabel(szName, 0xFFFFFFFF, 0.0, 0.0, 0.0, 40.0, .attachedplayer = playerid, .testlos = 1);//you dont need to write .attachedplayer =, instead you can simply put the value at that place.
|