cmd enter problem
#1

hello take a sistem for business from tutorials ,but when i try to enter in my bizz i take this error "Server:unknown command"

Код:
CMD:enter(playerid)
{
	new h = GetClosetHouseID(playerid);
	if(House[h][On_Sell] == 0 && House[h][Lock] == 0)
	{
		SetPlayerPos(playerid,House[h][ExitX],House[h][ExitY],House[h][ExitZ]);
		SetPlayerInterior(playerid,House[h][IntID]);
		SetPlayerVirtualWorld(playerid,House[h][VW]);
	}
	else return SCM(playerid,COLOR_RED,"EROR: "COL_WHITE"House is locked/Is not on sale.");
	if(strcmp(House[h][Owner],GetName(playerid),false) == 0)
	{
		new Year, Month, Day;
		getdate(Year, Month, Day);
		House[h][DayEnter] = Day;
	 	House[h][MonthEnter] = Month;
		CheckHouse(h);
	}
 	if(IsPlayerInRangeOfPoint(playerid, 1.0, BusinessInfo[playerid][bEntranceX], BusinessInfo[playerid][bEntranceY], BusinessInfo[playerid][bEntranceZ]))//Checks if player is near the entrance.
 	{
  		if(BusinessInfo[playerid][bLocked] == 1) return SendClientMessage(playerid, COLOR_GREY, "This Business is locked!");//Checks it it is locked/
		SetPlayerPos(playerid, BusinessInfo[playerid][bExitX], BusinessInfo[playerid][bExitY], BusinessInfo[playerid][bExitZ]);
		SetPlayerFacingAngle(playerid, BusinessInfo[playerid][bExitA]);
		SetPlayerInterior(playerid, BusinessInfo[playerid][bInsideInt]);
		SetPlayerVirtualWorld(playerid, BusinessInfo[playerid][bInsideWorld]);
		InsideBiz[playerid] = playerid;
		return 1;
	}
	if(IsPlayerInRangeOfPoint(playerid, 2.0, BusinessInfo[playerid][bExitX], BusinessInfo[playerid][bExitY], BusinessInfo[playerid][bExitZ]) && GetPlayerVirtualWorld(playerid) == BusinessInfo[playerid][bInsideWorld])//Checks if player is in near the exit.
 	{
		SetPlayerPos(playerid, BusinessInfo[playerid][bEntranceX], BusinessInfo[playerid][bEntranceY], BusinessInfo[playerid][bEntranceZ]);
		SetPlayerFacingAngle(playerid, BusinessInfo[playerid][bEntranceA]);
		SetPlayerInterior(playerid, BusinessInfo[playerid][bInt]);
		SetPlayerVirtualWorld(playerid, BusinessInfo[playerid][bWorld]);
		InsideBiz[playerid] = 0;
		return 1;
	}
    return 1;
}
Reply


Messages In This Thread
cmd enter problem - by xAlecsu - 21.09.2018, 20:55
Re: cmd enter problem - by kingmk - 21.09.2018, 21:37
Re: cmd enter problem - by Calisthenics - 22.09.2018, 06:24
Re: cmd enter problem - by GTLS - 22.09.2018, 07:12
Re: cmd enter problem - by TheToretto - 22.09.2018, 10:25
Re: cmd enter problem - by xAlecsu - 22.09.2018, 11:48
Re: cmd enter problem - by Zeus666 - 22.09.2018, 11:54
Re: cmd enter problem - by xAlecsu - 22.09.2018, 12:07
Re: cmd enter problem - by Gammix - 23.09.2018, 19:10
Re: cmd enter problem - by solstice_ - 23.09.2018, 19:18

Forum Jump:


Users browsing this thread: 1 Guest(s)