AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   Error En HUD (https://forums.alliedmods.net/showthread.php?t=231688)

zoolk 12-18-2013 13:43

Error En HUD
 
Hola a todos.
Lo que pasa es que puse un hud para que se vea la experiencia pero me da error al compilar alguien me podria ayudar


/ Spectating someone else?
if (id != ID_SHOWHUD)

{

// Show name, health, class, and ammo packs
set_hudmessage(255, 255, 255, HUD_SPECT_X, HUD_SPECT_Y, 0, 6.0, 1.1, 0.0, 0.0, -1)
ShowSyncHudMsg(ID_SHOWHUD, g_MsgSync2, "%L %s^nHP: %d - %L %s - %L %d", ID_SHOWHUD, "SPECTATING", g_playername[id], pev(id, pev_health), ID_SHOWHUD, "CLASS_CLASS", class, ID_SHOWHUD, "AMMO_PACKS1", g_ammopacks[id])

}
else
{
// Show health, class and ammo packs
set_hudmessage(255, 255, 0, 0.01.0, 0, 6.0, 1.1, 0.0, 0.0, -1)
ShowSyncHudMsg(ID_SHOWHUD, g_MsgSync2, "%L: %d ^n%L %s ^n%L %d ^nLevel: %d ^nExperiencia: %d", id, "ZOMBIE_ATTRIB1", pev(ID_SHOWHUD, pev_health), ID_SHOWHUD, "CLASS_CLASS", class, ID_SHOWHUD, "AMMO_PACKS1", g_ammopacks[ID_SHOWHUD], g_level[ID_SHOWHUD], g_experiencia[ID_SHOWHUD])
}

YamiKaitou 12-18-2013 13:48

Re: Error En HUD
 
You must post in English

Kia 12-18-2013 13:58

Re: Error En HUD
 
Hello everyone.
I've made a HUD so you can see the experience of the other players, but it gives me error when I want to compile it.
Anyone can help?

PHP Code:

if (id != ID_SHOWHUD)
    
    {
        
        
// Show name, health, class, and ammo packs
        
set_hudmessage(255255255HUD_SPECT_XHUD_SPECT_Y06.01.10.00.0, -1)
        
ShowSyncHudMsg(ID_SHOWHUDg_MsgSync2"%L %s^nHP: %d - %L %s - %L  %d"ID_SHOWHUD"SPECTATING"g_playername[id], pev(idpev_health),  ID_SHOWHUD"CLASS_CLASS", class, ID_SHOWHUD"AMMO_PACKS1",  g_ammopacks[id])

    }
    else
    {
        
// Show health, class and ammo packs
        
set_hudmessage(25525500.01.006.01.10.00.0, -1)
        
ShowSyncHudMsg(ID_SHOWHUDg_MsgSync2"%L: %d ^n%L %s ^n%L %d  ^nLevel: %d ^nExperiencia: %d"id"ZOMBIE_ATTRIB1"pev(ID_SHOWHUD,  pev_health), ID_SHOWHUD"CLASS_CLASS", class, ID_SHOWHUD,  "AMMO_PACKS1"g_ammopacks[ID_SHOWHUD], g_level[ID_SHOWHUD],  g_experiencia[ID_SHOWHUD])
    } 



All times are GMT -4. The time now is 20:31.

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