SA-MP Forums Archive
Strlen O_O - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Strlen O_O (/showthread.php?tid=103163)



Strlen O_O - SoeH - 18.10.2009

I don't know why....

I have this:

Код:
if (strcmp(cmd, "/changenick", true)==0)
{
	tmp = strtok(cmdtext, idx);
	printf("length: %d",strlen(tmp));
	return 1;
}
If i insert this:



My log say:

Код:
[20:19:32] length: 19
should not be 21?


Re: Strlen O_O - SoeH - 19.10.2009

OK, THANKS TO ALL, I HAVE FOUND PROBLEM, AND THIS IS SOLUTION: http://forum.sa-mp.com/index.php?top...1809#msg781809

You can Lock.