why notcreating 3dtext ?
#1

SetTimer("CarCheck", 800, true);


}
forward CarCheck();
public CarCheck()
{
if(IsVehicleInRangeOfPoint(NuomosMasina[0], 2.0, -1987.7217, 81.2729, 27.2181))
{
if(MasinosNebera == false)
{
// MyLabel = Create3DTextLabel("Masinos nera", -1, -1987.7217, 81.2729, 27.2181, 7, 0, 0);
print("Sukuriam/delitinam>1");
//Delete3DTextLabel(MyLabel);
MasinosNebera = true;
}
else if(MasinosNebera == true) // 31676
{
Delete3DTextLabel(MyLabel);
print("Sukuriam/delitinam>2");
//MyLabel = Create3DTextLabel("Masinos nera", -1, -1987.7217, 81.2729, 27.2181, 7, 0, 0);
MasinosNebera = false;
}
}
}
Reply
#2

Use [pawn] in your message..

The issue was that you didn't create a 3DText:

pawn Код:
forward CarCheck();
public CarCheck()
{
    if(IsVehicleInRangeOfPoint(NuomosMasina[0], 2.0, -1987.7217, 81.2729, 27.2181))
    {
        if(MasinosNebera == false)
        {
            new Text3D: MyLabel;
            MyLabel = Create3DTextLabel("Masinos nera", -1, -1987.7217, 81.2729, 27.2181, 7, 0, 0);
            print("Sukuriam/delitinam>1");
            //Delete3DTextLabel(MyLabel);
            MasinosNebera = true;
        }
        else if(MasinosNebera == true) // 31676
        {
            Delete3DTextLabel(MyLabel);
            print("Sukuriam/delitinam>2");
            MasinosNebera = false;
        }
    }
}
pawn Код:
new Text3D: MyLabel;
Reply
#3

new text3d; mylabel i have..
Reply
#4

help, i dont no how to fix it

[pawn]

new Text3D:MyLabel;

SetTimer("CarCheck", 800, true);

}
forward CarCheck();
public CarCheck()
{
if(IsVehicleInRangeOfPoint(NuomosMasina[0], 2.0, -1987.7217, 81.2729, 27.2181))
{
if(MasinosNebera == false)
{
MyLabel = Create3DTextLabel("Masinos nera", -1, -1987.7217, 81.2729, 27.2181, 15, 0, 0);
print("Sukuriam/delitinam>1");
//Delete3DTextLabel(MyLabel);
MasinosNebera = true;
}
else if(MasinosNebera == true) // 31676
{
Delete3DTextLabel(MyLabel);
print("Sukuriam/delitinam>2");
//MyLabel = Create3DTextLabel("Masinos nera", -1, -1987.7217, 81.2729, 27.2181, 15, 0, 0);
MasinosNebera = false;
}
}
}

[pawn]
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)