Raised This Month: $ Target: $400
 0% 

Show message


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 04-08-2009 , 09:44   Show message
Reply With Quote #1

PHP Code:
        case 1:
        {
            new 
message[64];
            
format(message,63,"[Status : lol ]"); 
            
show_message(id,message);

public 
show_message(id,text[]) 
{
    
message_begin(MSG_ONE,MSG_ONE,{0,0,0},id);
    
write_byte(1);
    
write_string(text);
    
message_end();

whats wrong?
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 04-08-2009 , 09:51   Re: Show message
Reply With Quote #2

Show your whole code
__________________
Bugsy is offline
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 04-08-2009 , 09:55   Re: Show message
Reply With Quote #3

PHP Code:
public show_level(id)
{
    switch(
Level)
    {
        case 
1:
        {
            new 
message[64];
            
format(message,63,"[=======status : ====== ]");
            
show_message(id,message);

        }
        case 
2:
        {
            
//set_hudmessage(255,255,0,0.75,0.05,0, 1.0, 1.0, 0.1, 0.2, 13);
            //show_hudmessage(0, "lol");
        
}
        case 
3:
        {
            
//set_hudmessage(255,255,0,0.75,0.05,0, 1.0, 1.0, 0.1, 0.2, 13);
            //show_hudmessage(0, "lol");
        
}
    }
}
public 
show_message(id,text[]) 
{
    
message_begin(MSG_ONE,MSG_ONE,{0,0,0},id);
    
write_byte(1);
    
write_string(text);
    
message_end();

hmm did i forget anything??
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 04-08-2009 , 10:00   Re: Show message
Reply With Quote #4

Code:
public show_message(id,text[]) {     message_begin(MSG_ONE,MSG_ONE,{0,0,0},id);     write_byte(1);     write_string(text);     message_end(); }
You should get "SayText" message's ID instead of the 2nd MSG_ONE.
__________________
hleV is offline
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 04-08-2009 , 10:03   Re: Show message
Reply With Quote #5

Quote:
Originally Posted by hleV View Post
You should get "SayText" message's ID instead of the 2nd MSG_ONE.
the question is how??? its my first time that i try to show messages so..
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 04-08-2009 , 10:07   Re: Show message
Reply With Quote #6

get_user_msgid( "SayText" ); ( save in a global var )
Arkshine is offline
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 04-08-2009 , 10:10   Re: Show message
Reply With Quote #7

hih. plase dont ones nute ))

PHP Code:
public show_level(id)
{
    switch(
Level)
    {
        case 
1:
        {
            new 
message[64];
            
format(message,63,"[=======status : ====== ]");
            
show_message(id,message);

        }
        case 
2:
        {
            
//set_hudmessage(255,255,0,0.75,0.05,0, 1.0, 1.0, 0.1, 0.2, 13);
            //show_hudmessage(0, "lol");
        
}
        case 
3:
        {
            
//set_hudmessage(255,255,0,0.75,0.05,0, 1.0, 1.0, 0.1, 0.2, 13);
            //show_hudmessage(0, "lol");
        
}
    }
}
public 
show_message(id,text[]) 
{
    
message_begin(MSG_ONE,SayText,{0,0,0},id);
    
write_byte(1);
    
write_string(text);
    
message_end();

WTF im doing??
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
alan_el_more
Veteran Member
Join Date: Jul 2008
Location: amxmodx-es.com
Old 04-08-2009 , 10:13   Re: Show message
Reply With Quote #8

PHP Code:
new g_msgSayText

public plugin_init()
{
      
g_msgSayText get_user_msgid("SayText")

__________________
alan_el_more is offline
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 04-08-2009 , 10:16   Re: Show message
Reply With Quote #9

TY. compiles. i have just to install server & test after this. ty
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 04-08-2009 , 11:01   Re: Show message
Reply With Quote #10

Host_Error: UserMsg: Not Present on Client 61
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
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 02:23.


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