Create3DTextLabel with CallRemoteFunction - 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: Create3DTextLabel with CallRemoteFunction (
/showthread.php?tid=538902)
Create3DTextLabel with CallRemoteFunction -
Onfroi - 25.09.2014
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?
Re: Create3DTextLabel with CallRemoteFunction -
Jacapo - 25.09.2014
For me same, but when i tried set: testLOS to 0 it will show.
Re: Create3DTextLabel with CallRemoteFunction -
Onfroi - 25.09.2014
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.
Re: Create3DTextLabel with CallRemoteFunction -
Jacapo - 25.09.2014
You are welcome.