Загрузка 3D текстов
#1

Здравствуйте. Обнаружил проблему, не подгружаются 3Д тексты в гараже, в чём может быть проблема?

PHP код:
             Create3DTextLabel("{FFFFFF}Войти в дом\nНажмите: {20FA0C}ALT",COLOR_YELLOW,2495.4639,-2565.7891,2501.0859+0.8,9.0,he+50,0);
            
Create3DTextLabel("{FFFFFF}Выйти из гаража\nНажмите: {20FA0C}ALT",COLOR_YELLOW,2489.1052,-2555.9993,2501.0859+0.8,9.0,he+50,0);
            
Create3DTextLabel("{FFFFFF}Тюнинг автомобиля\n{20FA0C}/htune",COLOR_YELLOW,2486.6084,-2568.6472,2500.5979+0.8,9.0,he+50,0); 


PHP код:
publicsLoadProperty()
{
    static 
fields;
    
cache_get_data(TOTALHOUSEfields);
    new 
temp[64];
    if(
TOTALHOUSE)
    {
        for(new 
he 0he TOTALHOUSEhe++)
        {
            
cache_get_row(he0temp), HouseInfo[he][hID] = strval(temp);
            
cache_get_row(he1temp), HouseInfo[he][hEntrancex] = floatstr(temp);
            
cache_get_row(he2temp), HouseInfo[he][hEntrancey] = floatstr(temp);
            
cache_get_row(he3temp), HouseInfo[he][hEntrancez] = floatstr(temp);
            
cache_get_row(he4temp), HouseInfo[he][hExitx] = floatstr(temp);
            
cache_get_row(he5temp), HouseInfo[he][hExity] = floatstr(temp);
            
cache_get_row(he6temp), HouseInfo[he][hExitz] = floatstr(temp);
            
cache_get_row(he7temp), strmid(HouseInfo[he][hOwner], temp0strlen(temp), 255);
            
cache_get_row(he8temp), HouseInfo[he][hValue] = strval(temp);
            
cache_get_row(he9temp), HouseInfo[he][hHel] = strval(temp);
            
cache_get_row(he10temp), HouseInfo[he][hInt] = strval(temp);
            
cache_get_row(he11temp), HouseInfo[he][hLock] = strval(temp);
            
cache_get_row(he12temp), HouseInfo[he][hOwned] = strval(temp);
            
cache_get_row(he13temp), HouseInfo[he][hTakings] = strval(temp);
            
cache_get_row(he14temp), HouseInfo[he][hKlass] = strval(temp);
            
cache_get_row(he15temp), HouseInfo[he][hCarx] = floatstr(temp);
            
cache_get_row(he16temp), HouseInfo[he][hCary] = floatstr(temp);
            
cache_get_row(he17temp), HouseInfo[he][hCarz] = floatstr(temp);
            
cache_get_row(he18temp), HouseInfo[he][hCarc] = floatstr(temp);
            
cache_get_row(he19temp), HouseInfo[he][hStyle] = strval(temp);
            
cache_get_row(he20temp), HouseInfo[he][hSafe] = strval(temp);
            
cache_get_row(he21temp), HouseInfo[he][hMoneySafe] = strval(temp);
            
cache_get_row(he22temp), HouseInfo[he][hPSafe1] = floatstr(temp);
            
cache_get_row(he23temp), HouseInfo[he][hPSafe2] = floatstr(temp);
            
cache_get_row(he24temp), HouseInfo[he][hPSafe3] = floatstr(temp);
            
cache_get_row(he25temp), HouseInfo[he][hSPass] = strval(temp);
            
cache_get_row(he26temp), HouseInfo[he][hDeagle] = strval(temp);
            
cache_get_row(he27temp), HouseInfo[he][hShotgun] = strval(temp);
            
cache_get_row(he28temp), HouseInfo[he][hM4] = strval(temp);
            
cache_get_row(he29temp), HouseInfo[he][hAK47] = strval(temp);
            
cache_get_row(he30temp), HouseInfo[he][hShkaf] = strval(temp);
            
cache_get_row(he31temp), HouseInfo[he][hSkin] = strval(temp);
            
cache_get_row(he32temp), strmid(HouseInfo[he][hOwner2], temp0strlen(temp), 255);
             
Create3DTextLabel("{FFFFFF}Войти в дом\nНажмите: {20FA0C}ALT",COLOR_YELLOW,2495.4639,-2565.7891,2501.0859+0.8,9.0,he+50,0);
            
Create3DTextLabel("{FFFFFF}Выйти из гаража\nНажмите: {20FA0C}ALT",COLOR_YELLOW,2489.1052,-2555.9993,2501.0859+0.8,9.0,he+50,0);
            
Create3DTextLabel("{FFFFFF}Тюнинг автомобиля\n{20FA0C}/htune",COLOR_YELLOW,2486.6084,-2568.6472,2500.5979+0.8,9.0,he+50,0);
            
HouseInfo[he][hPickup] = CreateDynamicSphere(HouseInfo[he][hEntrancex], HouseInfo[he][hEntrancey], HouseInfo[he][hEntrancez],0.9,0,0,-1);
            if(
HouseInfo[he][hOwned] == 0)
            {
                
HouseInfo[he][hPickup] = CreatePickup(127323HouseInfo[he][hEntrancex], HouseInfo[he][hEntrancey], HouseInfo[he][hEntrancez],-1);
                
HouseInfo[he][hMIcon] = CreateDynamicMapIcon(HouseInfo[he][hEntrancex], HouseInfo[he][hEntrancey], HouseInfo[he][hEntrancez], 31, -10, -1, -150.0);
            }
            if(
HouseInfo[he][hOwned] == 1)
            {
                
HouseInfo[he][hPickup] = CreatePickup(127223HouseInfo[he][hEntrancex], HouseInfo[he][hEntrancey], HouseInfo[he][hEntrancez],-1);
                
HouseInfo[he][hMIcon] = CreateDynamicMapIcon(HouseInfo[he][hEntrancex], HouseInfo[he][hEntrancey], HouseInfo[he][hEntrancez], 32, -10, -1, -150.0);
            }
            if(
HouseInfo[he][hSafe] == 1)
            {
                switch(
HouseInfo[he][hKlass])
                {
                case 
2SObject[he] = CreateDynamicObject(233236.115215,1342.832275,1084.2154540.000000,0.000000,-90.099990,he+50,HouseInfo[he][hInt]); //C
                
case 0SObject[he] = CreateDynamicObject(23322266.930908,-1137.543701,1051.0802000.000000,0.000000,179.199951,he+50,HouseInfo[he][hInt]);//N
                
case 4SObject[he] = CreateDynamicObject(2332490.324768,1416.366577,1084.7155760.000000,0.000000,0.000000,he+50,HouseInfo[he][hInt]); //A
                
case 1SObject[he] = CreateDynamicObject(2332225.089248,1247.752807,1082.7402340.000000,0.000000,0.000000,he+50,HouseInfo[he][hInt]);//D
                
case 3SObject[he] = CreateDynamicObject(2332, -278.448577,1455.937133,1084.8669430.000000,0.000000,90.999931,he+50,HouseInfo[he][hInt]); //B
                
case 5SObject[he] = CreateDynamicObject(23322339.744873,-1142.837158,1054.484008, -0.100000,0.000000,-179.800033,he+50,HouseInfo[he][hInt]);//V
                
}
            }
            switch(
HouseInfo[he][hKlass])
            {
            case 
0: { HouseInfo[he][hInt] = 10HouseInfo[he][hExitx] = 2261.3103HouseInfo[he][hExity]= -1136.4467HouseInfo[he][hExitz] =1050.6328; }
            case 
1: { HouseInfo[he][hInt] = 2HouseInfo[he][hExitx] = 225.9761HouseInfo[he][hExity]= 1239.9126HouseInfo[he][hExitz] =1082.1406; }
            case 
2: { HouseInfo[he][hInt] = 10HouseInfo[he][hExitx] = 23.8334HouseInfo[he][hExity]= 1340.4812HouseInfo[he][hExitz] =1084.3750; }
            case 
3: { HouseInfo[he][hInt] = 4HouseInfo[he][hExitx] = -261.9759HouseInfo[he][hExity]= 1456.8844HouseInfo[he][hExitz] = 1084.3672; }
            case 
4: { HouseInfo[he][hInt] = 2HouseInfo[he][hExitx] = 491.0190HouseInfo[he][hExity]= 1399.0691HouseInfo[he][hExitz] =1080.2578; }
            case 
5: { HouseInfo[he][hInt]=12HouseInfo[he][hExitx]=2324.5974HouseInfo[he][hExity]=-1149.5468HouseInfo[he][hExitz]=1050.7101; }
            }
            
BuyHouse(he);
        }
    }
    return 
true;

Reply
#2

Create3DTextLabel("{FFFFFF}Выйти из гаража\nНажмите: {20FA0C}ALT",COLOR_YELLOW,2489.1052,-2555.9993,2501.0859+0.8,9.0,he+50,-1);

попробуй. если нет, то переведи на динамику. мб много их слишком.
Reply
#3

Quote:
Originally Posted by Gettopro
Посмотреть сообщение
Create3DTextLabel("{FFFFFF}Выйти из гаража\nНажмите: {20FA0C}ALT",COLOR_YELLOW,2489.1052,-2555.9993,2501.0859+0.8,9.0,he+50,-1);

попробуй. если нет, то переведи на динамику. мб много их слишком.
Не помогло.
Динамика так же не помогла.
Reply
#4

Скорее всего проблема в виртуальном мире. Показывай код входа в гараж и дом.
Reply
#5

Проверь виртуальный мир на -1.
Reply
#6

Quote:
Originally Posted by ZiGGi
Посмотреть сообщение
Скорее всего проблема в виртуальном мире. Показывай код входа в гараж и дом.
PHP код:
        if(PlayerInfo[playerid][pPhousekey] != 255)
        {
            if(
SpawnChange[playerid] == 1)
            {
                
PlayerInfo[playerid][SetHPos] = PlayerInfo[playerid][pPhousekey];
                new 
house PlayerInfo[playerid][pPhousekey];
                
SetPlayerInterior(playerid,HouseInfo[house][hInt]);
                
SetPlayerPos(playeridHouseInfo[house][hExitx], HouseInfo[house][hExity],HouseInfo[house][hExitz]); // Warp the player
                
PlayerInfo[playerid][pLocal] = house;
                
PlayerInfo[playerid][pInt] = HouseInfo[house][hInt];
                
SetPlayerVirtualWorld(playeridhouse+50);
                return 
true;
            }
        } 
Reply
#7

Quote:
Originally Posted by Surprice
Посмотреть сообщение
PHP код:
        if(PlayerInfo[playerid][pPhousekey] != 255)
        {
            if(
SpawnChange[playerid] == 1)
            {
                
PlayerInfo[playerid][SetHPos] = PlayerInfo[playerid][pPhousekey];
                new 
house PlayerInfo[playerid][pPhousekey];
                
SetPlayerInterior(playerid,HouseInfo[house][hInt]);
                
SetPlayerPos(playeridHouseInfo[house][hExitx], HouseInfo[house][hExity],HouseInfo[house][hExitz]); // Warp the player
                
PlayerInfo[playerid][pLocal] = house;
                
PlayerInfo[playerid][pInt] = HouseInfo[house][hInt];
                
SetPlayerVirtualWorld(playeridhouse+50);
                return 
true;
            }
        } 
А код входа в гараж?
Reply
#8

Quote:
Originally Posted by ZiGGi
Посмотреть сообщение
А код входа в гараж?
PHP код:
                FreezePlayerForTime(playerid2000);
                new 
house PlayerInfo[playerid][pPhousekey];
                
SetPlayerInterior(playerid1);
                
SetPlayerPos(playerid2493.0576,-2566.7522,2501.0859);
                
SetVehicleVirtualWorld(GetPlayerVehicleID(playerid), house+50); 
Reply
#9

Добавь ко входу:
Код:
SetPlayerVirtualWorld(playerid, house+50);
Reply
#10

Quote:
Originally Posted by MeNaceSwagga
Посмотреть сообщение
Добавь ко входу:
Код:
SetPlayerVirtualWorld(playerid, house+50);
Пробовал - не помогло.
Reply


Forum Jump:


Users browsing this thread: