View Single Post
psychonic

BAFFLED
Join Date: May 2008
Old 12-27-2009 , 22:01   Re: Advanced Rules Menu
Reply With Quote #32

@neo_gis

Please use Sourcemod's BuildPath() function rather than hardcoding the Sourcemod directory path.

Ex.
PHP Code:
FileToKeyValues(kv"addons/sourcemod/configs/rules.cfg"); 
becomes
PHP Code:
decl String:rulespath[PLATFORM_MAX_PATH];
BuildPath(Path_SMrulespathsizeof(rulespath), "configs/rules.cfg");
FileToKeyValues(kvrulespath); 
psychonic is offline