12.05.2013, 15:09
While everyone saying ZCMD is better than Strcmp?
I think Strcmp is easy to use for newbie likes me....
What do you all think?
I think Strcmp is easy to use for newbie likes me....
What do you all think?
if("string1" == "string1") { //do something }
Can anyone here try this script and please inform me what is their bug : http://pastebin.com/JGgBUwj7
|
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/command", true))
{
// Code
return 1;
}
else if(!strcmp(cmdtext, "/test", true))
{
// Code
return 1;
}
return 0;
}
CMD:command(playerid, params[])
{
// Code
return 1;
}
CMD:test(playerid, params[])
{
// Code
return 1;
}