View Single Post
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 07-29-2015 , 14:15   Re: Automatic Command Executor [1.0]
Reply With Quote #6

Quote:
Originally Posted by HamletEagle View Post
PHP Code:
filename[256
256 is too much, 128 should be fine.
It's actually not, Windows path can be up to 259 (256 + Drive letter, a colon and a backslash) characters long, and even AMXX uses 256 in its code to retrieve paths, like configs directory. Take a look here for an example. Nothing wrong with having 256 in there. I even myself define a PATH_MAX constant in my plugins when working with files, and set its value to 256/260.
klippy is offline