21.09.2018, 20:55
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; }