Raised This Month: $ Target: $400
 0% 

[SOLVED]my fault.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
makiza
BANNED
Join Date: Mar 2009
Old 03-12-2011 , 18:58   [SOLVED]my fault.
Reply With Quote #1

Hello there again...

Trying to add this 2 pieces of code:
PHP Code:
public flash()
{
    
set_lights("a")
    new 
all[32], inum 
    get_players
(all,inum
    for (new 
i=0;i<inum;++i) { 
        
Flash2(all[i]) // line 87
    

}

public 
Flash2(id) {
    
message_begin(MSG_ONE,gMsgScreenFade,{0,0,0},id//line 92
    
write_short1<<15 
    
write_short1<<10 )
    
write_short1<<12 )
    
write_byte255 
    
write_byte255 
    
write_byte255 
    
write_byte255 
    
message_end()

Comes out this runtime error:
Quote:
L 03/12/2011 - 18:47:41: Plugin called message_begin with an invalid message id (0).
L 03/12/2011 - 18:47:41: [AMXX] Displaying debug trace (plugin "ZP_EMP.amxx")
L 03/12/2011 - 18:47:41: [AMXX] Run time error 10: native error (native "message_begin")
L 03/12/2011 - 18:47:41: [AMXX] [0] ZP_EMP.sma::Flash2 (line 92)
L 03/12/2011 - 18:47:41: [AMXX] [1] ZP_EMP.sma::flash (line 87)
I dunno what to do, and i require of your help

Thanks in advance.
makiza is offline
Sylwester
Veteran Member
Join Date: Oct 2006
Location: Poland
Old 03-12-2011 , 19:20   Re: message_begin with an invalid message id (0)
Reply With Quote #2

add in plugin_init:
PHP Code:
gMsgScreenFade get_user_msgid("ScreenFade"
__________________
Impossible is Nothing
Sylwester is offline
makiza
BANNED
Join Date: Mar 2009
Old 03-12-2011 , 19:44   Re: message_begin with an invalid message id (0)
Reply With Quote #3

Already done.
makiza is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 03-12-2011 , 19:48   Re: message_begin with an invalid message id (0)
Reply With Quote #4

Quote:
Originally Posted by makiza View Post
Already done.
What is the value of the message id then?
__________________
fysiks is offline
makiza
BANNED
Join Date: Mar 2009
Old 03-12-2011 , 19:50   Re: message_begin with an invalid message id (0)
Reply With Quote #5

Quote:
Originally Posted by fysiks View Post
What is the value of the message id then?
I do not understand you.
EDIT: Fixed.

i had some fakemeta junk that causes conflicts on that event.

Last edited by makiza; 03-12-2011 at 20:02.
makiza 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 14:35.


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