SA-MP Forums Archive
what the proplem with this fs? - 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: what the proplem with this fs? (/showthread.php?tid=246898)



what the proplem with this fs? - misho1 - 06.04.2011

Код:
	if(strcmp(cmdtext, "/me", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {

			}
			new length = strlen(cmdtext);
			while ((idx < length) && (cmdtext[idx] <= ' '))
			{
				idx++;
			}
			new offset = idx;
			new result[128];
			while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
			{
				result[idx - offset] = cmdtext[idx];
				idx++;
			}
			result[idx - offset] = EOS;
			if(!strlen(result))
			{
				SendClientMessage(playerid, grey, "USAGE: /me [action]");
				return 1;
			}
plz help fast


Re : what the proplem with this fs? - Vukilore - 06.04.2011

I wanna know what's the problem too....

* Vukilore doesn't work with strcmp, because if you type /meee that's result Your_Nick ee


Re: what the proplem with this fs? - misho1 - 06.04.2011

i am wait for answer