How to make a second line for chat, /me, /do etc..
#1

Okay, How can I make a second line for me instead of a Long 1...
I mean this:
* Cr4zyR0d lifts up his shirt and takes out a Glock .45 from his waistline, then reloads the Glock .45 -
as he smirks (( User name ))


Instead of:
* Cr4zyR0d lifts up his shirt and takes out a Glock .45 from his waistline, then reloads the Glock .45 as he smirks

And this is the max of letters allowed in the /me?
Код:
new result[96];
Код:
if(strcmp(cmd, "/me", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
	        if(gPlayerLogged[playerid] == 0)
	        {
	            SendClientMessage(playerid, COLOR_GREY, "   You havent logged in yet !");
	            return 1;
	        }
			GetPlayerName(playerid, sendername, sizeof(sendername));
			new length = strlen(cmdtext);
			while ((idx < length) && (cmdtext[idx] <= ' '))
			{
				idx++;
			}
			new offset = idx;
			new result[96];
			while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
			{
				result[idx - offset] = cmdtext[idx];
				idx++;
			}
			result[idx - offset] = EOS;
			if(!strlen(result))
			{
				SendClientMessage(playerid, COLOR_WHITE, "USAGE: /me [action]");
				return 1;
			}
			if(PlayerInfo[playerid][pMask] == 1)
			{
			    format(string, sizeof(string), "* Stranger %s", result);
			}
			else
			{
				format(string, sizeof(string), "* %s %s", sendername, result);
			}
			ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
		}
		return 1;
	}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)