L 11/12/2014 - 08:50:47: Plugin called message_begin with an invalid message id (0). L 11/12/2014 - 08:50:47: [AMXX] Displaying debug trace (plugin "CODMOD.amxx") L 11/12/2014 - 08:50:47: [AMXX] Run time error 10: native error (native "message_begin") L 11/12/2014 - 08:50:47: [AMXX] [0] CODMOD.sma::Display_Fade (line 1567) L 11/12/2014 - 08:50:47: [AMXX] [1] CODMOD.sma::PoczatekRundy (line 400)
public PoczatekRundy() { freezetime = false; for(new id=0;id<=32;id++) { if(!is_user_alive(id)) continue; Display_Fade(id, 1<<9, 1<<9, 1<<12, 0, 255, 70, 100); // Błąd set_task(0.1, "UstawSzybkosc", id+ZADANIE_USTAW_SZYBKOSC); set_task(5.0, "Regeneracja", id+TASK_REGENERACJA); switch(get_user_team(id)) { case 1: client_cmd(id, "spk CodMod_Sound/start2"); case 2: client_cmd(id, "spk CodMod_Sound/start"); } } }
stock Display_Fade(id,duration,holdtime,fadetype,red,green,blue,alpha) { message_begin( MSG_ONE, MsgScreenfade,{0,0,0},id ); // Błąd write_short( duration ); // Duration of fadeout write_short( holdtime ); // Hold time of color write_short( fadetype ); // Fade type write_byte ( red ); // Red write_byte ( green ); // Green write_byte ( blue ); // Blue write_byte ( alpha ); // Alpha message_end(); }
Znalazłem rozwiązanie w tym temacie : http://amxx.pl/topic...26-id-0-crashe/
Ale jednak jak dodaje kod Darka mam problem
Error: Undefined symbol "Display_Fade" on line 403 Warning: Symbol is assigned a value that is never used: "MsgScreenfade" on line 1743
A j/w w temacie przed postem Darka jest jeszcze inne rozwiązanie chodź mam już to dodane to nie wiem czy mam podmienić?
new MsgScreenfade;
public plugin_init() MsgScreenfade = get_user_msgid("ScreenFade");
Może ktoś pomóc ?