04.03.2014, 22:42
Por que os map icons da casa e emp , nгo carregam esta tudo certo nгo carregam olha o salvamento :
EMPRESA :
CASA :
EMPRESA :
Код:
for(new p = 0; p < MAX_PROPS; p++) { new string1 [255]; format(string, sizeof(string), "/Props/prop%d.ini", p); if(dini_Exists(string)) { new pickupid; if(dini_Int(string, "TDono") == 0) { pickupid = CreatePickup(1578, 1, dini_Float(string, "PosX"), dini_Float(string, "PosY"), dini_Float(string, "PosZ"), -1); dini_IntSet(string, "Id", pickupid); mapiconpropid [ p ] = CreateDynamicMapIcon(dini_Float( string1, "PosX" ) , dini_Float( string1, "PosY" ) , dini_Float( string1, "PosZ" ), 44, -1, -1, -1, -1, 90.0); new string2[222]; format(string2, sizeof(string2),"{E6E8FA}Empresa ID %d\n/infoEmpresa", proximaprop); Create3DTextLabel(string2,0x006400FF, dini_Float(string,"PosX"), dini_Float(string,"PosY"), dini_Float(string,"PosZ")+0.75,20.0,0,1); proximaprop++; } else { if(dini_Int(string, "TDono") == 1) { pickupid = CreatePickup(1580, 1, dini_Float(string, "PosX"), dini_Float(string, "PosY"), dini_Float(string, "PosZ"), -1); dini_IntSet(string, "Id", pickupid); mapiconpropid [ p ] = CreateDynamicMapIcon(dini_Float( string1, "PosX" ) , dini_Float( string1, "PosY" ) , dini_Float( string1, "PosZ" ), 43, -1, -1, -1, -1, 90.0); new string2[222]; format(string2, sizeof(string2),"{E6E8FA}Empresa ID %d\n/infoEmpresa", proximaprop); Create3DTextLabel(string2,0x006400FF, dini_Float(string,"PosX"), dini_Float(string,"PosY"), dini_Float(string,"PosZ")+0.75,20.0,0,1); proximaprop++; } else { proximaprop++; } } } }
Код:
for(new c = 0; c < MAX_CASAS; c++) { new string1 [255]; format(string, sizeof(string), "/Casas/casa%d.ini", c); if(dini_Exists(string)) { new pickupid; if(dini_Int(string, "TDono") == 0) { pickupid = CreatePickup(1273, 1, dini_Float(string, "PosX"), dini_Float(string, "PosY"), dini_Float(string, "PosZ"), -1); dini_IntSet(string, "Id", pickupid); mapiconcasaid [ c ] = CreateDynamicMapIcon(dini_Float( string1, "PosX" ) , dini_Float( string1, "PosY" ) , dini_Float( string1, "PosZ" ), 31, -1, -1, -1, -1, 90.0); new string2[222]; format(string2, sizeof(string2),"{E6E8FA}Casa %d\n/infoCasa", proximacasa); Create3DTextLabel(string2,0x006400FF, dini_Float(string,"PosX"), dini_Float(string,"PosY"), dini_Float(string,"PosZ")+0.75,20.0,0,1); proximacasa++; } else { if(dini_Int(string, "TDono") == 1) { pickupid = CreatePickup(1272, 1, dini_Float(string, "PosX"), dini_Float(string, "PosY"), dini_Float(string, "PosZ"), -1); dini_IntSet(string, "Id", pickupid); mapiconcasaid [ c ] = CreateDynamicMapIcon(dini_Float( string1, "PosX" ) , dini_Float( string1, "PosY" ) , dini_Float( string1, "PosZ" ), 32, -1, -1, -1, -1, 90.0); new string2[222]; format(string2, sizeof(string2),"{E6E8FA}Casa %d\n/infoCasa", proximacasa); Create3DTextLabel(string2,0x006400FF, dini_Float(string,"PosX"), dini_Float(string,"PosY"), dini_Float(string,"PosZ")+0.75,20.0,0,1); proximacasa++; } else { proximacasa++; } } } }