Hud causing overflow
Hum, i guess the code is fine. I don't code so much as i did before but i think i didn't became so noob :shock:
Or i am just great by making stupid bugged plugin, wich problably i am :3 PHP Code:
|
Re: Hud causing overflow
Get you a overflow on show_hudmessage?
http://www.amxmodx.org/funcwiki.php?..._hud&go=search |
Re: Hud causing overflow
I don't know about the issue as it's quite vague, but no joking your code is crap: reading file each x seconds, using read_file in a loop, wrong formatex usage, etc..
Quote:
|
Re: Hud causing overflow
Quote:
At moment just fixing crash problem and adding some new stuff. Optimizations arent such urgent things. As long as plugin works fine, i have time to do the optimizations. |
Re: Hud causing overflow
The formatex misusage is not an optimization. And what I've said is not about optimization anyway, it's about using the proper natives first.
|
Re: Hud causing overflow
Its optimization, or it isnt. I dont know how to call it :3
I pretend to read IPs and Names once and save the results. But that isnt urgent, cuz the plugin works at moment. And i said before that i hadnt much time and if someone wanted could remake the plugin and trash the current one. This plugin is what is cleaning the mess that valve did. Not saying they shouldnt block connect, just saying they should of have done something to allow redirect and block fake servers. Wich didnt happened. I am cleaning up someone's mess, so stop judging it. I have full time work, community and my personal life. If you think this cant wait, then remake the plugin by yourself :wink: |
Re: Hud causing overflow
Wow. You are in SCRIPTING SECTION, there is no need to react like that. You are here to learn and do some coding. I've just pointed out some POSSIBLE issue with the code that YOU posted. I'm TRYING TO HELP YOU. And not what I''ve said is not about optimizations, because how works such natives internally, and considering plugin context, they could have some issue around this, that's why you should anyway use FROM THE START proper natives to do the job, then you can try to optimize your code after that. I'm not even talking about YOU.
|
Re: Hud causing overflow
You remind me my ex-gf. I didnt said anything in agressive meant. I am weak, i dont attack anyone :lol:
|
Re: Hud causing overflow
Are you sure that hudmessage is causing this?
If yes, then i guess debug it. First see what is going into hudmessage ( print that hudservers somewhere where you can read. ) Check how many times that function is called where hudmessage is. Basically just checking is the code really running the way it should by logging everything somewhere. I just write .txt file if for example there is crash or something that prevent me using console print. Also when you write your code, make sure you test it also in extreme conditions. For example reading that file what you're reading, when file is huge. |
| All times are GMT -4. The time now is 13:09. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.