Подведи собственные итоги года совместно с YOUGAME и забери ценные призы! Перейти

What is the best % for missedshots in resolvers?

Забаненный
Забаненный
Статус
Оффлайн
Регистрация
27 Июл 2020
Сообщения
137
Реакции
13
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Hi. I want to know what, and if it even matters, is the % for missedshots in resolver. I use this:

C++:
Expand Collapse Copy
csgo->missedshots[player->GetIndex()] % 3
 
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Learn c++ before you attempt to write a cheat.
 
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
let me explain:
x = B % C
x is a remainder from dividing B by C

So, you can see in many cheats code with switch operator, like:
Код:
Expand Collapse Copy
    switch (csgo->missedshots[idx] % 4) {
    case 3:
        // 3 / 4 = 0 (remainder 3)
        break;
    case 2:
        // 2 / 4 = 0 (remainder 2)
        break;
    case 1:
        // 1 / 4 = 0 (remainder 1)
        break;
    case 0:
        // 0 / 4 = 0 (remainder 0)
        break;
    }
Also:
Код:
Expand Collapse Copy
    switch (csgo->missedshots[idx] % 4) {
    case 3:
        // 7 / 4 = 1 (remainder 3 (7 - 4*1)), where is 1 - is a quotient of division
        break;
    case 2:
        // 6 / 4 = 1 (remainder 2 (6 - 4*1)), where is 1 - is a quotient of division
        break;
    case 1:
        // 5 / 4 = 1 (remainder 1 (5 - 4*1)), where is 1 - is a quotient of division
        break;
    case 0:
        // 4 / 4 = 1 (remainder 0 (4 - 4*1)), where is 1 - is a quotient of division
        break;
    }
simply, the number after the % indicates how many cases you want to consider
have a nice day :CoolStoryBob:
 
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
1596557089973.png
 
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
let me explain:
x = B % C
x is a remainder from dividing B by C

So, you can see in many cheats code with switch operator, like:
Код:
Expand Collapse Copy
    switch (csgo->missedshots[idx] % 4) {
    case 3:
        // 3 / 4 = 0 (remainder 3)
        break;
    case 2:
        // 2 / 4 = 0 (remainder 2)
        break;
    case 1:
        // 1 / 4 = 0 (remainder 1)
        break;
    case 0:
        // 0 / 4 = 0 (remainder 0)
        break;
    }
Also:
Код:
Expand Collapse Copy
    switch (csgo->missedshots[idx] % 4) {
    case 3:
        // 7 / 4 = 1 (remainder 3 (7 - 4*1)), where is 1 - is a quotient of division
        break;
    case 2:
        // 6 / 4 = 1 (remainder 2 (6 - 4*1)), where is 1 - is a quotient of division
        break;
    case 1:
        // 5 / 4 = 1 (remainder 1 (5 - 4*1)), where is 1 - is a quotient of division
        break;
    case 0:
        // 4 / 4 = 1 (remainder 0 (4 - 4*1)), where is 1 - is a quotient of division
        break;
    }
simply, the number after the % indicates how many cases you want to consider
have a nice day :CoolStoryBob:
thank you, but what if I add a default:
Will it count as a case? Like this:
1596557610948.png
 
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
%остаток от деления
% remainder of division
 
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Назад
Сверху Снизу