Hy.
Szeretnék megkérni valakit hogy javítsa ki a zombieplague plugint, mivel error logokban ez van róla:
[AMXX] Displaying debug trace (plugin "zombie_plague.amxx")
L 06/29/2012 - 12:08:18: [AMXX] Run time error 10: native error (native "ArrayGetString")
L 06/29/2012 - 12:08:18: [AMXX]    [0] zombie_plague.sma::logevent_round_end (line 1501)
1501. sor: 
Kód:
-                 ArrayGetString(sound_win_humans, random_num(0, ArraySize(sound_win_humans) - 1), sound, charsmax(sound)) 
Ebben a függvényben dobja a hibát:
Kód:
- // Log Event Round End 
- public logevent_round_end() 
- { 
-         // Prevent this from getting called twice when restarting (bugfix) 
-         static Float:lastendtime, Float:current_time 
-         current_time = get_gametime() 
-         if (current_time - lastendtime < 0.5) return; 
-         lastendtime = current_time 
-          
-         // Temporarily save player stats? 
-         if (get_pcvar_num(cvar_statssave)) 
-         { 
-                 static id, team 
-                 for (id = 1; id <= g_maxplayers; id++) 
-                 { 
-                         // Not connected 
-                         if (!g_isconnected[id]) 
-                                 continue; 
-                          
-                         team = fm_cs_get_user_team(id) 
-                          
-                         // Not playing 
-                         if (team == FM_CS_TEAM_SPECTATOR || team == FM_CS_TEAM_UNASSIGNED) 
-                                 continue; 
-                          
-                         save_stats(id) 
-                 } 
-         } 
-          
-         // Round ended 
-         g_endround = true 
-          
-         // Stop old tasks (if any) 
-         remove_task(TASK_WELCOMEMSG) 
-         remove_task(TASK_MAKEZOMBIE) 
-          
-         // Stop ambience sounds 
-         if ((g_ambience_sounds[AMBIENCE_SOUNDS_NEMESIS] && g_nemround) || (g_ambience_sounds[AMBIENCE_SOUNDS_SURVIVOR] && g_survround) || (g_ambience_sounds[AMBIENCE_SOUNDS_SWARM] && g_swarmround) || (g_ambience_sounds[AMBIENCE_SOUNDS_PLAGUE] && g_plagueround) || (g_ambience_sounds[AMBIENCE_SOUNDS_INFECTION] && !g_nemround && !g_survround && !g_swarmround && !g_plagueround)) 
-         { 
-                 remove_task(TASK_AMBIENCESOUNDS) 
-                 ambience_sound_stop() 
-         } 
-          
-         // Show HUD notice, play win sound, update team scores... 
-         static sound[64] 
-         if (!fnGetZombies()) 
-         { 
-                 // Human team wins 
-                 set_dhudmessage(54, 54, 54, HUD_EVENT_X, HUD_EVENT_Y, 0, 0.0, 3.0, 2.0, 1.0, false) 
-                 show_dhudmessage(0, "%L", LANG_PLAYER, "WIN_HUMAN") 
-                  
-                 // Play win sound and increase score 
-                 ArrayGetString(sound_win_humans, random_num(0, ArraySize(sound_win_humans) - 1), sound, charsmax(sound)) 
-                 PlaySound(sound) 
-                 g_scorehumans++ 
-                  
-                 // Round end forward 
-                 ExecuteForward(g_fwRoundEnd, g_fwDummyResult, ZP_TEAM_HUMAN); 
-         } 
-         else if (!fnGetHumans()) 
-         { 
-                 // Zombie team wins 
-                 set_dhudmessage(238, 0, 0, HUD_EVENT_X, HUD_EVENT_Y, 0, 0.0, 3.0, 2.0, 1.0, false) 
-                 show_dhudmessage(0, "%L", LANG_PLAYER, "WIN_ZOMBIE") 
-                  
-                 // Play win sound and increase score 
-                 ArrayGetString(sound_win_zombies, random_num(0, ArraySize(sound_win_zombies) - 1), sound, charsmax(sound)) 
-                 PlaySound(sound) 
-                 g_scorezombies++ 
-                  
-                 // Round end forward 
-                 ExecuteForward(g_fwRoundEnd, g_fwDummyResult, ZP_TEAM_ZOMBIE); 
-         } 
-         else 
-         { 
-                 // No one wins 
-                 set_dhudmessage(238, 48, 167, HUD_EVENT_X, HUD_EVENT_Y, 0, 0.0, 3.0, 2.0, 1.0, false) 
-                 show_dhudmessage(0, "%L", LANG_PLAYER, "WIN_NO_ONE") 
-                  
-                 // Play win sound 
-                 ArrayGetString(sound_win_no_one, random_num(0, ArraySize(sound_win_no_one) - 1), sound, charsmax(sound)) 
-                 PlaySound(sound) 
-                  
-                 // Round end forward 
-                 ExecuteForward(g_fwRoundEnd, g_fwDummyResult, ZP_TEAM_NO_ONE); 
-         } 
-          
-         // Balance the teams 
-         balance_teams() 
- } 
Itt meg az 53. sor.
Előre is köszönöm. 
