Servidor não carrega - Apelaum - 08/07/2021
Olá estou fazendo um servidor rpg tudo está indo de boa mas quando eu relogo no servidor o mesmo não carrega
e não é plugins somente não carrega e nem aparece que o player connectou no servidor podem me ajudar?
RE: Servidor não carrega - xbruno1000x - 08/07/2021
Essas informações não são suficientes para ajudá-lo. Pode ser um milhão de coisas, você pode não estar zerando alguma variável na OnPlayerDisconnect, algum problema na OnPlayerConnect... Use o plugin crashdetect para ver o que aponta.
RE: Servidor não carrega - Apelaum - 08/07/2021
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;
}
RE: Servidor não carrega - k2bi_YT - 08/07/2021
(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
RE: Servidor não carrega - xbruno1000x - 08/07/2021
(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;
}
Confira se a pasta existe e os arquivos estão lá. Talvez o looping é que esteja sendo apontado no crashdetect.
|