04.04.2018, 11:47 
	
	
	
		I am using zcmd command /enter to enter the business. It works until the server restart. After the restart, I am not able to enter the business.
BizEnter Function:
This is executing... is not showing up either.
	
	
	
	
PHP код:
CMD:enter(playerid, params[])
{
    if(GetPlayerVirtualWorld(playerid) == 0)
    {
        for(new b = 0; b < sizeof(Business); b++)
        {
            if(IsPlayerInRangeOfPoint(playerid, 2.0, Business[b][BizEntranceX], Business[b][BizEntranceY], Business[b][BizEntranceZ]))
            {
                // Player[playerid][CurrentID] = b;
                curbizid = b;
                BizEnter(playerid, curbizid);
                break;
            }
        }
    }
    else
    {
        SendClientMessage(playerid, 0xE74C3CFF, "You are already in a building!");
    }
    return 1;
} 
PHP код:
public BizEnter(playerid, bizid)
{
    GameTextForPlayer(playerid, "~g~Welcome!", 1500, 1);
    switch(Business[bizid][BizInterior])
    {
        case 1: // 24/7 1
        {
            printf("This is executing...");
            Business[Player[playerid][CurrentID]][BizExitX] = -25.884498;
            Business[Player[playerid][CurrentID]][BizExitY] = -185.868988;
            Business[Player[playerid][CurrentID]][BizExitZ] = 1003.546875;
            SetPlayerPos(playerid, Business[Player[playerid][CurrentID]][BizExitX], Business[Player[playerid][CurrentID]][BizExitY], Business[Player[playerid][CurrentID]][BizExitZ]);
            SetPlayerInterior(playerid, 17);
            SetPlayerVirtualWorld(playerid, 2);
            SetPlayerFacingAngle(playerid, 0.0);
        }
    }
    return 1;
} 



