Raised This Month: $12 Target: $400
 3% 

message_begin parameter


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Cadav0r
Senior Member
Join Date: Jan 2006
Location: France
Old 04-12-2006 , 08:31   message_begin parameter
Reply With Quote #1

I have a problem with the function message_begin
I want to display a message on left-corner but I have a native error so I want to know what are possible values of msg_type???
__________________
P.S : Sorry for my english but I'm French

My plugins : Admin Sounds




Cadav0r is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 04-12-2006 , 09:01  
Reply With Quote #2

msg_type is client's message id.
I think you want HUD message.
If so use natives set_hudmessage and show_hudmessage.
VEN is offline
Cadav0r
Senior Member
Join Date: Jan 2006
Location: France
Old 04-12-2006 , 09:25  
Reply With Quote #3

Ok thanks for this informations i will try with hudmessage
__________________
P.S : Sorry for my english but I'm French

My plugins : Admin Sounds




Cadav0r is offline
Cadav0r
Senior Member
Join Date: Jan 2006
Location: France
Old 04-12-2006 , 09:31  
Reply With Quote #4

But hudmessage isn't possible here, look :
Code:
		result = dbi_query(dbc,"SELECT * FROM amxwarn2 WHERE authid = '%s'",authid)
		if(result >= RESULT_OK) {
			// Complete Warn Sum-up
			new wdate[21], wreason[33], mywarn[5], display[26], display2[26]
			message_begin(MSG_ONE, get_user_msgid("StatusText"), {0,0,0}, id)
			write_byte(0)
			format(mywarn,4,"%L ^n^n","MYWRAN")
			write_string(mywarn)
			for(new w=0;w<swarnlevel[id];w++) {
				dbi_result(result,"date", wdate, 20)
				dbi_result(result," reason", wreason, 32)
				format(display, 25," %L: %s", id, "DATE", wdate[20])
				write_string(display)
				if (wreason[32]) {
					format(display2, 25,"^n %L: %s", id, "REASON", wreason[32])
					write_string(display2)
				}
				dbi_nextrow(result)
				if(w != swarnlevel[id]-1)
					write_string("^n^n")
			}
		}
		dbi_free_result(result)
		message_end()
Because the message is in many piece, so if you have other solution...

Thanks
__________________
P.S : Sorry for my english but I'm French

My plugins : Admin Sounds




Cadav0r is offline
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 04-12-2006 , 19:08  
Reply With Quote #5

Then FORMAT IT TO A STRING.
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
Cadav0r
Senior Member
Join Date: Jan 2006
Location: France
Old 04-13-2006 , 06:44  
Reply With Quote #6

Ok I will try it
__________________
P.S : Sorry for my english but I'm French

My plugins : Admin Sounds




Cadav0r 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 19:06.


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