AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Can't precache .txt .. O_o (https://forums.alliedmods.net/showthread.php?t=270675)

Leonidddd 08-26-2015 15:41

Can't precache .txt .. O_o
 
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

Arkshine 08-26-2015 15:55

Re: Can't precache .txt .. O_o
 
If you mean the forward is not called, it's expected.

Leonidddd 08-26-2015 16:36

Re: Can't precache .txt .. O_o
 
I mean precache_generic doesn't precaching file test.txt(.txt format doesn't blocked, right?), why?

wickedd 08-26-2015 17:00

Re: Can't precache .txt .. O_o
 
Why are you trying to precache a .txt file? What are you trying to do?

Leonidddd 08-26-2015 17:04

Re: Can't precache .txt .. O_o
 
I've just checked efficiency of this function.

Leonidddd 09-11-2015 13:17

Re: Can't precache .txt .. O_o
 
Was it fixed?

fysiks 09-11-2015 19:58

Re: Can't precache .txt .. O_o
 
What is there to fix?

Leonidddd 09-12-2015 11:51

Re: Can't precache .txt .. O_o
 
Nowhere.. forget.

HamletEagle 09-12-2015 13:38

Re: Can't precache .txt .. O_o
 
IIRC this forwards are not called for custom precached resources, there is nothing to fix.


All times are GMT -4. The time now is 22:18.

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