public radar_scan() { new zombie_count = 0; new zombie_list[32]; new ZombieCoords[3]; new id, i; for (new id=1; id<=g_maxplayers; id++) { if (is_user_alive(id)) { zombie_count++; zombie_list[zombie_count]=id; } } for (id=1; id<=g_maxplayers; id++) { if ((!is_user_alive(id))||(!player_has_radar[id])) continue; for (i=1;i<=zombie_count;i++) { get_user_origin(zombie_list[i], ZombieCoords) message_begin(MSG_ONE_UNRELIABLE, g_msgHostageAdd, {0,0,0}, id) write_byte(id) write_byte(i) write_coord(ZombieCoords[0]) write_coord(ZombieCoords[1]) write_coord(ZombieCoords[2]) message_end() message_begin(MSG_ONE_UNRELIABLE, g_msgHostageDel, {0,0,0}, id) write_byte(i) message_end() } emit_sound(id, CHAN_ITEM, sound_radar_beep, 1.0, ATTN_NORM, 0, PITCH_NORM); } }
i w logach wyskakuje mi blad ...
L 08/11/2010 - 21:29:46: [AMXX] Run time error 10 (plugin "bleble.amxx") (native "message_begin") - debug not enabled! L 08/11/2010 - 21:29:46: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes). L 08/11/2010 - 21:29:48: Plugin called message_begin with an invalid message id (0).
pomoze mi ktos z tym ;* plusy leca
Użytkownik CeLeS edytował ten post 11.08.2010 20:36