Move3DTextLabel(ID, string[], color, Float:NewX, Float:NewY, Float:NewZ)
#1

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?
Reply
#2

Код:
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);
}
Reply
#3

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.
Reply
#4

try this:

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

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
Reply
#6

I think you put this:

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

PHP код:
new Text:ID
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)