Skip to content

Player GetName regression from #1544 #1579

@NotPowered

Description

@NotPowered

#1544 has integrated a regression

Names set with SetInfo are now not returned properly.

So we have a display name = B (in scoreboard, chat etc ... with SetInfo and when we do GetClientName we have a name A

An example:

new String:name[64];

GetClientName(client, name, 64);		
PrintToServer("Name \"%s\" on #%d", name, client);

SetClientName(client, "TestA");
GetClientName(client, name, 64);
PrintToServer("Name \"%s\" on #%d", name, client);

SetClientInfo(client, "name", "TestB");
PrintToServer("Name \"%s\" on #%d", name, client);

GetClientName(client, name, 64);
PrintToServer("Name \"%s\" on #%d", name, client);

Traces:

Name "BOT Alfred" on #4
Name "BOT Alfred" on #4
Name "BOT Alfred" on #4
Name "BOT Alfred" on #4

Status from console and scoreboard/chats

# userid name                uniqueid            connected ping loss state  adr
#   6920 "TestB"             BOT                                     active

TestB is displayed everywhere but when we use GetClientName(), it return "BOT Alfred"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Buggeneral bugs; can be anything

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions