20.02.2013, 16:24
I made this command:
When I do /note create it doesn't show me the SyntaxMSG..
how can I combine sscanf in strcmp with ZCMD.
Код:
CMD:note(playerid, params[])
{
new str[256];
if(!strcmp(params, "show", true))
{
SCM(playerid, COLOR_YELLOWG, "|____________Notes____________|");
format(str, sizeof(str), "Note 1: {94EDED}%s{FFFFFF}.", PlayerInfo[playerid][pNote1]);
SCM(playerid, -1, str);
format(str, sizeof(str), "Note 2: {94EDED}%s{FFFFFF}.", PlayerInfo[playerid][pNote2]);
SCM(playerid, -1, str);
format(str, sizeof(str), "Note 3: {94EDED}%s{FFFFFF}.", PlayerInfo[playerid][pNote3]);
SCM(playerid, -1, str);
SCM(playerid, COLOR_YELLOWG, "|_____________________________|");
format(str, sizeof(str), "* %s takes out a few paper notes and looks through them.", GetNameWithMask(playerid));
ProxDetector(30.0, playerid, str, COLOR_PURPLE);
}
if(!strcmp(params, "create", true))
{
new text[256];
if(sscanf(params,"s[256]",text)) return SyntaxMSG(playerid, "/note create [text]");
}
return 1;
}
how can I combine sscanf in strcmp with ZCMD.

