24.03.2013, 09:40
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:
Doesn't matter how I do it, I keep getting the following error:
The line is ofcourse the following:
What may I do?
Thank you in advance.
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[]);
}
Код:
error 017: undefined symbol "cmd_cmdToForce"
pawn Код:
return cmd_cmdToForce(Target, params[]);
Thank you in advance.