Raised This Month: $51 Target: $400
 12% 

[L4D2]hud does not work


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
nxlinux
Member
Join Date: Oct 2013
Location: China
Old 09-21-2017 , 16:17   [L4D2]hud does not work
Reply With Quote #1

scripts/vscripts/hud.nut

PHP Code:
function HudShow2()
{
    
HUDINFO <-
    {
        
Fields 
        {
            
Hud = {slot HUD_LEFT_TOPdataval "test",flags HUD_FLAG_NOBG}
        }
    }
    
HUDSetLayout(HUDINFO); 
    
HUDPlaceHUD_LEFT_TOP,0.3,0.2,0.5,0.2);

when i load this hud.nut vscripts, console give me error

AN ERROR HAS OCCURED [the index 'HUDSetLayout' does not exist]

what's wrong?
nxlinux is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 09-21-2017 , 17:07   Re: [L4D2]hud does not work
Reply With Quote #2

This is a forum for Sourcemod scripting. Not LUA/VScript scripting for the L4D2 client.

HUDSetLayout doesn't exist as the error states.

This might help.
__________________
Neuro Toxin is offline
Reply



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 23:43.


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