Quote:
Originally Posted by E-Max
If i use this:
Код:
dcmd_123(playerid,params[])
{
new PlayerText3D:playertextid;
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
playertextid = CreatePlayer3DTextLabel(playerid,"To jest test",0x008080FF,X,Y,Z,40.0);
Attach3DTextLabelToPlayer(playertextid, playerid, 0.0, 0.0, -0.4);//error is here
return 1;
}
but if i use this:
Код:
dcmd_123(playerid,params[])
{
new Text3D:playertextid;
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
playertextid = CreatePlayer3DTextLabel(playerid,"To jest test",0x008080FF,X,Y,Z,40.0);//error is here
Attach3DTextLabelToPlayer(playertextid, playerid, 0.0, 0.0, -0.4);
return 1;
}
|
Код:
dcmd_123(playerid,params[])
{
new PlayerText3D:playertextid;
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
playertextid = PlayerText3D:CreatePlayer3DTextLabel(playerid,"To jest test",0x008080FF,X,Y,Z,40.0);//error is here
Attach3DTextLabelToPlayer(Text3D:playertextid, playerid, 0.0, 0.0, -0.4);
return 1;
}
this should go sry my english is not good
Код:
new Text3D:playertextid;
with // new PlayerText3D:
Quote:
new PlayerText3Dlayertextid;
|
replace
Код:
playertextid = CreatePlayer3DTextLabel(playerid,"To jest test",0x008080FF,X,Y,Z,40.0);//error is here
with // PlayerText3D:
Код:
playertextid = PlayerText3D:CreatePlayer3DTextLabel(playerid,"To jest test",0x008080FF,X,Y,Z,40.0);
replace
Код:
Attach3DTextLabelToPlayer(playertextid, playerid, 0.0, 0.0, -0.4);
with // Text3D:
Код:
Attach3DTextLabelToPlayer(Text3D:playertextid, playerid, 0.0, 0.0, -0.4);
replace