02.01.2017, 20:24
Hey, I've got a small problem with fremove. The problem is that it doesn't remove a file if the destinations string is 17. 17 is the max, anything under 17 it gets removed without a problem.
new string[128];
format(string, sizeof(string), "/groups/names/%s.ini", GroupInfo[groupid][gName]);
fremove(string);
So let's say the string stored in GroupInfo[groupid][gName] is: abcdefghijklmnop (16 characters)
It will remove this without a problem
But if the string is abcdefghijklmnopq (17 characters) it won't get removed.
Any idea why it does that?
new string[128];
format(string, sizeof(string), "/groups/names/%s.ini", GroupInfo[groupid][gName]);
fremove(string);
So let's say the string stored in GroupInfo[groupid][gName] is: abcdefghijklmnop (16 characters)
It will remove this without a problem
But if the string is abcdefghijklmnopq (17 characters) it won't get removed.
Any idea why it does that?