Raised This Month: $ Target: $400
 0% 

message_begin gets an error


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hlstriker
Green Gaben
Join Date: Mar 2006
Location: OH-IO!
Old 01-16-2007 , 11:38   message_begin gets an error
Reply With Quote #1

Hi when I try and compile this code the line with message_begin gets this error...
Quote:
error 035: argument type mismatch (argument 2)
Here is the code...
Code:
public updateScore(id) {     message_begin(MSG_ALL, "ScoreInfo"); /* <--- Gets error here */     write_byte(id); // Player id     write_short(0); // Frags     write_short(0); // Deaths     write_short(0); // Class     write_short(0); // Team     message_end(); }
hlstriker is offline
jim_yang
Veteran Member
Join Date: Aug 2006
Old 01-16-2007 , 11:43   Re: message_begin gets an error
Reply With Quote #2

should be msgid, get_user_msgid("ScoreInfo")
__________________
Project : CSDM all in one - 99%
<team balancer#no round end#entity remover#quake sounds#fake full#maps management menu#players punishment menu#no team flash#colored flashbang#grenade trails#HE effect#spawn protection#weapon arena#weapon upgrade#auto join#no weapon drop#one name>
jim_yang is offline
hlstriker
Green Gaben
Join Date: Mar 2006
Location: OH-IO!
Old 01-16-2007 , 11:47   Re: message_begin gets an error
Reply With Quote #3

Alright thank you

Also, the team part...
write_short(0); // Team

Is there a way I can change the text of the team on the score board to show to something custom?

Example:
Change "Counter-Terrorist" to "Team 2"
Change "Terrorist" to "Team 1"
Change "Spectate" to "View"
hlstriker is offline
jim_yang
Veteran Member
Join Date: Aug 2006
Old 01-16-2007 , 11:59   Re: message_begin gets an error
Reply With Quote #4

that's defined in client-side. you can only change the text your own.
__________________
Project : CSDM all in one - 99%
<team balancer#no round end#entity remover#quake sounds#fake full#maps management menu#players punishment menu#no team flash#colored flashbang#grenade trails#HE effect#spawn protection#weapon arena#weapon upgrade#auto join#no weapon drop#one name>
jim_yang 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 22:30.


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