Raised This Month: $ Target: $400
 0% 

informations hud help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
tedaimlocks
Senior Member
Join Date: Jan 2024
Old 01-24-2024 , 03:05   Re: informations hud help
Reply With Quote #1

Quote:
Originally Posted by fysiks View Post
Ok, so what is your issue? In Scripting Help, you should describe your issue so that we have a better idea of what to look for and how to help you. If you have compiler errors, copy the text and put it in a post with [code][/code] tags. If you have run-time errors, grab the text from the log file and include that in your post with the code tags.


well i tried to display the rounds left instead of timeleft but i couldnt do it
tedaimlocks is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-24-2024 , 21:30   Re: informations hud help
Reply With Quote #2

Quote:
Originally Posted by tedaimlocks View Post
well i tried to display the rounds left instead of timeleft but i couldnt do it
Do you get any errors in the error logs when you run the plugin? Is the plugin even running? Make sure that the plugin shows up in the output of "amxx list" and shows that it's in a good state. You should also consider adding "debug" after the .amxx file name in plugins.ini so that you get useful debug logs for errors.

If all of that shows no issues, you should add your own debug messaging to the function to make sure that the function is getting called properly and you can add various pieces of data into that debug message to determine what might be wrong. I use server_print() for my debug messages and then look at the server console to see what data it contains. One thing I would probably do is to simply use server_print() for the exact message you're trying to use with show_hudmessage() and make sure that works.

EDIT: I just tested it and it works exactly as you coded it. I would recommend that you fix the "holdtime" parameter so that you don't have a bunch of old versions of the message overlapping.
__________________

Last edited by fysiks; 01-24-2024 at 21:47.
fysiks 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 00:33.


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