AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Error: Plugin called message_begin in ATAC "rocket" code (https://forums.alliedmods.net/showthread.php?t=86608)

GoGoGo 02-28-2009 05:11

Error: Plugin called message_begin in ATAC "rocket" code
 
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?

iNspiratioN 02-28-2009 05:15

Re: Error: Plugin called message_begin in ATAC "rocket" code
 
maybe this could help http://www.amxmodx.org/funcwiki.php?go=func&id=262

fysiks 02-28-2009 05:21

Re: Error: Plugin called message_begin in ATAC "rocket" code
 
It's probably gmsgScreenShake.

GoGoGo 02-28-2009 07:40

Re: Error: Plugin called message_begin in ATAC "rocket" code
 
So what should I do to fix it?

ConnorMcLeod 02-28-2009 07:51

Re: Error: Plugin called message_begin in ATAC "rocket" code
 
in plugin_init :

gmsgScreenShake = get_user_msgid("ScreenShake")

GoGoGo 02-28-2009 08:37

Re: Error: Plugin called message_begin in ATAC "rocket" code
 
I had it in plugin int before

fysiks 02-28-2009 08:47

Re: Error: Plugin called message_begin in ATAC "rocket" code
 
Quote:

Originally Posted by GoGoGo (Post 770927)
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.

Arkshine 02-28-2009 08:59

Re: Error: Plugin called message_begin in ATAC "rocket" code
 
What's your mod played ?


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

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