Can't see House Interior!
#1

When I spawned or enter a house, I can only see blue sky without interior, how do I fix this problem? (If I set my virtual world to something, it's work but I already set it in script but still not working).

PHP код:
enum h_Info
{
    
hID,
    
hOwner[MAX_PLAYER_NAME],
    
bool:hRentable,
    
hRentprice,
    
hLevel,
    
bool:hClosed,
    
hSellprice,
    
bool:hBuyable,
    
hInteriorPack,
    
Float:hX,
    
Float:hY,
    
Float:hZ,
    
hInterior,
    
hVirtualWorld,
}
new 
HouseInfo[MAX_HOUSES][h_Info];
enum hInteriors
{
    
intLevel,
    
Float:intX,
    
Float:intY,
    
Float:intZ,
    
hVirtual,
    
intModel,
    
intPrice,
    
_stars,
}
new 
IntInfo[][hInteriors] = {
    {
0,445.04,508.861001.42,12,2,0,1},
    {
1,2807.62,-1171.90,1025.57,8,15,500000,1}
}; 
When player enter the house
PHP код:
    new tmpid;
    
tmpid IsPlayerOutHouse(playerid);
    if(
tmpid != -&& !IsPlayerInAnyVehicle(playerid))
    {
        if(
HouseInfo[tmpid][hClosed] == true && PlayerInfo[playerid][housenum] != tmpid) return GameTextForPlayer(playerid,"~r~Closed"30003);
        new 
intpack HouseInfo[tmpid][hInteriorPack];
        
SetPlayerPos(playeridIntInfo[intpack][intX], IntInfo[intpack][intY], IntInfo[intpack][intZ]);
        
SetPlayerInterior(playeridtmpid+1);
        
SetPlayerVirtualWorld(playeridtmpid+1);
        
SetPlayerFacingAngle(playeridIntInfo[intpack][intY]);
        
SetCameraBehindPlayer(playerid);
        
PlayerTemp[playerid][tmphouse] = tmpid;
        
SaveHouse(tmpid);
        return 
1;
    } 
Reply


Messages In This Thread
Can't see House Interior! - by ServerFiles - 22.04.2018, 17:22
Re: Can't see House Interior! - by SeanDenZYR - 23.04.2018, 01:43
Re: Can't see House Interior! - by ServerFiles - 23.04.2018, 06:12
Re: Can't see House Interior! - by andrejc999 - 23.04.2018, 06:31
Re: Can't see House Interior! - by ServerFiles - 23.04.2018, 06:41
Re: Can't see House Interior! - by Maxandmov - 23.04.2018, 13:08
Re: Can't see House Interior! - by TitoRayne - 23.04.2018, 14:03
Re: Can't see House Interior! - by UFF - 23.04.2018, 14:13
Re: Can't see House Interior! - by ServerFiles - 23.04.2018, 15:15

Forum Jump:


Users browsing this thread: 1 Guest(s)