strmid has a bug
#1

pawn Код:
new DEBUG[10],ABC[3],DEF[3];
format(DEBUG,10,"ABCDEF");
strmid(ABC,DEBUG,0,2);
strmid(DEF,DEBUG,3,5);
printf("Should be ABC: '%s'\nShould be DEF: '%s'",ABC,DEF);
Output is:

Код:
Should be ABC: 'AB'
Should be DEF: 'DE'
Any solutions to this? It worked fine the first time i tested it, but after a server restart it got like this...
Reply


Messages In This Thread
strmid has a bug [Solved] - by liquor - 16.07.2015, 17:26
Re: strmid has a bug - by Vince - 16.07.2015, 17:29
Re: strmid has a bug - by liquor - 16.07.2015, 17:33
Re: strmid has a bug - by liquor - 16.07.2015, 17:42

Forum Jump:


Users browsing this thread: 3 Guest(s)