[HELP] Problem with a small Command
#1

Код:
	if (strcmp(cmd, "/advert", true) ==0 || strcmp(cmd, "/ad", true) ==0)
	{
	  if(PlayerToPoint(15.0,playerid,1788.4279,-1297.8048,13.3750))
	  {
		  new name1[256];
		  GetPlayerName(playerid,name1,sizeof(name1));
		  if ((strlen(cmdtext) >= 3)&&(strlen(cmdtext) <= 7))
			{
			SendClientMessage(playerid,0xC0C0C0FF, "	USAGE: /ad(vert) [text]"); return 1;
			}
			format(string,sizeof(string),"Advertisement: %s, contact %s.",cmdtext[3],name1);
			SendClientMessageToAll(0x00FF00FF,string);
			return 1;
		}
	}
It would be great if you could help me with "else" so it send a warning message if I'm in wrong position.

Thanks
Reply


Messages In This Thread
[HELP] Problem with a small Command - by FreddeN - 04.12.2009, 19:01
Re: [HELP] Problem with a small Command - by Zamaroht - 04.12.2009, 19:18
Re: [HELP] Problem with a small Command - by FreddeN - 04.12.2009, 19:32
Re: [HELP] Problem with a small Command - by Zamaroht - 04.12.2009, 19:34
Re: [HELP] Problem with a small Command - by FreddeN - 04.12.2009, 19:38

Forum Jump:


Users browsing this thread: 2 Guest(s)