[HELP] To small space to type
#2

Код:
if(strcmp(cmd, "/ooc", true) == 0 || strcmp(cmd, "/o", true) == 0)
	{
	  if(IsPlayerConnected(playerid))
	  {
	    if(IsLogged[playerid] == 0)
	    {
	      SendClientMessage(playerid, COLOR_GREY, "	You are not logged in yet.");
	      return 1;
	    }
			if(noooc == 0)
			{
				SendClientMessage(playerid, COLOR_GREY, "	The OOC channel has been disabled by an admin.");
				return 1;
			}
			GetPlayerName(playerid, sendername, sizeof(sendername));
			new length = strlen(cmdtext);
			while ((idx < length) && (cmdtext[idx] <= ' '))
			{
				idx++;
			}
			new offset = idx;
			new result[256];
			while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
			{
				result[idx - offset] = cmdtext[idx];
				idx++;
			}
			result[idx - offset] = EOS;
			if(!strlen(result))
			{
				SendClientMessage(playerid, COLOR_GREY, "	USAGE: (/o)oc [text]");
				return 1;
			}
			format(string, sizeof(string), "(( [OOC] %s: %s ))", sendername, result);
			SendClientMessageToAll(COLOR_WHITE,string);
		}
		return 1;
	}
Try that.
Reply


Messages In This Thread
[HELP] To small space to type - by FreddeN - 27.02.2010, 14:01
Re: [HELP] To small space to type - by Eazy_Efolife - 27.02.2010, 14:29
Re: [HELP] To small space to type - by FreddeN - 27.02.2010, 14:52

Forum Jump:


Users browsing this thread: 1 Guest(s)