27.01.2012, 06:43
I dont know if that is right or not But it wont show any label to the fire i have each One of the FMOS1 thru 12 It wont show a Label for them Can anyone help me please
pawn Code:
public FireSourceCheck(playerid, Health)
{
new Float:ObjX[12],Float:ObjY[12],Float:ObjZ[12],obj;
for(new i = 1; i < 13; i++)
{
if(i == 1) { obj = FMOS1; }
else if(i == 2) { obj = FMOS2; }
else if(i == 3) { obj = FMOS3; }
else if(i == 4) { obj = FMOS4; }
else if(i == 5) { obj = FMOS5; }
else if(i == 6) { obj = FMOS6; }
else if(i == 7) { obj = FMOS7; }
else if(i == 8) { obj = FMOS8; }
else if(i == 9) { obj = FMOS9; }
else if(i == 10) { obj = FMOS10; }
else if(i == 11) { obj = FMOS11; }
else if(i == 12) { obj = FMOS12; }
GetObjectPos(obj,ObjX[i],ObjY[i],ObjZ[i]);
TotalFires++;
new ID = TotalFires;
FirePos[ID][0] = ObjX[i], FirePos[ID][1] = ObjY[i], FirePos[ID][2] = ObjZ[i];
FireHealth[ID] = Health;
FireHealthMax[ID] = Health;
new string[128];
format(string, sizeof(string), "~r~Fire Source Intergity~n~~w~%d/%d", FireHealth[ID], FireHealthMax[ID]);
FireText[ID] = Create3DTextLabel(string, 0xFFFFFFFFF, ObjX[i],ObjY[i],ObjZ[i], 20, 0);
if(IsPlayerInRangeOfPoint(playerid,5.0,ObjX[i],ObjY[i],ObjZ[i]))
{
}
}
return 1;
}