Raised This Month: $ Target: $400
 0% 

block/change map precaching


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
FatalisDK
Senior Member
Join Date: Mar 2006
Location: bacon
Old 10-21-2006 , 08:05   block/change map precaching
Reply With Quote #1

Upgraded my server from windows to linux, and now a few of my maps are crashing because the mapper used wrong casing.
Example:
Real file is sprites/flame2.spr
Map tries to precache Sprites/flame2.spr
(Not sure if dirs are case sensitive on linux.. but the file isn't being found and crashes hlds)

Also need help with this -> http://ampaste.net/4372

Code:
#include <amxmodx> #include <fakemeta> #define PLUGIN "Block/Change Precache" #define VERSION "0.1" #define AUTHOR "FatalisDK" public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR) } public plugin_precache() {     register_forward(FM_PrecacheModel, "fwdPrecacheModel", 0); } public fwdPrecacheModel(szModel[]) {     // 3 ways I tried         /* 1     if( equal(szModel, "Sprites/flame2.spr", 0) )     {         return FMRES_SUPERCEDE;     }*/         /* 2     copy(szModel, 18, "sprites/flame2.spr")     */         /* 3     if( equal(szModel, "Sprites/flame2.spr", 0) )     {         return FMRES_HANDLED;     }*/ }
__________________

Last edited by FatalisDK; 10-21-2006 at 09:28.
FatalisDK 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 04:55.


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