[SOLVED] Format a message?
Can anyone explain to me how i can do the following? :)
I have about 20 cases with different type of victims, and i would like to save the desired text i want to display for each specific case then insert it into a hud message PHP Code:
|
Re: [HELP] Format a message?
I don't understand what you're trying to do, can you try to explain better? Maybe give some examples.
|
Re: [HELP] Format a message?
Ok, i will try to explain again
I want to send a hud message to the attacker when he killed a player, but i want the message to be different depending on the case, following the next example PHP Code:
|
Re: [HELP] Format a message?
|
Re: [HELP] Format a message?
You may need to do what you are already doing. The if checking will stop when it hits a true condition so if there's a chance of a player having more than 1 condition, put them in the order of priority.
PHP Code:
|
Re: [HELP] Format a message?
So i should make a global variable szMsg? and what about fomat? do i have to use it aswell?
Can you give me a more concrete example please?:) |
Re: [HELP] Format a message?
PHP Code:
|
Re: [HELP] Format a message?
Nice, but could you explain to me one thing please ?:P
This line, how does it work? what ":" stands for in this case PHP Code:
|
Re: [HELP] Format a message?
Quote:
So if you did: ksStatus = ThisInstead3 you will have no issues/warnings but if you did: ksStatus = 3 you would get warning. Even though ThisInstead3 equals 3 as defined in the enumerator, it will give you a warning. If you ever have a need to do this and want to not get a warning, you can tag it like this: ksStatus = KillStatus: 3 I think someone wrote a tut on enumerators/types in the tuts section. |
Re: [HELP] Format a message?
I understood now, thanks :)
But, how can i add a cvar value into the text? also the cvar value would be different for each case... |
| All times are GMT -4. The time now is 09:27. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.