IonutB
-
Posts
10 -
Joined
-
Last visited
Content Type
Profiles
Forums
News
Documentation
Posts posted by IonutB
-
-
-
19 minutes ago, RoberTo said:
IonutB bai frate, nu are cum sa te ajute nimeni ! Si de ce ... ? Pentru ca tu in primu rand folosesti un script ce MySQL corect ? Stii ce este ala MySQL ? Nu isi bate nimeni capul cu tine cu eroarea aceasta pentru ca nu ai indeajuns nivelul de asi bate capul cu tine.
Da, stiu sa folosesc un un script Mysql, da, stiu ce e ala mysql.
-
Ma poti ajuta? plz
-
[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"); }
-
Multumesc!
-
-
-
YCMD:staff(playerid, params[], help) { if(PlayerInfo[playerid][pAdmin] < 1) return va_SendClientMessage(playerid, COLOR_WHITE, AdminOnly); ShowPlayerDialog(playerid, DIALOG_STAFF, DIALOG_STYLE_LIST, "Staff", "Admins\nHelpers", "Ok", "Close"); return 1; }
case DIALOG_STAFF: { if(!response) return 1; new szQuery[1024], szResult[1024], szDialog[1024], szDialog2[4000], 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, 256, szResult); cache_get_field_content(i, "Admin", szResult); szAdmin = strval(szResult); cache_get_field_content(i, "lastOn", szResult); format(szLastOn, 256, "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 ); userID = GetPlayerID( szName ); if(userID != INVALID_PLAYER_ID) format(szLastOn, 256, "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, 256, szResult); cache_get_field_content(i, "Helper", szResult); szAdmin = strval(szResult); cache_get_field_content(i, "lastOn", szResult); format(szLastOn, 256, "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, 256, "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"); }
Nu imi merge comanda /staff, nu stiu ce are cand ii dau pe helpers, admins nu merge
[01:52:53] [debug] Run time error 3: "Stack/heap collision (insufficient stack size)" [01:52:53] [debug] Stack pointer (STK) is 0x3E76F00, heap pointer (HEA) is 0x3E7A700 [01:52:53] [debug] AMX backtrace: [01:52:53] [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 [01:52:54] [debug] Run time error 3: "Stack/heap collision (insufficient stack size)" [01:52:54] [debug] Stack pointer (STK) is 0x3E76F00, heap pointer (HEA) is 0x3E7A704 [01:52:54] [debug] AMX backtrace: [01:52:54] [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 [01:52:58] [debug] Run time error 3: "Stack/heap collision (insufficient stack size)" [01:52:58] [debug] Stack pointer (STK) is 0x3E796E8, heap pointer (HEA) is 0x3E7A708 [01:52:58] [debug] AMX backtrace:
-
YCMD:clans(playerid, params[], help) { new szDialog[1024], szDialog2[4048], x; strcat(szDialog2, "#. Clan\tOwner\tMembers/Slots\tZones\n"); for(new h = 0; h < MAX_CLANS; h++) { if(strlen(ClanInfo[h][clName]) > 0) { x++; format(szDialog, sizeof(szDialog), "%d. %s - %s{FFFFFF}\t%s\t%d/%d\t%d\n", x, ClanInfo[h][clName], ClanInfo[h][clTag], ClanInfo[h][clOwner], GetCMembers(h), ClanInfo[h][clSlots], GetClanTurfs(h)); strcat(szDialog2, szDialog); } } ShowPlayerDialog(playerid, DIALOG_NONE, DIALOG_STYLE_TABLIST_HEADERS, "Clans:", szDialog2, "Select", "Cancel"); return 1; }
Nu imi merge, comanda nu-s ce are
[01:54:23] [debug] Run time error 3: "Stack/heap collision (insufficient stack size)" [01:54:23] [debug] Stack pointer (STK) is 0x3E796E8, heap pointer (HEA) is 0x3E7A708 [01:54:23] [debug] AMX backtrace: [01:54:23] [debug] #0 0015e02c in public @yC_clans (... <4 arguments>) at D:\Gamemode\gamemodes\GM.pwn:11686 [01:54:23] [debug] #1 native CallRemoteFunction () from samp03svr [01:54:23] [debug] #2 0015e02c in public OnPlayerCommandText (playerid=0, cmdtext[]=@03e7a700 "", ... <2 arguments>) at D:\Gamemode\gamemodes\GM.pwn:11686
Deschide!
in Discuţii scripting
Posted · Edited by IonutB
Vreau un public sau un stock prin care cand dau ban pe panel-ul celor de la wcode #9, sa primeasca ban, mute,kick, uninvite, etc. va rog frumi!