Some cmds
#1

Hello, I just made my new server and I would like to script /report cmd.
I write in pawno this for code:

if (strcmp(cmd, "/report id reason ") == 0)
{
if (strlen(cmdtext) >
{
GetPlayerName(playerid, playername, sizeof(playername));
format(string, sizeof(string), "Report from %s(%d): %s", playername, playerid, cmdtext[8]);
SendMessageToAdmins(string);
format(string, sizeof(string), "Report sent to currently online admins.");
SendMessage(playerid, string);
}
else {
format(string, sizeof(string), "Usage: /report id <text to send>");
SendMessage(playerid, string);
}
return 1;




What is wrong with him, I save it and start my server, I write /report id reason and "SEERVER: Unaknown command"

Please help?
Reply


Messages In This Thread
Some cmds - by Ironboy500 - 17.08.2009, 20:02
Re: Some cmds - by dice7 - 17.08.2009, 20:19
Re: Some cmds - by Ironboy500 - 17.08.2009, 20:23
Re: Some cmds - by MenaceX^ - 17.08.2009, 20:25
Re: Some cmds - by XtremeChio - 17.08.2009, 20:44
Re: Some cmds - by urkiefly101 - 17.08.2009, 21:10
Re: Some cmds - by ilikepie2221 - 17.08.2009, 23:49
Re: Some cmds - by coole210 - 18.08.2009, 00:13
Re: Some cmds - by XCultz - 18.08.2009, 00:45
Re: Some cmds - by Ironboy500 - 18.08.2009, 07:55

Forum Jump:


Users browsing this thread: 1 Guest(s)