3DTextLabel messing up between players -
Beckett - 06.03.2015
Hello everybody, well the problem I am having is the 3DTextLabels I am using as names they are messing up between players. For example Player_A is having Player_B's name in the 3dTextLabel and Player_B is having nothing in his nametag, but the debug prints everything fine?
pawn Код:
public OnLoginSave(playerid) // Per player timer. (Starts when they log in)
{
if(!Logged[playerid]) return 0; //
new str_name[40];
if(PlayerInfo[playerid][vM] == 1)
{
format(str_name,sizeof(str_name),"%s",NameEx(playerid));
Update3DTextLabelText(Shi[playerid],WHITE,str_name);
printf("(%s) STR_NAME: %s",NameEx(playerid),str_name);
return 2;
}
return 1;
}
Prints:
Код:
(Player_A) STR_NAME: Player_A
(Player_B) STR_NAME: Player _B
Thanks in advance.
Re: 3DTextLabel messing up between players -
Misiur - 06.03.2015
Where are you assigning 3DTextLabel to player?
Re : 3DTextLabel messing up between players -
Etolas - 06.03.2015
Yes, I had exactly the same problem than yours. I didn't find the solution so if somebody can help you, it would be awesome !
Re: 3DTextLabel messing up between players -
Beckett - 06.03.2015
Quote:
Originally Posted by Misiur
Where are you assigning 3DTextLabel to player?
|
After the player logs in, it has no issues at all, it works perfectly but sometimes it keeps messing up for an unknown reason and the thing is the debug is printing everything fine I don't see why would this happen.
Quote:
Originally Posted by Etolas
Yes, I had exactly the same problem than yours. I didn't find the solution so if somebody can help you, it would be awesome !
|
I'm glad I am not the only one having this issue.
Re: 3DTextLabel messing up between players -
Pottus - 06.03.2015
This is a SAMP bug you should use the streamer plugin for this that will fix your problems.
Re: 3DTextLabel messing up between players -
Beckett - 06.03.2015
Quote:
Originally Posted by Pottus
This is a SAMP bug you should use the streamer plugin for this that will fix your problems.
|
I'll try that.
Re : 3DTextLabel messing up between players -
Etolas - 06.03.2015
If you use Incognito Streamer, try this:
https://sampforum.blast.hk/showthread.php?tid=529389
I've just found it, there is CreateDynamic3dTextLabel
Re: 3DTextLabel messing up between players -
Beckett - 09.03.2015
Works after using CreateDynamic3DTextLabel, I appreciate your help guys, thanks.