[HELP] HLSDK making custom game C++
I Was Editing CHud member CHudBattery to CHudArmor in Entire Solution.
After that, in-game there wasnt Armor(Battery) displayed anymore, and not called any function from CHudArmor! (CHudBattery) This means i cant add or change CHud elements? Help :cry: |
Re: [HELP] HLSDK making custom game C++
Enable the console and set developer to 2, then start a map and see if there are any errors. It's possible that you changed the name of a message function, causing the client to no longer receive battery state changes. If that's the case, it'll print an error in the console. You'll have to change this code:
Code:
gmsgBattery = REG_USER_MSG( "Battery", 2 );CHudBattery has a method called MsgFunc_Battery, whatever you changed it to, change "Battery" to match the part after MsgFunc_. If that's not the problem, then you'll have to see if any other errors are printed. Make sure there are no errors or warnings while compiling, and check if the code that hooks the hud element into the list of hud elements still works. |
| All times are GMT -4. The time now is 01:17. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.