Cant Get 3dtextlabel to show - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Cant Get 3dtextlabel to show (
/showthread.php?tid=313709)
Cant Get 3dtextlabel to show -
Buzzbomb - 27.01.2012
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;
}
Re: Cant Get 3dtextlabel to show -
Stigg - 27.01.2012
Maybe your setting the wrong virtual world
https://sampwiki.blast.hk/wiki/Create3DTextLabel
Re: Cant Get 3dtextlabel to show -
Buzzbomb - 27.01.2012
Quote:
Originally Posted by Stigg
|
Oop's haha thanks..
Re: Cant Get 3dtextlabel to show -
Buzzbomb - 27.01.2012
Nope Still Did Not Work..