Raised This Month: $ Target: $400
 0% 

Hud problems


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Bladell
Senior Member
Join Date: Jun 2012
Old 08-04-2013 , 06:10   Hud problems
Reply With Quote #1

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
Bladell is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 08-04-2013 , 06:11   Re: Hud problems
Reply With Quote #2

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

LANG_PLAYER is when index is null.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 08-04-2013 , 08:25   Re: Hud problems
Reply With Quote #3

Add debug messages. That's always the first step.
__________________
Black Rose is offline
Bladell
Senior Member
Join Date: Jun 2012
Old 08-04-2013 , 10:52   Re: Hud problems
Reply With Quote #4

Work, thanks connor.
Bladell is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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