Unknown command problem
#1

Hi. Have problem with command. When I use my command in right place - command working correct. But when I use command in random place, where player is not in range of point, server says my: Unknown command. How to make, that if I use that command in random place, server would not write unknown command, just nothing.

Код:
 	if(strcmp(cmdtext, "/eat", true)==0)
	{
	for(new x; x<places; x++) 
	{
	if(IsPlayerInRangeOfPoint(playerid, 2.0,PlesI[x][EnterPos][0],PlesI[x][EnterPos][1d],PlesI[x][EnterPos][2]))
	{
 	new msg[1200];
 	format(msg,sizeof(msg),"{0099FF}[>>]{FFFFFF} %s text!",PlesI[x][vietospav]);
 	SetPlayerMapIcon(playerid, 73, PlesI[x][EnterPos][0],PlesI[x][EnterPos][1],PlesI[x][EnterPos][2], 6, 0, MAPICON_GLOBAL);
 	}
	}
	return 1;
 }
Reply


Messages In This Thread
Unknown command problem - by ,TomY' - 25.06.2018, 17:49
Re: Unknown command problem - by JasonRiggs - 25.06.2018, 18:26
Re: Unknown command problem - by Lokii - 25.06.2018, 18:43
Re: Unknown command problem - by Calisthenics - 25.06.2018, 18:51
Re: Unknown command problem - by JasonRiggs - 25.06.2018, 18:59
Re: Unknown command problem - by ,TomY' - 25.06.2018, 20:17

Forum Jump:


Users browsing this thread: 1 Guest(s)