fremove problem
#3

Quote:
Originally Posted by Vince
Посмотреть сообщение
Probably related to the directory seperator. Windows uses the backslash so it treats a forward slash as part of the filename. The same problem occurs if trying to include files with forward slashes; a path greater than 36-ish characters in length produces glitchy behavior. consider doing something like:

PHP код:
#define OS_WINDOWS
#if defined OS_WINDOWS
    
static const pattern[] = \"\groups\names\%s.ini";
#else
    
static const pattern[] = \"/groups/names/%s.ini";
#endif
format(stringsizeof(string), patternGroupInfo[groupid][gName]); 
Obviously defining OS_WINDOWS as necessary. Comment the line when compiling for a Linux host.
Thanks for the help, but my problem was at a strcat :/ I tried the code above, storing it worked fine but it wouldn't get rid of a 17 character string still.

My problem got solved when I had changed this:
strcat((GroupInfo[i][gName] = 0, GroupInfo[i][gName]), params, 17);

To this:
strcat((GroupInfo[i][gName] = 0, GroupInfo[i][gName]), params, 18 );

This code was under a command named /creategroup and the first strcat code with the 17 at the end stored all characters fine when I checked, so I didn't really understand why it would cause a problem but nonetheless it got fixed.
Reply


Messages In This Thread
fremove problem - by TonyII - 02.01.2017, 20:24
Re: fremove problem - by Vince - 02.01.2017, 22:46
Re: fremove problem - by TonyII - 03.01.2017, 00:07

Forum Jump:


Users browsing this thread: 1 Guest(s)