PHP Code:
public rocket_sfx( id )
{
if ( is_user_alive( id ) && id != 0)
{
set_pev( id, pev_gravity, -0.5 )
set_pev( id, pev_velocity, Float:{ 0.0, 0.0, 350.0 } )
emit_sound( id, CHAN_VOICE, "weapons/rocket1.wav", 1.0, 0.5, 0, PITCH_NORM )
rocket_rise( id )
message_begin( MSG_ONE_UNRELIABLE, gmsgScreenShake, _, id )
write_short( 1 << 15 ) // shake amount
write_short( 1 << 15 ) // shake lasts this long
write_short( 1 << 15 ) // shake noise frequency
message_end()
message_begin( MSG_BROADCAST, SVC_TEMPENTITY ) // Rocket Trail
write_byte( TE_BEAMFOLLOW )
write_short( id )
write_short( g_trail )
write_byte( 30 )
write_byte( 2 )
write_byte( 250 )
write_byte( 250 )
write_byte( 250 )
write_byte( 250 )
message_end()
}
}
I have a strange error
Code:
L 02/28/2009 - 00:57:33: Plugin called message_begin with an invalid message id (0).
On line - public rocket_sfx( id )
What is happening?
__________________