11/03/2021 21:31
Olá, adicionei um sistema no meu servidor, e está dando problemas.
O sistema que add:
Código PHP:
[Pawn.CMD] HandleCommand: Call: amx_Exec(struct tagAMX *:027A7630, int *:0019F7C0, int:366): Stack/heap collision (insufficient stack size) (3)
O sistema que add:
Código PHP:
new playerScores[MAX_PLAYERS][pInfo],index;
for(new i; i != MAX_PLAYERS; ++i)
{
if(IsPlayerConnected(i) && !IsPlayerNPC(i))
{
playerScores[index][pLevel] = GetPlayerScore(i);
playerScores[index++][player_ID] = i;
}
}
GetPlayerHighestScores(playerScores, 0, index);
new Testes[1500],score_Text[1500];
strcat(Testes, "{FFFFFF}TOP\t{FFFFFF}Jogador(a)\t{FFFFFF}Level\n");
for(new i = 0; i < 10; ++i)
{
if(i < index)
{
GetPlayerName(playerScores[i][player_ID], Name, sizeof(Name));
format(score_Text, sizeof(score_Text), "{00A600}%dº{FFFFFF}\t%s\t{00A600}%d\n", i + 1, Name, playerScores[i][pLevel]);
}
else
format(score_Text, sizeof(score_Text), "{00A600}%dº{FFFFFF}\t{0CC6F5}Ninguém\n", i + 1);
strcat(Testes,score_Text);
}
ShowPlayerDialog(playerid, 2742, DIALOG_STYLE_TABLIST_HEADERS, "TOP {00A600}Level",Testes, "Fechar", "");
Discord:https://discord.gg/Vg5HMqgdP9