[16:47:16] [debug] Run time error 3: "Stack/heap collision (insufficient stack size)"
[16:47:16] [debug] Stack pointer (STK) is 0x3E79D80, heap pointer (HEA) is 0x3E7A700
[16:47:16] [debug] AMX backtrace:
[16:47:16] [debug] #0 00024554 in public OnDialogResponse (playerid=0, dialogid=0, response=1, listitem=0, inputtext[]=@03e7a6e4 "Admins") at D:\Gamemode\pawno\include\YSI\y_hooks/impl.inc:2273
[16:47:17] [debug] Run time error 3: "Stack/heap collision (insufficient stack size)"
[16:47:17] [debug] Stack pointer (STK) is 0x3E79D80, heap pointer (HEA) is 0x3E7A704
[16:47:17] [debug] AMX backtrace:
[16:47:17] [debug] #0 00024554 in public OnDialogResponse (playerid=0, dialogid=0, response=1, listitem=1, inputtext[]=@03e7a6e4 "Helpers") at D:\Gamemode\pawno\include\YSI\y_hooks/impl.inc:2273
Tot imi apare asta, daca bag 1024, am copiat si dialog-ul si tot nu imi merge
case DIALOG_STAFF1: {
if(!response) return ShowPlayerDialog(playerid, DIALOG_STAFF, DIALOG_STYLE_LIST, "Staff", "Admins\nHelpers", "Ok", "Close");
}
case DIALOG_STAFF:
{
if(!response) return 1;
new szQuery[1024], szResult[1024], szDialog[1024], szDialog2[1024], Cache: result;
new szPlayers, szPlayersT;
new szName[180], szAdmin, szLastOn[180], x2, y, szTitle[180], warns, userID;
switch(listitem)
{
case 0:
{
format(szQuery, sizeof(szQuery), "SELECT * FROM `users` WHERE `Admin`>'0' ORDER BY `users`.`Admin` ASC LIMIT 50");
result = mysql_query(SQL, szQuery);
strcat(szDialog2, "Name\tStatus\tRaport\tWarns\n");
for(new i, j = cache_get_row_count (); i < j; i++)
{
cache_get_field_content(i, "name", szResult); format(szName, 21, szResult);
cache_get_field_content(i, "Admin", szResult); szAdmin = strval(szResult);
cache_get_field_content(i, "lastOn", szResult); format(szLastOn, 25, "Offline (%s)", szResult);
cache_get_field_content(i, "HelpedPlayers", szResult); szPlayers = strval(szResult);
cache_get_field_content(i, "HelpedPlayersToday", szResult); szPlayersT = strval(szResult);
cache_get_field_content(i, "AW", szResult); warns = strval(szResult);
userID = GetPlayerID( szName );
if(userID != INVALID_PLAYER_ID) format(szLastOn, 25, "Online (%d)", userID);
x2++;
format(szDialog, sizeof(szDialog), "(%d) %s\t%s\t%d on this week / %d total\t%d/3\n", szAdmin, szName, szLastOn,
szPlayersT, szPlayers, warns);
strcat(szDialog2, szDialog);
}
cache_delete(result);
format(szTitle, sizeof(szTitle), "{FFEE00}Admins (%d/%d)", GetStaffOnline(0), x2);
}
case 1:
{
format(szQuery, sizeof(szQuery), "SELECT * FROM `users` WHERE `Helper`>'0' ORDER BY `users`.`Helper` ASC LIMIT 50");
result = mysql_query(SQL, szQuery);
strcat(szDialog2, "Name\tStatus\tRaport\tWarns\n");
for(new i, j = cache_get_row_count (); i < j; i++)
{
cache_get_field_content(i, "name", szResult); format(szName, 21, szResult);
cache_get_field_content(i, "Helper", szResult); szAdmin = strval(szResult);
cache_get_field_content(i, "lastOn", szResult); format(szLastOn, 25, "Offline (%s)", szResult);
cache_get_field_content(i, "HelpedPlayers", szResult); szPlayers = strval(szResult);
cache_get_field_content(i, "HelpedPlayersToday", szResult); szPlayersT = strval(szResult);
cache_get_field_content(i, "HW", szResult); warns = strval(szResult);
userID = GetPlayerID( szName );
if(userID != INVALID_PLAYER_ID) format(szLastOn, 25, "Online (%d)", userID);
y++;
format(szDialog, sizeof(szDialog), "(%d) %s\t%s\t%d today / %d total\t%d/3\n", szAdmin, szName, szLastOn, szPlayersT, szPlayers, warns);
strcat(szDialog2, szDialog);
}
cache_delete(result);
format(szTitle, sizeof(szTitle), "{FFEE00}Helpers (%d/%d)", GetStaffOnline(1), y);
}
} ShowPlayerDialog(playerid, DIALOG_STAFF1, DIALOG_STYLE_TABLIST_HEADERS, szTitle, szDialog2, "Ok", "Back");
}
case DIALOG_STAFF:
{
if(!response) return 1;
new szQuery[1024], szResult[1024], szDialog[1024], szDialog2[1024], Cache: result;
new szPlayers, szPlayersT;
new szName[180], szAdmin, szLastOn[180], x2, y, szTitle[180], warns, userID;
switch(listitem)
{
case 0:
{
format(szQuery, sizeof(szQuery), "SELECT * FROM `users` WHERE `Admin`>'0' ORDER BY `users`.`Admin` ASC LIMIT 50");
result = mysql_query(SQL, szQuery);
strcat(szDialog2, "Name\tStatus\tRaport\tWarns\n");
for(new i, j = cache_get_row_count (); i < j; i++)
{
cache_get_field_content(i, "name", szResult); format(szName, 21, szResult);
cache_get_field_content(i, "Admin", szResult); szAdmin = strval(szResult);
cache_get_field_content(i, "lastOn", szResult); format(szLastOn, 25, "Offline (%s)", szResult);
cache_get_field_content(i, "HelpedPlayers", szResult); szPlayers = strval(szResult);
cache_get_field_content(i, "HelpedPlayersToday", szResult); szPlayersT = strval(szResult);
cache_get_field_content(i, "AW", szResult); warns = strval(szResult);
userID = GetPlayerID( szName );
if(userID != INVALID_PLAYER_ID) format(szLastOn, 25, "Online (%d)", userID);
x2++;
format(szDialog, sizeof(szDialog), "(%d) %s\t%s\t%d on this week / %d total\t%d/3\n", szAdmin, szName, szLastOn,
szPlayersT, szPlayers, warns);
strcat(szDialog2, szDialog);
}
cache_delete(result);
format(szTitle, sizeof(szTitle), "{FFEE00}Admins (%d/%d)", GetStaffOnline(0), x2);
}
case 1:
{
format(szQuery, sizeof(szQuery), "SELECT * FROM `users` WHERE `Helper`>'0' ORDER BY `users`.`Helper` ASC LIMIT 50");
result = mysql_query(SQL, szQuery);
strcat(szDialog2, "Name\tStatus\tRaport\tWarns\n");
for(new i, j = cache_get_row_count (); i < j; i++)
{
cache_get_field_content(i, "name", szResult); format(szName, 21, szResult);
cache_get_field_content(i, "Helper", szResult); szAdmin = strval(szResult);
cache_get_field_content(i, "lastOn", szResult); format(szLastOn, 25, "Offline (%s)", szResult);
cache_get_field_content(i, "HelpedPlayers", szResult); szPlayers = strval(szResult);
cache_get_field_content(i, "HelpedPlayersToday", szResult); szPlayersT = strval(szResult);
cache_get_field_content(i, "HW", szResult); warns = strval(szResult);
userID = GetPlayerID( szName );
if(userID != INVALID_PLAYER_ID) format(szLastOn, 25, "Online (%d)", userID);
y++;
format(szDialog, sizeof(szDialog), "(%d) %s\t%s\t%d today / %d total\t%d/3\n", szAdmin, szName, szLastOn, szPlayersT, szPlayers, warns);
strcat(szDialog2, szDialog);
}
cache_delete(result);
format(szTitle, sizeof(szTitle), "{FFEE00}Helpers (%d/%d)", GetStaffOnline(1), y);
}
} ShowPlayerDialog(playerid, DIALOG_STAFF1, DIALOG_STYLE_TABLIST_HEADERS, szTitle, szDialog2, "Ok", "Back");
}
case DIALOG_STAFF1: {
if(!response) return ShowPlayerDialog(playerid, DIALOG_STAFF, DIALOG_STYLE_LIST, "Staff", "Admins\nHelpers", "Ok", "Close");
}