Raised This Month: $ Target: $400
 0% 

[HELP] What wrong here?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Fuck For Fun
Veteran Member
Join Date: Nov 2013
Old 03-31-2014 , 15:46   [HELP] What wrong here?
Reply With Quote #1

Code:
L 03/31/2014 - 22:39:39: [AMXX] Run time error 10: native error (native "message_begin")
L 03/31/2014 - 22:39:39: [AMXX]    [0] Laser.sma::RoundEnd (line 51)
PHP Code:
public RoundEnd( )
{
    
message_begin(MSG_ALLget_user_msgid("g_iMsgID_ScreenFade"));
    
write_short(4096*1); // Duration
    
write_short(4096*2); // Hold time
    
write_short(4096); // Fade type
    
write_byte(0); // Red
    
write_byte(0); // Green
    
write_byte(0); // Blue
    
write_byte(255); // Alpha
message_end(); 

Last edited by Fuck For Fun; 03-31-2014 at 15:47.
Fuck For Fun is offline
Send a message via Skype™ to Fuck For Fun
jok
Member
Join Date: Sep 2013
Old 03-31-2014 , 15:56   Re: [HELP] What wrong here?
Reply With Quote #2

// global variable:
PHP Code:
new g_iMsgId_ScreenFade
in public plugin_init( ):
PHP Code:
g_iMsgId_ScreenFade get_user_msgid"ScreenFade" ); 
in public RoundEnd( ):
PHP Code:
message_begin(MSG_ALLget_user_msgid("g_iMsgID_ScreenFade"));
->
message_begin(MSG_ALLg_iMsgID_ScreenFade); 
jok is offline
Fuck For Fun
Veteran Member
Join Date: Nov 2013
Old 03-31-2014 , 16:18   Re: [HELP] What wrong here?
Reply With Quote #3

Quote:
Originally Posted by jok View Post
// global variable:
PHP Code:
new g_iMsgId_ScreenFade
in public plugin_init( ):
PHP Code:
g_iMsgId_ScreenFade get_user_msgid"ScreenFade" ); 
in public RoundEnd( ):
PHP Code:
message_begin(MSG_ALLget_user_msgid("g_iMsgID_ScreenFade"));
->
message_begin(MSG_ALLg_iMsgID_ScreenFade); 
Code:
message_begin(MSG_ALL, g_iMsgID_ScreenFade);
>?
Code:
message_begin(MSG_ALL, g_iMsgID_ScreenFade));
and i have error
Warning: Symbol is assigned a value that is never used: "g_iMsgId_ScreenFade" on line 85
Error: Number of arguments does not match definition on line 53
Error: Undefined symbol "g_iMsgID_ScreenFade" on line 53
Fuck For Fun is offline
Send a message via Skype™ to Fuck For Fun
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 03-31-2014 , 16:20   Re: [HELP] What wrong here?
Reply With Quote #4

Then attach the plugin and let us see the entire code, because you did something incorrect
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou 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 05:58.


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