28/12/2022 22:59 
	
	
	Código PHP:
D:\Vera Cruz RP\gamemodes\VCRP.pwn(1597) : error 047: array sizes do not match, or destination array is too small
D:\Vera Cruz RP\gamemodes\VCRP.pwn(1621) : error 006: must be assigned to an array
D:\Vera Cruz RP\gamemodes\VCRP.pwn(1622) : error 047: array sizes do not match, or destination array is too small
Pawn compiler 3.2.3664              Copyright (c) 1997-2016, ITB CompuPhase 
Funções (linha do erro):
Código PHP:
CarregarFazendas()
{
    for(new i; i < sizeof(LocFazendas); i++)
    {
        Fazenda[i][fCofre] = DOF2_GetInt(Arquivofaz(i), "fCofre");
        Fazenda[i][fValor] = DOF2_GetInt(Arquivofaz(i), "fValor");
        // linha do erro abaixo
        Fazenda[i][fDono] = DOF2_GetString(Arquivofaz(i), "fDono");
        Fazenda[i][fTemDono] = DOF2_GetInt(Arquivofaz(i), "fTemDono");
    }
    return 1;
}
CarregarEmpresas()
{
    for(new i; i < sizeof(LocEmpresas); i++)
    {
        Empresa[i][eCofre] = DOF2_GetInt(Arquivoemp(i), "eCofre");
        Empresa[i][eValor] = DOF2_GetInt(Arquivoemp(i), "eValor");
        //linhaS doS erroS abaixo
        Empresa[i][eNome] = DOF2_GetString(Arquivoemp(i), "eNome");
        Empresa[i][eDono] = DOF2_GetString(Arquivoemp(i), "eDono");
        //acima
        Empresa[i][eTemDono] = DOF2_GetInt(Arquivoemp(i), "eTemDono");
    }
    return 1;
} 
Enums:
Código PHP:
enum empinfo
{
    eValor,
    eDono[25],
    eCofre,
    eNome,
    eTemDono
};
new Empresa[MAX_EMPRESAS][empinfo];
enum fazinfo
{
    fValor = 100000,
    fDono[25],
    fCofre,
    fTemDono
};
new Fazenda[MAX_FAZENDAS][fazinfo]; 
Quem puder me ajudar, obrigado
