AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How make new list ? (https://forums.alliedmods.net/showthread.php?t=225913)

Joob 09-10-2013 19:28

How make new list ?
 
Hello guys..

I have one list of players, but this list appears at the bottom, on the center of the screen, and I want to put the list in the left side of the screen as a menu..

this is my code:

PHP Code:

public show_queue() {
    if (
g_inQueue 3)
        return
    new 
queue[512], len 0
    len 
+= format(queue[len], 63 len"test ")
    for (new 
2g_inQueuei++) {
        new 
name[10]
        
get_user_name(g_queue[i], name9)
        
//len += format(queue[len], 511 - len, "%d=%s%s ", i, name, g_queue[i] != 0 ? is_user_alive(g_queue[i]) ? "(A)" : "(D)" : "(-)")
        
len += format(queue[len], 511 len"%d - %s, "1name)
    }

    
set_hudmessage(REDGREENBLUEXYEFFECTSFXTIMEHOLDTIMEFADEINTIMEFADEOUTTIMECHANNEL)
    
show_hudmessage(0queue)
    new 
players[32], playersNum
    get_players
(playersplayersNum"bc")
    for (new 
0playersNumi++)
        
show_hudmessage(players[i], queue)



Regards,
Joob

Baws 09-10-2013 21:23

Re: How make new list ?
 
As i have been told, it's impossible to put a menu on the left side of the screen buddy.

wickedd 09-10-2013 21:32

Re: How make new list ?
 
Quote:

Originally Posted by baws (Post 2032341)
As i have been told, it's impossible to put a menu on the left side of the screen buddy.

That's not true. You can't put it on the right. side

SpaWn2KiLl 09-10-2013 22:17

Re: How make new list ?
 
Quote:

Originally Posted by wickedd (Post 2032345)
That's not true. You can't put it on the right. side

What the fuck are you guys saying?

He wants a HudMessage on the same position as a menu!



You have to edit X and Y values...

wickedd 09-10-2013 22:52

Re: How make new list ?
 
Quote:

Originally Posted by SpaWn2KiLl (Post 2032373)
What the fuck are you guys saying?

He wants a HudMessage on the same position as a menu!



You have to edit X and Y values...

Shut up. I was replying to what baws said. Also read the op post he wants a players list to appear in a menu.

Baws 09-10-2013 23:12

Re: How make new list ?
 
I'm sorry. I mean right i thought left was this side -> and right was this side <- i'm sorry. Yes you can't do a menu or any menu of any kind on your right screen.

ConnorMcLeod 09-11-2013 00:41

Re: How make new list ?
 
Quote:

Originally Posted by wickedd (Post 2032378)
Shut up. I was replying to what baws said. Also read the op post he wants a players list to appear in a menu.

This is wrong, op wants hudmessage but his sentence is not clear because english is not his native language.
He wrote "as a menu" and you should understand "at same place a menu would be shown"


So yes, you have to edit values X, Y


maybe X 0.1 or 0.05, and Y = 0.35 (you can try 0.2 to 0.5 (top to bottom)).

Joob 09-11-2013 07:03

Re: How make new list ?
 
Quote:

So yes, you have to edit values X, Y


maybe X 0.1 or 0.05, and Y = 0.35 (you can try 0.2 to 0.5 (top to bottom)).
I'll try this ;) ..

SpaWn2KiLl 09-11-2013 12:32

Re: How make new list ?
 
Quote:

Originally Posted by wickedd (Post 2032378)
Shut up. I was replying to what baws said. Also read the op post he wants a players list to appear in a menu.

Quote:

Originally Posted by ConnorMcLeod (Post 2032401)
This is wrong, op wants hudmessage but his sentence is not clear because english is not his native language.
He wrote "as a menu" and you should understand "at same place a menu would be shown"


So yes, you have to edit values X, Y


maybe X 0.1 or 0.05, and Y = 0.35 (you can try 0.2 to 0.5 (top to bottom)).

Shut up wickedd!!

hleV 09-11-2013 13:20

Re: How make new list ?
 
The fact that the OP can't tell sides should've concluded this.


All times are GMT -4. The time now is 18:55.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.