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;
}*/
}
__________________