3DTextLabel messing up between players
#1

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

Where are you assigning 3DTextLabel to player?
Reply
#3

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

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

This is a SAMP bug you should use the streamer plugin for this that will fix your problems.
Reply
#6

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

If you use Incognito Streamer, try this: https://sampforum.blast.hk/showthread.php?tid=529389

I've just found it, there is CreateDynamic3dTextLabel
Reply
#8

Works after using CreateDynamic3DTextLabel, I appreciate your help guys, thanks.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)