Create3DTextLabel with CallRemoteFunction
#1

I'm not sure if it's a bug with the CallRemoteFunction or I'm simply missing something. I don't usually use CallRemoteFunction, in fact, this is my first time really using and completely understanding what it does. So with that being said, why is the following code not working?

pawn Код:
forward CreateLabel(text[], color, Float:X, Float:Y, Float:Z, Float:DrawDistance, virtualworld, testLOS);
public CreateLabel(text[], color, Float:X, Float:Y, Float:Z, Float:DrawDistance, virtualworld, testLOS)
{
        Create3DTextLabel(text, color, Float:X, Float:Y, Float:Z, Float:DrawDistance, virtualworld, testLOS);
    return 1;
}

//in other script
CallRemoteFunction("CreateLabel", "sxffffii", "Defend", 0xC0C0C0FF, 1091.99805, 2713.90527, 13.87788, 50.0, 0, 1);
The coordinates are correct, I already double checked. Am I missing something? Thanks in advance!

EDIT: I tried debugging and the label is being created..
Quote:

CreateLabel(Defend, C0C0C0FF, 1091.998046, 2713.905273, 13.877880, 50.000000, 0, 1)

Why won't it show up in-game?
Reply
#2

For me same, but when i tried set: testLOS to 0 it will show.
Reply
#3

Quote:
Originally Posted by Jacapo
Посмотреть сообщение
For me same, but when i tried set: testLOS to 0 it will show.
lol that worked

I should have known it was something simple like this.
Reply
#4

You are welcome.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)