AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Hud problems (https://forums.alliedmods.net/showthread.php?t=222553)

Bladell 08-04-2013 06:10

Hud problems
 
PHP Code:

public cmdShowResults(pid)
{
    static 
id
    id 
pid-TASK_RESULT_ID
    
    
if(is_user_connected(id))
    {
        static 
ilenmessage[HudLen]
        
        
len format(messagesizeof message -1"%L^n^n"LANG_PLAYER"VOTE_RESULTS")
        
        for(
i=0;i<g_votemaps;i++)
        {
            new 
map[32]
            
ArrayGetString(g_mapNameg_saveids[i], mapsizeof map -1)
            
len += format(message[len], HudLen -1"[%d] | %s^n"g_voteCount[i], map)
        }
        
        
len += format(message[len], HudLen -1"[%d] | %s [%L]^n^n"g_voteCount[i], g_currentMapLANG_PLAYER"PROLONGED")
        
len += format(message[len], HudLen -1"%L"LANG_PLAYER"VOTE_TOTAL"g_PlayersVotedg_PlayersNum)
        
        
set_hudmessage(g_result_redg_result_greeng_result_blue0.360.301.04.00.10.22)
        
show_hudmessage(idmessage)
    }


I don't know why those hud messages doesn't appear...Should look like this

ConnorMcLeod 08-04-2013 06:11

Re: Hud problems
 
Dunno, wanted to point that your LANG_PLAYER usage is not correct, use player index instead.

LANG_PLAYER is when index is null.

Black Rose 08-04-2013 08:25

Re: Hud problems
 
Add debug messages. That's always the first step.

Bladell 08-04-2013 10:52

Re: Hud problems
 
Work, thanks connor.


All times are GMT -4. The time now is 15:56.

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