Problam in the 3D text in Streamer Plugin v2.5.2
#1

first of i sorry about my bad english ........

I use this -
https://sampforum.blast.hk/showthread.php?tid=102865

when i make 3D text like this it's working -

PHP код:
CreateDynamic3DTextLabel("CHEKING",Gold,2106.7251,878.7288,9.9305,100); 
But, when i attach it to a vehicle it's not show at all !!! why ? here is a example -
PHP код:
            format(TextCar,sizeof(TextCar),"VIP шлб {9B2E5E}(%s)",VehNames[GetVehicleModel(car)-400]);
            
TextUpCar[car] = CreateDynamic3DTextLabel(TextCar,P_Playzone,0,0,0,15.0);
            
Attach3DTextLabelToVehicle(TextUpCar[car],car,0.0,0.0,0.0); 
TNX FOR ALL HELPING !!!
Reply
#2

function and params:

pawn Код:
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:distance = 100.0);
to attach to vehicle:

Quote:

CreateDynamic3DTextLabel("CHEKING",Gold,2106.7251, 878.7288,9.9305,100,INVALID_PLAYER_ID, vehicleid);

vehicleid - id of vehicle what 3dtext attached to!

for example
pawn Код:
new gVeh;

public OnGameModeInit()
{
    gVeh = CreateVehicle(400,2106.7251,878.7288,9.9305,0,0,1600);
    CreateDynamic3DTextLabel("CHEKING",Gold,2106.7251,878.7288,9.9305,100,INVALID_PLAYER_ID, gVeh);
    return 1;
}
Reply
#3

thank you ! in vehicle it's work

but when i attach it you player it's not work again -
PHP код:
label[playerid] = CreateDynamic3DTextLabel(string,GetPlayerColor(playerid),30.0,40.0,50.0,40.0,playerid,INVALID_VEHICLE_ID); 
Reply
#4

Quote:
Originally Posted by tal_peretz
Посмотреть сообщение
thank you ! in vehicle it's work

but when i attach it you player it's not work again -
PHP код:
label[playerid] = CreateDynamic3DTextLabel(string,GetPlayerColor(playerid),30.0,40.0,50.0,40.0,playerid,INVALID_VEHICLE_ID); 
pawn Код:
CreateDynamic3DTextLabel(string,GetPlayerColor(playerid),0.0,0.0,1.0,0.0,playerid)
just this
Reply
#5

you did -
drawdistance = 0.0
why ? :O

and it's didn't work ..........
Reply
#6

now it's working .. the problam was in the drawdistance

thank you very much !!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)