28.10.2014, 06:47
Hi all. I want to shorten the shout command as follows via YCMD. What is wrong with this code as I get error undefined symbol "cmd_shout". Is YCMD able to even do it?
Any help appreciated.
EDIT: fixed a bracket
pawn Код:
YCMD:s(playerid,params[], help)
{
return cmd_shout(playerid,params);
}
pawn Код:
YCMD:shout(playerid, params[], help)
{
new string[128], shout[100];
if(sscanf(params,"s[100]",shout))return SendClientMessage(playerid,-1,"USAGE: /(s)hout [message]");
else
{
format(string, sizeof(string), "%s shouts: %s!",GetName(playerid),shout);
ProxDetector(50.0, playerid, string, -1);
}
return 1;
}
EDIT: fixed a bracket