SA-MP Forums Archive
Move3DTextLabel(ID, string[], color, Float:NewX, Float:NewY, Float:NewZ) - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Move3DTextLabel(ID, string[], color, Float:NewX, Float:NewY, Float:NewZ) (/showthread.php?tid=112738)



Move3DTextLabel(ID, string[], color, Float:NewX, Float:NewY, Float:NewZ) - Eazy_Efolife - 09.12.2009

Hi, i'm trying to make this code work. The warnings I get are:
Код:
tag mismatch
These are the two lines that show this warning:
Код:
Delete3DTextLabel(ID);
ID = Create3DTextLabel(string,0x008080FF,NewX,NewY,NewZ,40.0,0, 1);
This is the whole Function:
Код:
public Move3DTextLabel(ID, string[], color, Float:NewX, Float:NewY, Float:NewZ)
{
  Delete3DTextLabel(ID);
  ID = Create3DTextLabel(string,0x008080FF,NewX,NewY,NewZ,40.0,0, 1);
}
Anyone see why im getting the warning?


Re: Move3DTextLabel(ID, string[], color, Float:NewX, Float:NewY, Float:NewZ) - Blacklite - 09.12.2009

Код:
public Move3DTextLabel(Text3D:ID, string[], color, Float:NewX, Float:NewY, Float:NewZ)
{
  Delete3DTextLabel(ID);
  ID = Create3DTextLabel(string,0x008080FF,NewX,NewY,NewZ,40.0,0, 1);
}
Also, this will save the ID to the variable, which might be useful:

Код:
public Move3DTextLabel(&Text3D:ID, string[], color, Float:NewX, Float:NewY, Float:NewZ)
{
  Delete3DTextLabel(ID);
  ID = Create3DTextLabel(string,0x008080FF,NewX,NewY,NewZ,40.0,0, 1);
}



Re: Move3DTextLabel(ID, string[], color, Float:NewX, Float:NewY, Float:NewZ) - Eazy_Efolife - 09.12.2009

Quote:
Originally Posted by Blacklite
Код:
public Move3DTextLabel(Text3D:ID, string[], color, Float:NewX, Float:NewY, Float:NewZ)
{
  Delete3DTextLabel(ID);
  ID = Create3DTextLabel(string,0x008080FF,NewX,NewY,NewZ,40.0,0, 1);
}
Also, this will save the ID to the variable, which might be useful:

Код:
public Move3DTextLabel(&Text3D:ID, string[], color, Float:NewX, Float:NewY, Float:NewZ)
{
  Delete3DTextLabel(ID);
  ID = Create3DTextLabel(string,0x008080FF,NewX,NewY,NewZ,40.0,0, 1);
}
Your a genious thank you, also do i put the code in like this?:
Код:
Move3DTextLabel(*Whatever I put into this*, 0x0000FF, x, y, z);
edit: Tried it, got a argument warning.


Re: Move3DTextLabel(ID, string[], color, Float:NewX, Float:NewY, Float:NewZ) - Blacklite - 09.12.2009

try this:

Код:
Move3DTextLabel(Text3D:something, 0x0000FF, x, y, z);



Re: Move3DTextLabel(ID, string[], color, Float:NewX, Float:NewY, Float:NewZ) - Eazy_Efolife - 09.12.2009

Quote:
Originally Posted by Blacklite
try this:

Код:
Move3DTextLabel(Text3D:something, 0x0000FF, x, y, z);
Nope, Argument error, also, I tried this:
Код:
Move3DTextLabel(buildingtext, string, COLOR_BLUE, x, y, z);
and that one worked



Re: Move3DTextLabel(ID, string[], color, Float:NewX, Float:NewY, Float:NewZ) - Shadoww5 - 28.06.2011

I think you put this:

PHP код:
new ID
But the correct is:

PHP код:
new Text:ID