14.04.2011, 13:57
Hello, I'm making an announce filterscript, finaly it doesn't give errors anymore but now IG it says:
"Unknown command"
Here is my source:
"Unknown command"
Here is my source:
Код:
#define FILTERSCRIPT
#include <a_samp>
#include <sscanf>
#include <zcmd>
forward OnPlayerCommandText(playerid, cmdtext[]);
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/announce", true))
{
if(!IsPlayerAdmin(playerid))
{
if(strlen(cmdtext) < 10)
{
return 1;
}
new gText[128];
format(gText, sizeof(gText), "%s", cmdtext[10]);
GameTextForAll(gText, 5000, 3);
}
}
return 1;
}


