- Код: Выделить всё
new Float:f_ZMFactor[][] = {
{ 1.3, 1.0, 1.0, 1.3, 0.9, 1.0 },
{ 1.5, 0.7, 1.5, 0.8, 1.1, 0.9 },
{ 0.7, 1.2, 0.8, 1.5, 0.7, 1.1 }
}
//...
new Float:velocity[3]
new target = pev(id, pev_iuser1) == 4 ? pev(id, pev_iuser2) : id
pev(target, pev_velocity, velocity)
new Float:spd = vector_length(velocity)
//...
client_print(id, print_chat, "%f * %f = %f", spd, f_ZMFactor[zm][SKL_SPEED], spd * f_ZMFactor[zm][SKL_SPEED])// в данном случае f_ZMFactor[0][0]
Теперь - результат вычисления
Вопрос: где я ошибся?)