Quote:
Originally Posted by ichthys
Mattie: ATM its not possible to use es_format within an alias because the " "'s throw off the alias'ing. Would it be possible to be able to use another char to mark the beginning and end of the string?
|
Sorry-- I don't think there's going to be an easy way to do this. I do it by using a variable for the format string like this:
Code:
// EventScripts v0.7.7
es_setinfo formatstring "Gravity is %1"
es_setinfo var 0
alias myformat es_format var server_var(formatstring) server_var(sv_gravity)
This still isn't going to be the best workaround for all situations. Still, this would be the sole exception to me going using Valve's automatic token parser. I really would like to keep the format string as a single token and quotes are the only way to be certain of that.
-Mattie