Raised This Month: $ Target: $400
 0% 

Can't precache .txt .. O_o


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Leonidddd
Member
Join Date: Apr 2012
Old 08-26-2015 , 15:41   Can't precache .txt .. O_o
Reply With Quote #1

Hi,

I've just tested function precache_generic and there is an ignoring my precache of .txt file.

PHP Code:
#include <amxmodx>
#include <fakemeta>

//#define fm_precache_generic(%1) engfunc(EngFunc_PrecacheGeneric, %1)    //the same

new forwards;

public 
plugin_precache(){

    
forwards register_forward(FM_PrecacheGeneric"prec_generic");
    
    
precache_generic("test.txt");
}

public 
plugin_init() unregister_forward(FM_PrecacheGenericforwards);

public 
prec_generic(const generic[])
{
    static 
numnum++
    
server_print("generic %i ^"%s^""numgeneric)

So, what's the problem with it?Thx for the answers.


amxmodx-1.8.3-dev-git4868

build 6153

Last edited by Leonidddd; 08-26-2015 at 15:56.
Leonidddd is offline
 



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 22:18.


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