Why dun this work?
(it's very rare that I ask for help in here :p)
Code:
It's so simple.. :p Maybe I just have the coords off of the screen, haha. |
dont you need to creat a loop that display it, the scor isupdating al the time.
can there be anything wrong with: Code:
|
Re: Why dun this work?
As far as I know, the ID being passed to your "show_message" function will be the same as the Task ID, which you put as: TASK_ID+id, but then you try to use that ID in the show_message function as if it were a player ID.. I think you should minus TASK_ID from the player ID first..
Code:
I hope that helps, or even works! |
Still dun work.. :\
I tried to make it show in the StatusText thinger, but I got an error and teh server went boom. Code:
Quote:
HUD CODE (changed a couple things): Code:
|
Bah, I got it workin..
|
I know this is kinda off-topic, but you should always use MSG_ONE_UNRELIABLE instead of MSG_ONE.
By using MSG_ONE you are telling the HL Engine that the message is to be put into the reliable stream for sending and if for some reason the message can't be sent then the HL Engine produces a Fatal Error and your server crashes.. If you use MSG_ONE_UNRELIABLE you are telling the HL Engine to send the message unreliably, meaning that if the message can't be sent it is okay.. This way the server continues on and doesn't crash.. Either way, using MSG_ONE_UNRELIABLE or MSG_ONE will still cause the message to be sent, and in both cases the message may fail, the notable difference is what to do if it does fail (crash or continue).. Overall, use MSG_ONE if you want the server to crash if the message can't be sent, or use MSG_ONE_UNRELIABLE if you don't want it to crash.. :D |
Oh, i noticed why it crashed on you too, you put 'id' in the message_begin function, when you shoulda put 'playerID'...
Quote:
|
| All times are GMT -4. The time now is 16:47. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.