ZCMD and SSCANF question with strcmp
#5

I made this:

Код:
CMD:note(playerid, params[])
{
	new option[128], str[256], text[256];
	if(sscanf(params,"s[128]",option)) return SyntaxMSG(playerid, "/note [show/create/remove/give]");
	
	if(!strcmp(option, "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(option, "create", true))
	{
		if(sscanf(params,"s[256]",text)) return SyntaxMSG(playerid, "/note create [text]");

		
	}


	return 1;
}
I don't understand this lol.
{s[7]}
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)