Gość Opublikowano Październik 4, 2018 o 13:07 Udostępnij Opublikowano Październik 4, 2018 o 13:07 Potrzebuje jeszcze raz pomocy przy tym samym pluginie lecz tym razem z innym błędem Linijka która powoduje błąd Cytat Format(sBuffer,sizeof(sBuffer),"#%d - %s - %s - [%d]\n",i+at,name, g_sRanksNames[SQL_FetchInt(hndl,78)],SQL_FetchInt(hndl,4)); Cytat public void SQL_TopRankCallback(Handle owner, Handle hndl, const char[] error, any Datapack){ if(hndl == INVALID_HANDLE) { LogError("[RankMe] Query Fail: %s", error); PrintToServer(error); return; } ResetPack(Datapack); int i; int client = ReadPackCell(Datapack); if(client == 0 || !IsClientInGame(client)) return; int at = ReadPackCell(Datapack); CloseHandle(Datapack); if(!SQL_HasResultSet(hndl) || SQL_GetRowCount(hndl) ==0){ ShowTopRank(client,g_TotalPlayers-9); return; } char name[256]; char temp[500]; Menu menu = CreateMenuEx(GetMenuStyleHandle(MenuStyle_Radio),MenuHandler_Rank); Format(temp,sizeof(temp)," %T\n","Showing",client,at+1,at+10,g_TotalPlayers); SetMenuTitle(menu,"[#TOP] Nick - Ranga - Punkty"); char sBuffer[200]; while(SQL_HasResultSet(hndl) && SQL_FetchRow(hndl)) { i++; SQL_FetchString(hndl,2,name,sizeof(name)); Format(sBuffer,sizeof(sBuffer),"#%d - %s - %s - [%d]\n",i+at,name, g_sRanksNames[SQL_FetchInt(hndl,78)],SQL_FetchInt(hndl,4)); if(strlen(temp)+strlen(sBuffer) < MAX_LENGTH_MENU){ Format(temp,sizeof(temp),"%s%s",temp,sBuffer); sBuffer="\0"; } } Format(temp,sizeof(temp),"%s\n ",temp); AddMenuItem(menu,temp,temp); IntToString(at+i,temp,sizeof(temp)); char temp1[20]; Format(temp1,sizeof(temp1),"%T","Next",client); if(i>9) AddMenuItem(menu,temp,temp1); IntToString(at-i,temp,sizeof(temp)); Format(temp1,sizeof(temp1),"%T","Back",client); if(at+i-1 >9) AddMenuItem(menu,temp,temp1); DisplayMenuAtItem(menu,client,at,MENU_TIME_FOREVER); } public int MenuHandler_Rank(Menu menu, MenuAction action, int param1, int param2){ if (action == MenuAction_Select) { char temp[250]; menu.GetItem(param2, temp, sizeof(temp)); if(StringToInt(temp) >= 0){ ShowTopRank(param1,StringToInt(temp)+1); } else { ShowTopRank(param1,0); } } if (action == MenuAction_End) { delete menu; } } Cytat L 10/04/2018 - 14:50:34: SourceMod error session started L 10/04/2018 - 14:50:34: Info (map "de_mirage") (file "errors_20181004.log") L 10/04/2018 - 14:50:34: [SM] Exception reported: Array index out-of-bounds (index 112, limit 19) L 10/04/2018 - 14:50:34: [SM] Blaming: kento_rankme.smx L 10/04/2018 - 14:50:34: [SM] Call stack trace: L 10/04/2018 - 14:50:34: [SM] [1] Line 1172, E:\Download\firefox\scripting\scripting\include\kento_rankme/cmds.inc::SQL_TopScoreCallback L 10/04/2018 - 14:50:40: [SM] Exception reported: Array index out-of-bounds (index 1265, limit 19) L 10/04/2018 - 14:50:40: [SM] Blaming: kento_rankme.smx L 10/04/2018 - 14:50:40: [SM] Call stack trace: L 10/04/2018 - 14:50:40: [SM] [1] Line 1059, E:\Download\firefox\scripting\scripting\include\kento_rankme/cmds.inc::SQL_TopRankCallback L 10/04/2018 - 14:53:02: Error log file session closed. L 10/04/2018 - 14:53:12: SourceMod error session started Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
owner_2019 Opublikowano Listopad 23, 2019 o 09:44 Udostępnij Opublikowano Listopad 23, 2019 o 09:44 Zaloguj się lub zarejestruj aby zobaczyć zawartość. Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
Rekomendowane odpowiedzi