You will get the same error on those lines too:
PHP Code:
new szTempName[MAX_SKINS][256]
new szTempLocation[MAX_SKINS][256]
new szTempPreview[MAX_SKINS][256]
because every variable has MAX_SKINS rows ( 9 ), each row has 256 lenght: 9 x 256 = 2304.
So, a stack error is thrown when you are declaring a big size variable locally, declare it globally and the error will disappear.
From my tests, I've discovered that you can declare a local variable with a maximum size of ~2100.
Edit: You don't need to assign that much size for just some locations and names, use 64 instead, should be more than enough
__________________