This restore isnt working whats error?
tried MSG_ALL still same
tried MSG_ALL still same
Код:
public Restore(id)
{
new players[32], num, x
get_players(players, num,"ch")
for(new i = 0; i < num; i++)
{
x = players[i]
set_entvar(x, var_frags, F[x]);
set_member(x, m_iDeaths, D[x]);
client_print_color(0, -1, "F: %f , D: %i ", F[x], D[x]);
message_begin(MSG_BROADCAST, mScoreInfo)
write_byte(x) // id
write_short(F[x]) // Frags
write_short(D[x]) // Deaths
write_short(0) // Class
write_short(get_member(x, m_iTeam)) // Team
message_end()
}
}