25.06.2014, 18:28
Hey guys,
I am doing this to check if /pm command is used. But it is not working (i.e. on using /pm I am getting the same result as when I am not using /pm). Am I comparing the string the right way? :
Regards.
I am doing this to check if /pm command is used. But it is not working (i.e. on using /pm I am getting the same result as when I am not using /pm). Am I comparing the string the right way? :
pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
if(!success) SendClientMessage(playerid, -1, "Incorrect command, type /cmds to find out available commands");
if(success)
{
if(strcmp(cmdtext, "/pm") == 1)
{
print("");
}
}
return 1;
}