Bugfix: strcmp
#1

I didn't know where to post it so i did here.. If it is wrong section , mods please move it to correct...

Here is code:
Код:
stock strcmpEx(const string1[], const string2[], bool:ignorecase=false, length=cellmax)
{
	if((!strlen(string1) || !strlen(string2))) return -1; // JoeBullet's brain -_- Written in 10 sec lol
	return strcmp(string1, string2, ignorecase, length);
}
Here is test command to confirm work:
Код:
if(!strcmp(cmd, "/strcmpex", true))
{
  if(strcmpEx(" ","How are you?",false)==0) return SendClientMessage(playerid, COLOR_YELLOW, "Dont Work !!!");
  else return SendClientMessage(playerid, COLOR_YELLOW, "Work :))");
}
I tested It with GF mod IRC wich returned same on normal STRCMP because of strcmp bug..
Reply


Messages In This Thread
Bugfix: strcmp - by Google63 - 18.03.2009, 10:18
Re: Bugfix: strcmp - by yezizhu - 18.03.2009, 10:41
Re: Bugfix: strcmp - by Google63 - 18.03.2009, 11:51
Re: Bugfix: strcmp - by Chaprnks - 22.03.2009, 09:02
Re: Bugfix: strcmp - by Google63 - 26.03.2009, 17:15
Re: Bugfix: strcmp - by boylett - 26.03.2009, 17:36
Re: Bugfix: strcmp - by 1337pr0 - 22.04.2009, 06:14
Re: Bugfix: strcmp - by MenaceX^ - 22.04.2009, 06:21

Forum Jump:


Users browsing this thread: 1 Guest(s)