I'm trying to get everyone's name in the server to show in the show hud text but it keep showing all of the names in one place. Here is the coding.
PHP Code:
public Action:Command_Huds(client, args)
{
decl String:Buffer[MAX_NAME_LENGTH];
for(new i = 1; i <= MaxClients; i++)
{
Format(Buffer, sizeof(Buffer), "\n%N\n", i);
SetHudTextParams(0.01, 0.01, 3.0, 0, 255, 51, 240);
ShowHudText(client, -1, Buffer);
}
return Plugin_Handled;
}
But then if I do this, it works fine.
PHP Code:
public Action:Command_Huds(client, args)
{
SetHudTextParams(0.01, 0.01, 3.0, 0, 255, 51, 240);
ShowHudText(client, -1, "Hey\nHey2\nHey3\nHey4\nHey5\nHey6);
return Plugin_Handled;
}
__________________