24.04.2012, 02:58
This is what I got, it compiles and everything but when I test it out I get unknown command. It did the same thing with the /kill command. please help!
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/help()", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, 0xFFFF00AA, "(INFO) Welcome to my Server's HELP command!");
SendClientMessage(playerid, 0xFFFF00AA, "(INFO) Hope you enjoy the tutorial!");
return 1;
}
return 0;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/help()", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, 0xFFFF00AA, "(INFO) Welcome to my Server's HELP command!");
SendClientMessage(playerid, 0xFFFF00AA, "(INFO) Hope you enjoy the tutorial!");
return 1;
}
return 0;
}