Nikonor
Новичок
Скажите, почему вот это не загружается:
А это загружается:
PHP:
publics:load_sklads()
{
new f,d;
cache_get_data(f,d);
if(!f) return print("[Загрузка]: Sklads - не загружено!");
new time = GetTickCount();
sShahta_1 = cache_get_field_content_int(0, "sShahta_1", connects);
printf("[Загрузка]: Склады успешно загружены за %d ms", GetTickCount()-time);
//3д тексты
static const fmt_str[] = "{ffffff}Руды на складе: {118ED7}%d килограмм";
new str[sizeof(fmt_str)+(-2+11)];
format(str,sizeof(str),fmt_str,sShahta_1);
sSha_1 = CreateDynamic3DTextLabel(str,0xC2A2DAFF,593.8043,868.1593,-43.4624,20.0,0,1);
return 1;
}
PHP:
publics:load_instrument()
{
new f,d;
cache_get_data(f,d);
if(!f) return print("[Загрузка]: Instrument - не загружено!");
new time = GetTickCount();
TransportCompany_FareTaxi = cache_get_field_content_int(0, "taxi_cash", connects);
House_Fare_Class[0] = cache_get_field_content_int(0, "house0", connects);
House_Fare_Class[1] = cache_get_field_content_int(0, "house1", connects);
House_Fare_Class[2] = cache_get_field_content_int(0, "house2", connects);
House_Fare_Class[3] = cache_get_field_content_int(0, "house3", connects);
House_Fare_Class[4] = cache_get_field_content_int(0, "house4", connects);
House_Fare_Class[5] = cache_get_field_content_int(0, "house5", connects);
Business_Nalog = cache_get_field_content_int(0, "business_nalog", connects);
zpShahter_1 = cache_get_field_content_int(0, "zpShahter_1", connects);
priceRudaInShahta_1 = cache_get_field_content_int(0, "priceRudaInShahta_1", connects);
Gos_Nalog[0] = cache_get_field_content_int(0, "gos_nalog", connects);
Gos_Nalog[1] = cache_get_field_content_int(0, "gos_kazna", connects);
if(Gos_Nalog[1] > 800000000 || Gos_Nalog[1] < 0) Gos_Nalog[1] = ((Gos_Nalog[1] > 800000000) ? (800000000) : (0)), SaveInstrument();
Gos_Nalog[2] = cache_get_field_content_int(0, "gos_credit", connects);
printf("[Загрузка]: Экономика успешно загружена %d ms", GetTickCount()-time);
UpdateText(2); UpdateText(3);
return true;
}
