04/09/2024 17:30
OLÁ ESTOU COM PROBLEMA COM DIALOG VOU DEIXA CODIGO EM BAIXO .
ERRO QUE ESTA APARECENDO NA MINHA GAMEMODE
Código PHP:
case DIALOG_CONFSERVER_1:
{
if(response)
{
new id = AdminsList[playerid][listitem];
PlayerSel[playerid] = id;
new Float:nota;
new dialogss[9000], titulo[3000];
format(dialogss, sizeof(dialogss), "{4290FE}Nome: {00FF00}%s\n", AdminInfo[id][admin_nome]);
strcat(dialogss, dialogss);
format(dialogss, sizeof(dialogss), "{4290FE}Função: {00FF00}%s\n", AdminInfo[id][admin_funcao]);
strcat(dialogss, dialogss);
format(dialogss, sizeof(dialogss), "{4290FE}Admin nível: {00FF00}%s(%d)\n", AccountRank(AdminInfo[id][admin_level]), AdminInfo[id][admin_level]);
strcat(dialogss, dialogss);
format(dialogss, sizeof(dialogss), "{4290FE}Admin há: {00FF00}%s\n", Convert(gettime()-AdminInfo[id][admin_data]));
strcat(dialogss, dialogss);
format(dialogss, sizeof(dialogss), "{4290FE}Promovido por: {00FF00}%s\n", AdminInfo[id][admin_setadopor]);
strcat(dialogss, dialogss);
format(dialogss, sizeof(dialogss), "{4290FE}Tempo desde sua ultima promoção: {00FF00}%s\n\n", AdminInfo[id][admin_ultimapromo] == 0 ? ("Nunca foi promovido") : (Convert(gettime()-AdminInfo[id][admin_ultimapromo])));
strcat(dialogss, dialogss);
nota = floatmul(floatdiv(Float:AdminInfo[id][admin_notatotal], floatadd(Float:AdminInfo[id][admin_notatotal], Float:AdminInfo[id][admin_atttotal])), 10.0);
if(nota >= 7)
{
format(dialogss, sizeof(dialogss), "{4290FE}Nota total: {00FF00}%.1f\n", nota);
strcat(dialogss, dialogss);
}
else
{
format(dialogss, sizeof(dialogss), "{4290FE}Nota total: {00FF00}%.1f\n", nota);
strcat(dialogss, dialogss);
}
format(dialogss, sizeof(dialogss), "{4290FE}Atendimentos totais: {FFFF00}%d\n\n", AdminInfo[id][admin_atttotal]);
strcat(dialogss, dialogss);
nota = floatmul(floatdiv(Float:AdminInfo[id][admin_notassp], floatadd(Float:AdminInfo[id][admin_notassp], Float:AdminInfo[id][admin_attsp])), 10.0);
if(nota >= 7)
{
format(dialogss, sizeof(dialogss), "{4290FE}Nota semana passada: {00FF00}%.1f\n", nota);
strcat(dialogss, dialogss);
}
else
{
format(dialogss, sizeof(dialogss), "{4290FE}Nota semana passada: {00FF00}%.1f\n", nota);
strcat(dialogss, dialogss);
}
format(dialogss, sizeof(dialogss), "{4290FE}Atendimentos semana passada: {FFFF00}%d\n\n", AdminInfo[id][admin_attsp]);
strcat(dialogss, dialogss);
nota = floatmul(floatdiv(Float:AdminInfo[id][admin_notas], floatadd(Float:AdminInfo[id][admin_notas], Float:AdminInfo[id][admin_att])), 10.0);
if(nota >= 7)
{
format(dialogss, sizeof(dialogss), "{4290FE}Nota parcial na semana: {00FF00}%.1f\n", nota);
strcat(dialogss, dialogss);
}
else
{
format(dialogss, sizeof(dialogss), "{4290FE}Nota parcial na semana: {00FF00}%.1f\n", nota);
strcat(dialogss, dialogss);
}
format(dialogss, sizeof(dialogss), "{4290FE}Atendimentos parcial na semana: {FFFF00}%d\n\n", AdminInfo[id][admin_att]);
strcat(dialogss, dialogss);
format(dialogss, sizeof(dialogss), "{4290FE}Tempo jogando: {00FF00}%s\n", Convert(AdminInfo[id][admin_tempojogo]));
strcat(dialogss, dialogss);
format(dialogss, sizeof(dialogss), "{4290FE}Tempo ausente: {00FF00}%s\n\n", Convert(AdminInfo[id][admin_tempoafk]));
strcat(dialogss, dialogss);
if(CheckPermFull(playerid) && AdminInfo[id][admin_level] < PlayerInfo[playerid][pAdmin])
{
format(dialogss, sizeof(dialogss), "{4290FE}Senha administrativa: {00FF00}%s", Convert(AdminInfo[id][admin_tempoafk]));
strcat(dialogss, dialogss);
}
format(titulo, sizeof(titulo), "» {1E90FF}Servidor »{FFFFFF} %s", AdminInfo[id][admin_nome]);
ShowPlayerDialog(playerid, DIALOG_CONFSERVER_2, DIALOG_STYLE_MSGBOX, titulo, dialogss, "Limpar vaga", "Voltar");
}
else ReturnCommand(configserver);
}
ERRO QUE ESTA APARECENDO NA MINHA GAMEMODE
Código PHP:
[17:15:03] [debug] Run time error 3: "Stack/heap collision (insufficient stack size)"
[17:15:03] [debug] Stack pointer (STK) is 0x15FA90, heap pointer (HEA) is 0x164780
[17:15:03] [debug] AMX backtrace:
[17:15:03] [debug] #0 00000000 in public OnDialogResponse ()