01.03.2013, 15:48
Hello.
I have made 2 vehicles on which I want to show their health in a 3DTextLabel. However, I'm failing constantly.
I have made 2 vehicles on which I want to show their health in a 3DTextLabel. However, I'm failing constantly.
pawn Код:
new Vehicles[2],
Text3D:VehiclesLabel[2];
public OnGameModeInit()
{
for(new i = 0; i < 2; i++) // Also tried for(new i = 0; i < sizeof(Vehicles); i++)
{
VehiclesLabel[Vehicles[i]] = CreateDynamic3DTextLabel("100%", -1, 0.0, 0.0, 0.0, 50.0, INVALID_PLAYER_ID, Vehicles[i], 0, -1, -1, -1, 50.0);
}
// All code that is above stops working
return 1;
}