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

Can't precache .txt .. O_o


Post New Thread Reply   
 
Thread Tools Display Modes
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
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-26-2015 , 15:55   Re: Can't precache .txt .. O_o
Reply With Quote #2

If you mean the forward is not called, it's expected.
__________________
Arkshine is offline
Leonidddd
Member
Join Date: Apr 2012
Old 08-26-2015 , 16:36   Re: Can't precache .txt .. O_o
Reply With Quote #3

I mean precache_generic doesn't precaching file test.txt(.txt format doesn't blocked, right?), why?
Leonidddd is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 08-26-2015 , 17:00   Re: Can't precache .txt .. O_o
Reply With Quote #4

Why are you trying to precache a .txt file? What are you trying to do?
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
Leonidddd
Member
Join Date: Apr 2012
Old 08-26-2015 , 17:04   Re: Can't precache .txt .. O_o
Reply With Quote #5

I've just checked efficiency of this function.
Leonidddd is offline
Leonidddd
Member
Join Date: Apr 2012
Old 09-11-2015 , 13:17   Re: Can't precache .txt .. O_o
Reply With Quote #6

Was it fixed?
Leonidddd is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 09-11-2015 , 19:58   Re: Can't precache .txt .. O_o
Reply With Quote #7

What is there to fix?
__________________
fysiks is offline
Leonidddd
Member
Join Date: Apr 2012
Old 09-12-2015 , 11:51   Re: Can't precache .txt .. O_o
Reply With Quote #8

Nowhere.. forget.
Leonidddd is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 09-12-2015 , 13:38   Re: Can't precache .txt .. O_o
Reply With Quote #9

IIRC this forwards are not called for custom precached resources, there is nothing to fix.
__________________
HamletEagle is offline
Reply



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 02:40.


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