08/07/2021 18:15
(08/07/2021 15:43)Apelaum Escreveu: O Crashdetect fala que o erro está aqui
Código:forward LoadingHouse();
public LoadingHouse()
{
new Houssvll[228],TxtEmp[256];
for(new e = 0; e <= MAX_HOUSE; ++e)
{
//print(" Casas Carregadas");
format(Houssvll,sizeof(Houssvll),"Salvamentos/Casas/%d.ini",e);
if(DOF2_FileExists(Houssvll))
{
if(!strcmp(DOF2_GetString(Houssvll,"DONO"),"Nenhum",false))
{
if(!strcmp(DOF2_GetString(Houssvll,"Morador"),"Nenhum",false))
{
format(TxtEmp,sizeof(TxtEmp),"\n{FF0000}São Paulo Nova Fase {F8E0F7}\n{26C2FF}Casa\n{FADD00}ID: {FFFFFF}%d\n{FADD00}DONO: {FFFFFF}%s\n{FADD00}Morador: {FFFFFF}%s\n{FADD00}Valor: {FFFFFF}%d\n{FADD00}Upgrade: {FFFFFF}%d/15\n{00ED04}VENDE-SE! Use: {FFFFFF}/comprar",DOF2_GetInt(Houssvll,"ID"),DOF2_GetString(Houssvll,"DONO"), DOF2_GetString(Houssvll,"Morador"), DOF2_GetString(Houssvll,"Valor"), DOF2_GetString(Houssvll,"Upgrade"));
IDTextCasa[e] = CreateDynamic3DTextLabel(TxtEmp, -1, DOF2_GetFloat(Houssvll,"X"),DOF2_GetFloat(Houssvll,"Y"),DOF2_GetFloat(Houssvll,"Z"), 20.0);
CasaPickup[e] = CreateDynamicPickup(1273, 23, DOF2_GetFloat(Houssvll,"X"),DOF2_GetFloat(Houssvll,"Y"),DOF2_GetFloat(Houssvll,"Z"));
}
else
{
format(TxtEmp,sizeof(TxtEmp),"\n{FF0000}São Paulo Nova Fase {F8E0F7}\n{26C2FF}Casa\n{FADD00}ID: {FFFFFF}%d\n{FADD00}DONO: {FFFFFF}%s\n{FADD00}Morador: {FFFFFF}%s\n{FADD00}Valor: {FFFFFF}%d\n{FADD00}Upgrade: {FFFFFF}%d/15\n{00ED04}VENDE-SE! Use: {FFFFFF}/comprar",DOF2_GetInt(Houssvll,"ID"),DOF2_GetString(Houssvll,"DONO"), DOF2_GetString(Houssvll,"Morador"), DOF2_GetString(Houssvll,"Valor"), DOF2_GetString(Houssvll,"Upgrade"));
IDTextCasa[e] = CreateDynamic3DTextLabel(TxtEmp, -1, DOF2_GetFloat(Houssvll,"X"),DOF2_GetFloat(Houssvll,"Y"),DOF2_GetFloat(Houssvll,"Z"), 20.0);
CasaPickup[e] = CreateDynamicPickup(1273, 23, DOF2_GetFloat(Houssvll,"X"),DOF2_GetFloat(Houssvll,"Y"),DOF2_GetFloat(Houssvll,"Z"));
}
}
else
{
if(!strcmp(DOF2_GetString(Houssvll,"Morador"),"Nenhum",false))
{
format(TxtEmp,sizeof(TxtEmp),"\n{FF0000}São Paulo Nova Fase {F8E0F7}\n{26C2FF}Casa\n{FADD00}ID: {FFFFFF}%d\n{FADD00}DONO: {FFFFFF}%s\n{FADD00}Morador: {FFFFFF}%s\n{FADD00}Upgrade: {FFFFFF}%d/15",DOF2_GetInt(Houssvll,"ID"),DOF2_GetString(Houssvll,"DONO"),DOF2_GetString(Houssvll,"Morador"), DOF2_GetString(Houssvll,"Upgrade"));
IDTextCasa[e] = CreateDynamic3DTextLabel(TxtEmp, -1, DOF2_GetFloat(Houssvll,"X"),DOF2_GetFloat(Houssvll,"Y"),DOF2_GetFloat(Houssvll,"Z"), 20.0);
CasaPickup[e] = CreateDynamicPickup(1272, 23, DOF2_GetFloat(Houssvll,"X"),DOF2_GetFloat(Houssvll,"Y"),DOF2_GetFloat(Houssvll,"Z"));
}
else
{
format(TxtEmp,sizeof(TxtEmp),"\n{FF0000}São Paulo Nova Fase {F8E0F7}\n{26C2FF}Casa\n{FADD00}ID: {FFFFFF}%d\n{FADD00}DONO: {FFFFFF}%s\n{FADD00}Morador: {FFFFFF}%s\n{FADD00}Upgrade: {FFFFFF}%d/15",DOF2_GetInt(Houssvll,"ID"),DOF2_GetString(Houssvll,"DONO"),DOF2_GetString(Houssvll,"Morador"), DOF2_GetString(Houssvll,"Upgrade"));
IDTextCasa[e] = CreateDynamic3DTextLabel(TxtEmp, -1, DOF2_GetFloat(Houssvll,"X"),DOF2_GetFloat(Houssvll,"Y"),DOF2_GetFloat(Houssvll,"Z"), 20.0);
CasaPickup[e] = CreateDynamicPickup(1272, 23, DOF2_GetFloat(Houssvll,"X"),DOF2_GetFloat(Houssvll,"Y"),DOF2_GetFloat(Houssvll,"Z"));
}
}
}
}
return 1;
}
Se o erro está ai, só ver função por função e arrumar amigo. Crio que seu intuito é não querer que ele te entregue de bandeja
k2bi#9906
[C.E.O]Brasil Play Socity
[C.E.O]Brasil Play Socity