AYUDA CON HUD
#1
HOLA, BUENO LES QUERIA PEDIR SI ALGUIEN ME PUEDE DECIR COMO PUEDO COLOCAR UN HUD DENTRO DE ESTE MISMO HUD QUE DIGA ESTO TERRORISTAS VIVOS: (QUE MUESTRE LOS TERRORISTAS VIVOS), CTS VIVOS: (QUE MUESTRE LOS CTS VIVOS), EN ESTE MODO COMO LO PUEDO HACER?

NO ME DEJA SUBIR EL ARCHIVO SMA ADJUNTO UN LINK
https://www.mediafire.com/file/f1bqpkrka...l.sma/file

aqui abajo deberia mostrar el hud de los ct vivos y tt vivos
static scoreboard[600]
server_cmd("zombie_knife 0")
set_hudmessage(255, 255, 255, -1.0, 0.9, 0, 6.0, 12.0)
formatex(scoreboard, 599, "DIA: %d/10 - primer dia", get_pcvar_num(zombie_level), get_pcvar_num(level1_bosshp), get_pcvar_num(level1_bossmaxspeed), get_pcvar_num(level1_health), get_pcvar_num(level1_maxspeed), get_pcvar_num(level1_respawns))
ShowSyncHudMsg(0, g_hud, scoreboard)

ayudaaa
DancingLmlDancing
Responder
#2
Código PHP:
formatex(scoreboard599"DIA: %d/10 - primer dia | TERRORISTAS VIVOS: %d - CTS VIVOS: %d"get_pcvar_num(zombie_level), get_tt_alives(), get_ct_alives())

get_tt_alives( ) {
    static 
ttid;
    
tt 0;
    
    for( 
id 1id <= get_maxplayers( ); id++ ) {
        if( 
is_user_aliveid ) && cs_get_user_teamid ) == CS_TEAM_T )
            
tt++;
    }
    
    return 
tt;
}
get_ct_alives( ) {
    static 
ctid;
    
ct 0;
    
    for( 
id 1id <= get_maxplayers( ); id++ ) {
        if( 
is_user_aliveid ) && cs_get_user_teamid ) == CS_TEAM_CT )
            
ct++;
    }
    
    return 
ct;

[Imagen: zcsztw-4.png] [Imagen: 6u5fj2-4.png]
[Imagen: linkedin_thumb_image.png][Imagen: 76561198283253977.png][Imagen: linkedin_thumb_image.png]
Responder
#3
(28/10/2018, 02:00 PM)Hypnotize escribió:
Código PHP:
formatex(scoreboard599"DIA: %d/10 - primer dia | TERRORISTAS VIVOS: %d - CTS VIVOS: %d"get_pcvar_num(zombie_level), get_tt_alives(), get_ct_alives())

get_tt_alives( ) {
    static 
ttid;
    
tt 0;
    
    for( 
id 1id <= get_maxplayers( ); id++ ) {
        if( 
is_user_aliveid ) && cs_get_user_teamid ) == CS_TEAM_T )
            
tt++;
    }
    
    return 
tt;
}
get_ct_alives( ) {
    static 
ctid;
    
ct 0;
    
    for( 
id 1id <= get_maxplayers( ); id++ ) {
        if( 
is_user_aliveid ) && cs_get_user_teamid ) == CS_TEAM_CT )
            
ct++;
    }
    
    return 
ct;


ayudaa tira error al compilar

Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright © 1997-2013 ITB CompuPhase, AMX Mod X Team

Error: Undefined symbol "scoreboard" on line 384
Warning: Expression has no effect on line 384
Warning: Expression has no effect on line 384
Error: Undefined symbol "get_tt_alives" on line 384
Error: Invalid expression, assumed zero on line 384
Error: Too many error messages on one line on line 384

Compilation aborted.
4 Errors.
Could not locate output file C:\Users\sebastian\Desktop\zombiehell.amx (compile failed).
DancingLmlDancing
Responder


Salto de foro:


Usuarios navegando en este tema: 1 invitado(s)