18.03.2009, 10:18
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:
Here is test command to confirm work:
I tested It with GF mod IRC wich returned same on normal STRCMP because of strcmp bug..
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); }
Код:
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 :))"); }