Kod błędu:
L 05/15/2013 - 18:41:21: Plugin called message_begin with an invalid message id (0). L 05/15/2013 - 18:41:21: [AMXX] Displaying debug trace (plugin "expmod.amxx") L 05/15/2013 - 18:41:21: [AMXX] Run time error 10: native error (native "message_begin") L 05/15/2013 - 18:41:21: [AMXX] [0] expmod.sma::Life (line 1167)
new gStatusMsg;
(...)
public plugin_init() {
(...)
gStatusMsg = get_user_msgid("StatusText")
(...)
}
public client_connect(id)
{
(...)
set_task(0.8, "Life", id, _, _, "b");
(...)
}
public Life(id)
{
if(!is_user_alive(id))
return;
new cus[51]
format(cus, sizeof cus - 1, "Poziom: %d | Exp : %d/%d | Punkty: %d", poziom_gracza[id], exp_gracza[id], tabelka_expa[poziom_gracza[id]], punkty_gracza[id]);
message_begin(MSG_ONE_UNRELIABLE, gStatusMsg, {0,0,0}, id)
write_byte(0)
write_string(cus)
message_end()
}
Przed dodaniem nowej umiejętności i jednego menu wszystko działało.


Dodatki SourceMod




Temat jest zamknięty









