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

get_user_msgid() fails to work on server startup?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 06-26-2018 , 15:10   get_user_msgid() fails to work on server startup?
Reply With Quote #1

I just noticed something weird. I made a simple code to demonstrate.

PHP Code:
#include <amxmodx>

public plugin_precache()
    
log_amx("%i %i %i"get_user_msgid("TeamInfo"), get_user_msgid("Damage"), get_user_msgid("ScreenFade")) 
The output of this code is "0 0 0" on server start.
After I restart the server with the "restart" command or change the map, the output is "86 71 98" as it should be.

I tested both on 1.8.3 latest dev build and 1.8.2. The results are the same. It happens with any message.
However, if I change the event to plugin_init() instead of plugin_precache(), it works normally.

Am I missing something or is this a bug?
__________________

Last edited by OciXCrom; 06-26-2018 at 15:11.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
 



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 10:38.


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