ZCMD and SSCANF question with strcmp
#1

I made this command:

Код:
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;
}
When I do /note create it doesn't show me the SyntaxMSG..
how can I combine sscanf in strcmp with ZCMD.
Reply


Messages In This Thread
ZCMD and SSCANF question with strcmp - by PaulDinam - 20.02.2013, 16:24
Re: ZCMD and SSCANF question with strcmp - by Scenario - 20.02.2013, 16:32
Re: ZCMD and SSCANF question with strcmp - by PaulDinam - 20.02.2013, 16:34
Re: ZCMD and SSCANF question with strcmp - by Scenario - 20.02.2013, 16:36
Re: ZCMD and SSCANF question with strcmp - by PaulDinam - 20.02.2013, 16:41
Re: ZCMD and SSCANF question with strcmp - by Scenario - 20.02.2013, 16:57
Re: ZCMD and SSCANF question with strcmp - by PaulDinam - 20.02.2013, 17:07
Re: ZCMD and SSCANF question with strcmp - by Scenario - 20.02.2013, 17:11
Re: ZCMD and SSCANF question with strcmp - by PaulDinam - 20.02.2013, 17:22
Re: ZCMD and SSCANF question with strcmp - by Scenario - 20.02.2013, 17:49

Forum Jump:


Users browsing this thread: 1 Guest(s)