strmid HELP PLEASE.
#1

I made this but this doesn't work good...
when I enter more than 128 it's just shows nothing

Код:
CMD:me(playerid, params[])
{
	new string[256],action[256], act[256], act2[256];
	if(sscanf(params, "s[256]", action)) return SyntaxMSG(playerid, "/me [action]");
	
	if(strval(action) > 128)
	{
		strmid(act, action, 0, 128);
		strmid(act2, action, 128, 256);
		format(string, sizeof(string), "* %s %s...", GetNameWithMask(playerid), act);
		ProxDetector(30, playerid, string, COLOR_PURPLE);
		format(string, sizeof(string), "...%s", act2);
		ProxDetector(30, playerid, string, COLOR_PURPLE);
	}
	else
	{
		format(string, sizeof(string), "* %s %s", GetNameWithMask(playerid), action);
		ProxDetector(30, playerid, string, COLOR_PURPLE);
	}
	return 1;
}
Reply


Messages In This Thread
strmid HELP PLEASE. - by PaulDinam - 14.02.2013, 14:18
Re: strmid HELP PLEASE. - by HarrisonC - 14.02.2013, 14:34
Re: strmid HELP PLEASE. - by Vince - 14.02.2013, 15:28
Re: strmid HELP PLEASE. - by PaulDinam - 14.02.2013, 18:28
Re: strmid HELP PLEASE. - by PaulDinam - 14.02.2013, 20:03

Forum Jump:


Users browsing this thread: 1 Guest(s)