25.04.2012, 11:11
Hi,
I have a problem with my function OnPlayerCommandText.
This is my function:
When I go ingame, I write the command and I receive a message : SERVER: Unknown command.
I changed return 0; by return 1; or return SendClientMessage... but I have the same message.
Thank you in advance.
Sorry for my english, i'm french.
EDIT: With a filtescript, it works.
I have a problem with my function OnPlayerCommandText.
This is my function:
Code:
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/test", cmdtext, true, 10) == 0) { SendClientMessage(playerid, COLOR_WHITE, "Test"); return 1; } return 0; }
I changed return 0; by return 1; or return SendClientMessage... but I have the same message.
Thank you in advance.
Sorry for my english, i'm french.
EDIT: With a filtescript, it works.