Raised This Month: $ Target: $400
 0% 

MSG Help...


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Zenith77
Veteran Member
Join Date: Aug 2005
Old 10-30-2005 , 19:11   MSG Help...
Reply With Quote #1

This comes up :

Code:
L 10/30/2005 - 18:08:30: [AMXX] Plugin called message_begin with an invalid message id (0).
L 10/30/2005 - 18:08:30: [AMXX] Displaying debug trace (plugin "GAIO.amxx")
L 10/30/2005 - 18:08:30: [AMXX] Run time error 10: native error (native "message_begin")
L 10/30/2005 - 18:08:31: [AMXX]    [0] GAIO.sma::cmdHudPink (line 1
for this...

Code:
message_begin(MSG_ONE, g_msgFade, {0,0,0}, id) write_short(1<<0)   // fade lasts this long duration write_short(1<<0)   // fade lasts this long hold time write_short(1<<2)   // fade type HOLD write_byte(iRed)    // fade red write_byte(iGreen)  // fade green write_byte(iBlue)   // fade blue write_byte(100)     // fade alpha message_end()

I know id is a player, or else i wouldnt be in the game :/ .....


So could anybody point me to the problem ?

Thank you,

--Zenith77
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
Charr
Senior Member
Join Date: Jul 2005
Location: Long Island, New York, U
Old 10-30-2005 , 19:26  
Reply With Quote #2

Did you get the ID of the message?
__________________
Charr is offline
Send a message via AIM to Charr Send a message via MSN to Charr
Zenith77
Veteran Member
Join Date: Aug 2005
Old 10-30-2005 , 19:30  
Reply With Quote #3

Yeppers..

Code:
g_msgFade = get_user_msgid("ScreenFade")
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
Charr
Senior Member
Join Date: Jul 2005
Location: Long Island, New York, U
Old 10-30-2005 , 19:33  
Reply With Quote #4

Check if screenfade is in your mod, case the error looks like theres no screenfade.
__________________
Charr is offline
Send a message via AIM to Charr Send a message via MSN to Charr
Zenith77
Veteran Member
Join Date: Aug 2005
Old 10-30-2005 , 19:36  
Reply With Quote #5

its in there.....

its in everymod


not only that...


without screen fade there would be no flash in CS. ...

Proof:


Quote:
Originally Posted by MetaMod
ScreenFade 98 10
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
SSJ2GOKU
Senior Member
Join Date: Oct 2005
Location: Belgium
Old 10-30-2005 , 20:05  
Reply With Quote #6

this one works for meh

Code:
new gmsgFade message_begin(MSG_ONE, gmsgFade, {0,0,0}, user) write_short(1<<12) // fade lasts this long duration   write_short(1<<8) // fade lasts this long hold time   write_short(1<<0) // fade type IN write_byte(0) // fade red   write_byte(0) // fade green   write_byte(0) // fade blue     write_byte(255) // fade alpha     message_end()
SSJ2GOKU is offline
Send a message via MSN to SSJ2GOKU
Zenith77
Veteran Member
Join Date: Aug 2005
Old 10-30-2005 , 20:36  
Reply With Quote #7

i dont see the diff.
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 10-30-2005 , 20:56  
Reply With Quote #8

Where do you get the message's id? Is the user you are sending this to connected?
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Zenith77
Veteran Member
Join Date: Aug 2005
Old 10-30-2005 , 21:03  
Reply With Quote #9

Quote:
Originally Posted by Zenith77
I know id is a player, or else i wouldnt be in the game :/ .....

This is one of the functions ( all the others are the same, just modified to produce diff results... )



Code:
public cmdHudPurple(id) {         if( !get_cvar_num("sv_glow") ) {                 client_print(id, print_chat, "[AMXX] Sorry, GAIO (Glow All in One) is disabled!")                 return PLUGIN_HANDLED     }                 if( g_GlowHudColor[id] == GLOW_PURPLE) {                 client_print(id, print_chat, "[AMXX] You are already have a purple hud!" )                 return PLUGIN_HANDLED     }         client_print(id, print_chat, "[AMXX] Your hud is now purple!" )             message_begin(MSG_ONE, g_msgFade, {0,0,0}, id)     write_short(1<<0)   // fade lasts this long duration     write_short(1<<0)   // fade lasts this long hold time     write_short(1<<2)   // fade type HOLD     write_byte(170)     // fade red     write_byte(0)       // fade green     write_byte(128)     // fade blue     write_byte(100)     // fade alpha     message_end()         g_GlowHudColor[id] = GLOW_PURPLE         g_GlowHudCustomColor[id][0] = 170     g_GlowHudCustomColor[id][1] = 0     g_GlowHudCustomColor[id][2] = 128                 return PLUGIN_HANDLED     }
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 10-30-2005 , 21:53  
Reply With Quote #10

Where is g_msgFade assigned a value?
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX 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 23:49.


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