12.04.2015, 10:58
Здравствуйте. Обнаружил проблему, не подгружаются 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 код:
publics: LoadProperty()
{
static fields;
cache_get_data(TOTALHOUSE, fields);
new temp[64];
if(TOTALHOUSE)
{
for(new he = 0; he < TOTALHOUSE; he++)
{
cache_get_row(he, 0, temp), HouseInfo[he][hID] = strval(temp);
cache_get_row(he, 1, temp), HouseInfo[he][hEntrancex] = floatstr(temp);
cache_get_row(he, 2, temp), HouseInfo[he][hEntrancey] = floatstr(temp);
cache_get_row(he, 3, temp), HouseInfo[he][hEntrancez] = floatstr(temp);
cache_get_row(he, 4, temp), HouseInfo[he][hExitx] = floatstr(temp);
cache_get_row(he, 5, temp), HouseInfo[he][hExity] = floatstr(temp);
cache_get_row(he, 6, temp), HouseInfo[he][hExitz] = floatstr(temp);
cache_get_row(he, 7, temp), strmid(HouseInfo[he][hOwner], temp, 0, strlen(temp), 255);
cache_get_row(he, 8, temp), HouseInfo[he][hValue] = strval(temp);
cache_get_row(he, 9, temp), HouseInfo[he][hHel] = strval(temp);
cache_get_row(he, 10, temp), HouseInfo[he][hInt] = strval(temp);
cache_get_row(he, 11, temp), HouseInfo[he][hLock] = strval(temp);
cache_get_row(he, 12, temp), HouseInfo[he][hOwned] = strval(temp);
cache_get_row(he, 13, temp), HouseInfo[he][hTakings] = strval(temp);
cache_get_row(he, 14, temp), HouseInfo[he][hKlass] = strval(temp);
cache_get_row(he, 15, temp), HouseInfo[he][hCarx] = floatstr(temp);
cache_get_row(he, 16, temp), HouseInfo[he][hCary] = floatstr(temp);
cache_get_row(he, 17, temp), HouseInfo[he][hCarz] = floatstr(temp);
cache_get_row(he, 18, temp), HouseInfo[he][hCarc] = floatstr(temp);
cache_get_row(he, 19, temp), HouseInfo[he][hStyle] = strval(temp);
cache_get_row(he, 20, temp), HouseInfo[he][hSafe] = strval(temp);
cache_get_row(he, 21, temp), HouseInfo[he][hMoneySafe] = strval(temp);
cache_get_row(he, 22, temp), HouseInfo[he][hPSafe1] = floatstr(temp);
cache_get_row(he, 23, temp), HouseInfo[he][hPSafe2] = floatstr(temp);
cache_get_row(he, 24, temp), HouseInfo[he][hPSafe3] = floatstr(temp);
cache_get_row(he, 25, temp), HouseInfo[he][hSPass] = strval(temp);
cache_get_row(he, 26, temp), HouseInfo[he][hDeagle] = strval(temp);
cache_get_row(he, 27, temp), HouseInfo[he][hShotgun] = strval(temp);
cache_get_row(he, 28, temp), HouseInfo[he][hM4] = strval(temp);
cache_get_row(he, 29, temp), HouseInfo[he][hAK47] = strval(temp);
cache_get_row(he, 30, temp), HouseInfo[he][hShkaf] = strval(temp);
cache_get_row(he, 31, temp), HouseInfo[he][hSkin] = strval(temp);
cache_get_row(he, 32, temp), strmid(HouseInfo[he][hOwner2], temp, 0, strlen(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(1273, 23, HouseInfo[he][hEntrancex], HouseInfo[he][hEntrancey], HouseInfo[he][hEntrancez],-1);
HouseInfo[he][hMIcon] = CreateDynamicMapIcon(HouseInfo[he][hEntrancex], HouseInfo[he][hEntrancey], HouseInfo[he][hEntrancez], 31, -1, 0, -1, -1, 50.0);
}
if(HouseInfo[he][hOwned] == 1)
{
HouseInfo[he][hPickup] = CreatePickup(1272, 23, HouseInfo[he][hEntrancex], HouseInfo[he][hEntrancey], HouseInfo[he][hEntrancez],-1);
HouseInfo[he][hMIcon] = CreateDynamicMapIcon(HouseInfo[he][hEntrancex], HouseInfo[he][hEntrancey], HouseInfo[he][hEntrancez], 32, -1, 0, -1, -1, 50.0);
}
if(HouseInfo[he][hSafe] == 1)
{
switch(HouseInfo[he][hKlass])
{
case 2: SObject[he] = CreateDynamicObject(2332, 36.115215,1342.832275,1084.215454, 0.000000,0.000000,-90.099990,he+50,HouseInfo[he][hInt]); //C
case 0: SObject[he] = CreateDynamicObject(2332, 2266.930908,-1137.543701,1051.080200, 0.000000,0.000000,179.199951,he+50,HouseInfo[he][hInt]);//N
case 4: SObject[he] = CreateDynamicObject(2332, 490.324768,1416.366577,1084.715576, 0.000000,0.000000,0.000000,he+50,HouseInfo[he][hInt]); //A
case 1: SObject[he] = CreateDynamicObject(2332, 225.089248,1247.752807,1082.740234, 0.000000,0.000000,0.000000,he+50,HouseInfo[he][hInt]);//D
case 3: SObject[he] = CreateDynamicObject(2332, -278.448577,1455.937133,1084.866943, 0.000000,0.000000,90.999931,he+50,HouseInfo[he][hInt]); //B
case 5: SObject[he] = CreateDynamicObject(2332, 2339.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] = 10; HouseInfo[he][hExitx] = 2261.3103; HouseInfo[he][hExity]= -1136.4467; HouseInfo[he][hExitz] =1050.6328; }
case 1: { HouseInfo[he][hInt] = 2; HouseInfo[he][hExitx] = 225.9761; HouseInfo[he][hExity]= 1239.9126; HouseInfo[he][hExitz] =1082.1406; }
case 2: { HouseInfo[he][hInt] = 10; HouseInfo[he][hExitx] = 23.8334; HouseInfo[he][hExity]= 1340.4812; HouseInfo[he][hExitz] =1084.3750; }
case 3: { HouseInfo[he][hInt] = 4; HouseInfo[he][hExitx] = -261.9759; HouseInfo[he][hExity]= 1456.8844; HouseInfo[he][hExitz] = 1084.3672; }
case 4: { HouseInfo[he][hInt] = 2; HouseInfo[he][hExitx] = 491.0190; HouseInfo[he][hExity]= 1399.0691; HouseInfo[he][hExitz] =1080.2578; }
case 5: { HouseInfo[he][hInt]=12; HouseInfo[he][hExitx]=2324.5974; HouseInfo[he][hExity]=-1149.5468; HouseInfo[he][hExitz]=1050.7101; }
}
BuyHouse(he);
}
}
return true;
}