OP show all your defines (what is unit_second and g_msgScreenShake are equal to )
Use this to fix the value
PHP Code:
FixedUnsigned16 ( const Float:Value, const Scale )
{
return clamp( floatround( Value * Scale ), 0, 0xFFFF );
}
Use this stock instead
PHP Code:
public Sshake(id, Float:AMP, Float:DUR, Float:FREQ)
{
message_begin(!id ? MSG_BROADCAST:MSG_ONE_UNRELIABLE, g_msgScreenShake, _, id)
write_short(FixedUnsigned16(AMP, UNIT_SECOND)) // amplitude
write_short(FixedUnsigned16(DUR, UNIT_SECOND)) // duration
write_short(FixedUnsigned16(FREQ, UNIT_SECOND)) // frequency
message_end()
}
If you have no idea where to put the code then post in the right section
__________________