SA-MP Forums Archive
Streamer Issue - 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: Streamer Issue (/showthread.php?tid=584400)



Streamer Issue - nemesis_567 - 04.08.2015

Why can't I create 3dTextLabel after the gamemode configures itself and players join?


Re: Streamer Issue - J0sh... - 04.08.2015

We're not mind readers, give us some code.


Re: Streamer Issue - nemesis_567 - 04.08.2015

Code of what? It doesn't work. It's the exact same implementation in different portions of the code. The 3dTextLabel that loads on the gamemode configuration works perfectly, while the other doesn't show up.(everything else happens as should except for the display of the 3dTextLabel.

Код:
new tempVar = _:CreateDynamic3DTextLabel(tName, COLOR_MAROON, tX, tY, tZ-1, 50.0, .worldid = nVW, .interiorid = nInt);
The second one happens under player interaction(it does not display the text, the rest of the code int he same function runs). The function which holds the above written call in this situation is called via CallLocalFunction. The first is a function that's called inside a function called via CallLocalFunction. I can't really find out much difference or reason for this.


Re: Streamer Issue - nemesis_567 - 07.08.2015

bump


Re: Streamer Issue - SickAttack - 07.08.2015

What do you mean by "configures itself"?


Re: Streamer Issue - nemesis_567 - 07.08.2015

The gamemode first loads all data, creating dynamic text labels, after that players can join and that's when creating dynamic labels is not working.


Re: Streamer Issue - SickAttack - 07.08.2015

I don't really get what you are trying to say. Dynamic 3D text labels aren't creating after players join? Only when the gamemode is loaded?


Re: Streamer Issue - DarkLored - 07.08.2015

Quote:
Originally Posted by nemesis_567
Посмотреть сообщение
The gamemode first loads all data, creating dynamic text labels, after that players can join and that's when creating dynamic labels is not working.
You shouldn't create a 3D text label if the player joins OnPlayerConnect because it'll recreate itself over and over again every time a new player is joining the game, if you want to show them a specific text on their screen use Textdraws.


Re: Streamer Issue - nemesis_567 - 07.08.2015

... Same lines of code, in two parts of the gamemode. Both functions are called, code runs both pre and post the createdynamic3dtextlabel line. One of the 3d texts is created, the other isn't. It's weird like that.


Re: Streamer Issue - SickAttack - 07.08.2015

Can you post the code or a similar dummy example?