AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   precache_generic does not work (https://forums.alliedmods.net/showthread.php?t=147706)

Backstabnoob 01-12-2011 15:08

precache_generic does not work
 
PHP Code:


#include <amxmodx>


#define RESFILE1 "resources/images/neco.tga"
#define RESFILE2 "resources/neco.res"

public plugin_precache()
{
    
precache_generic(RESFILE1)
    
precache_generic(RESFILE2)
}

public 
plugin_init()
    
register_plugin("Precache Res Files""1.0""IdiotStrike"

I see nothing wrong. The server doesn't crash, clients just don't download the files.

Arkshine 01-12-2011 15:17

Re: precache_generic does not work
 
If the files already exists on the client, it won't work.


All times are GMT -4. The time now is 02:07.

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