Raised This Month: $ Target: $400
 0% 

Error: Plugin called message_begin in ATAC "rocket" code


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
GoGoGo
Senior Member
Join Date: Apr 2008
Old 02-28-2009 , 05:11   Error: Plugin called message_begin in ATAC "rocket" code
Reply With Quote #1

PHP Code:
public rocket_sfxid )
{   
    if ( 
is_user_aliveid ) && id != 0)
    {
                
        
set_pevidpev_gravity, -0.5 )
        
set_pevidpev_velocityFloat:{ 0.00.0350.0 } )
        
emit_soundidCHAN_VOICE"weapons/rocket1.wav"1.00.50PITCH_NORM )
        
rocket_riseid )
        
        
message_beginMSG_ONE_UNRELIABLEgmsgScreenShake_id )
        
write_short<< 15 // shake amount
        
write_short<< 15 // shake lasts this long
        
write_short<< 15 // shake noise frequency
        
message_end()
        
        
message_beginMSG_BROADCASTSVC_TEMPENTITY // Rocket Trail
        
write_byteTE_BEAMFOLLOW )
        
write_shortid )
        
write_shortg_trail )
        
write_byte30 )
        
write_byte)
        
write_byte250 )
        
write_byte250 )
        
write_byte250 )
        
write_byte250 )
        
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?
__________________
Aaaaaa!
GoGoGo is offline
iNspiratioN
Member
Join Date: Feb 2009
Location: Lithuania
Old 02-28-2009 , 05:15   Re: Error: Plugin called message_begin in ATAC "rocket" code
Reply With Quote #2

maybe this could help http://www.amxmodx.org/funcwiki.php?go=func&id=262
iNspiratioN is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 02-28-2009 , 05:21   Re: Error: Plugin called message_begin in ATAC "rocket" code
Reply With Quote #3

It's probably gmsgScreenShake.
__________________
fysiks is offline
GoGoGo
Senior Member
Join Date: Apr 2008
Old 02-28-2009 , 07:40   Re: Error: Plugin called message_begin in ATAC "rocket" code
Reply With Quote #4

So what should I do to fix it?
__________________
Aaaaaa!
GoGoGo is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 02-28-2009 , 07:51   Re: Error: Plugin called message_begin in ATAC "rocket" code
Reply With Quote #5

in plugin_init :

gmsgScreenShake = get_user_msgid("ScreenShake")
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
GoGoGo
Senior Member
Join Date: Apr 2008
Old 02-28-2009 , 08:37   Re: Error: Plugin called message_begin in ATAC "rocket" code
Reply With Quote #6

I had it in plugin int before
__________________
Aaaaaa!
GoGoGo is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 02-28-2009 , 08:47   Re: Error: Plugin called message_begin in ATAC "rocket" code
Reply With Quote #7

Quote:
Originally Posted by GoGoGo View Post
I had it in plugin int before
Where is it now?

Try some kind of test print to print the variable to see what the value is when you change things up.
__________________
fysiks is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-28-2009 , 08:59   Re: Error: Plugin called message_begin in ATAC "rocket" code
Reply With Quote #8

What's your mod played ?
Arkshine is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:58.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode