Forcing a command by a command.
#1

Hey there, first of all thank you for even reading this.

I've been trying to make a /forcecmd ( force-command ) which will basically force a player to perform the command a certain admin chose.

This is my code:
pawn Код:
CMD:forcecmd(playerid, params[])
{
    new cmdToForce[50];
    if(PlayerInfo[playerid][AdminLevel] < 5) return SendClientMessage(playerid, COLOR_ERROR, "ERROR: You are not authorized to perform this command.");
    if(sscanf(params, "rs[50]", Target, cmdToForce)) return SendClientMessage(playerid, COLOR_USAGE, "USAGE: /forcecmd [playerid/PartOfName] [command-to-force]");
    return cmd_cmdToForce(Target, params[]);
}
Doesn't matter how I do it, I keep getting the following error:
Код:
error 017: undefined symbol "cmd_cmdToForce"
The line is ofcourse the following:
pawn Код:
return cmd_cmdToForce(Target, params[]);
What may I do?

Thank you in advance.
Reply


Messages In This Thread
Forcing a command by a command. - by Denying - 24.03.2013, 09:40
Re: Forcing a command by a command. - by DiGiTaL_AnGeL - 24.03.2013, 09:50
Re: Forcing a command by a command. - by Misiur - 24.03.2013, 09:50
Re: Forcing a command by a command. - by Denying - 24.03.2013, 10:39
Re: Forcing a command by a command. - by Pottus - 24.03.2013, 10:44
Re: Forcing a command by a command. - by Denying - 24.03.2013, 10:55

Forum Jump:


Users browsing this thread: 1 Guest(s)