AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [Solved] Strange ML Bug (https://forums.alliedmods.net/showthread.php?t=57551)

Arkshine 07-06-2007 20:35

[Solved] Strange ML Bug
 
Hi.

I'm using ML system with some log_amx() function.

But there is a little bug.

The very first time that I start my dedicated server, ML system doesn't find key langages.

If I restart my server ( restart command ), ML system is showing key languages properly.

Ie :

- Starting my dedicat server and I see : L 07/06/2007 - 21:20:36: [End_Round_Sound.amxx] ML_NOTFOUND: ERS_LOG_LOADING

- After a restart : L 07/06/2007 - 21:24:44: [End_Round_Sound.amxx] Loading file: "addons/amxmodx/configs/roundsound.ini"


Also, the first time in game ML system works fine with some client_print() function. Apparently it seems that there is a glitch at the very starting of server.

Any idea how fixed that ?

Thanks! :)

Arkshine 07-07-2007 22:17

Re: Strange ML Bug
 
Any ideas ? I did not find the problem yet.

Arkshine 07-08-2007 22:29

Re: Strange ML Bug
 
I've found.

I have to put "register_dictionary( "my_file.txt" );" in the precache function before loading files.

Rolnaaba 07-09-2007 21:54

Re: [Solved] Strange ML Bug
 
shouldnt it be my_file.txt?

Arkshine 07-09-2007 21:57

Re: [Solved] Strange ML Bug
 
You're right. But it's just a typo in my post. :)

What I mean, and It works fine like :

Code:
public plugin_precache() {         register_dictionary( "end_roundsound.txt" );         loading_file(); }


All times are GMT -4. The time now is 21:34.

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