[Ajuda] Map icons nao carregam !
#1

Por que os map icons da casa e emp , nгo carregam esta tudo certo nгo carregam olha o salvamento :

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++;
}
}
}
}
CASA :

Код:
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++;
}
}
}
}
Reply
#2

Desculpe o Double mas por favor gente me ajudem =/
Reply
#3

sу me responde uma pergunta, qual era seu nick no BRV ?

PHP код:
    for(new 0MAX_PROPSp++)
    {
        new 
string1 [255];
        
format(stringsizeof(string), "/Props/prop%d.ini"p);
        if(
dini_Exists(string))
        {
            new 
pickupid;
            new 
iconempresa;
            if(
dini_Int(string"TDono") == 0)
            {
                
pickupid CreatePickup(15781dini_Float(string"PosX"), dini_Float(string"PosY"), dini_Float(string"PosZ"), -1);
                
dini_IntSet(string"Id"pickupid);
                
iconempresa CreateDynamicMapIcon(dini_Float(string"PosX"), dini_Float(string"PosY"), dini_Float(string"PosZ"), 440, -1, -1, -1100.0);
                
dini_IntSet(string"iconempresa"iconempresa);
                new 
string2[222];
                
format(string2sizeof(string2),"{E6E8FA}Empresa ID %d\n/infoEmpresa"proximaprop);
                
Create3DTextLabel(string2,0x006400FFdini_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(15801dini_Float(string"PosX"), dini_Float(string"PosY"), dini_Float(string"PosZ"), -1);
                    
dini_IntSet(string"Id"pickupid);
                    
iconempresa CreateDynamicMapIcon(dini_Float(string"PosX"), dini_Float(string"PosY"), dini_Float(string"PosZ"), 430, -1, -1, -1100.0);
                      
dini_IntSet(string"iconempresa"iconempresa);
                    new 
string2[222];
                    
format(string2sizeof(string2),"{E6E8FA}Empresa ID %d\n/infoEmpresa"proximaprop);
                    
Create3DTextLabel(string2,0x006400FFdini_Float(string,"PosX"), dini_Float(string,"PosY"), dini_Float(string,"PosZ")+0.75,20.0,0,1);
                    
proximaprop++;
                }
                else
                {
                    
proximaprop++;
                }
            }
        }
    } 
sу arrumar o da casa agora
Reply
#4

Nunca joguei no BRV ¬¬ , Vlw por me ajudar
Reply
#5

obrigado por fazer essa pergunta tava com o mesmo problema
Reply
#6

Eu tava com esse problema fas tempo , vlw yNexus
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)