Problems in /enter
#1

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.

PHP код:
CMD:enter(playeridparams[])
{
    if(
GetPlayerVirtualWorld(playerid) == 0)
    {
        for(new 
0sizeof(Business); b++)
        {
            if(
IsPlayerInRangeOfPoint(playerid2.0Business[b][BizEntranceX], Business[b][BizEntranceY], Business[b][BizEntranceZ]))
            {
                
// Player[playerid][CurrentID] = b;
                
curbizid b;
                
BizEnter(playeridcurbizid);
                break;
            }
        }
    }
    else
    {
        
SendClientMessage(playerid0xE74C3CFF"You are already in a building!");
    }
    return 
1;

BizEnter Function:
PHP код:
public BizEnter(playeridbizid)
{
    
GameTextForPlayer(playerid"~g~Welcome!"15001);
    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(playeridBusiness[Player[playerid][CurrentID]][BizExitX], Business[Player[playerid][CurrentID]][BizExitY], Business[Player[playerid][CurrentID]][BizExitZ]);
            
SetPlayerInterior(playerid17);
            
SetPlayerVirtualWorld(playerid2);
            
SetPlayerFacingAngle(playerid0.0);
        }
    }
    return 
1;

This is executing... is not showing up either.
Reply
#2

What about to try "print("");" command? Because the "f" means formatted.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)