store & restore score

Сообщения
30
Реакции
-4
This restore isnt working whats error?
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()
    }
}
 
Сообщения
1,420
Реакции
2,511
Помог
58 раз(а)
Skyrocks, what does "restore" mean in your case? I don't see where you're creating F[] and D[]. Show full code or explain better.
 

Пользователи, просматривающие эту тему

Сейчас на форуме нет ни одного пользователя.
Сверху Снизу