%msg and %text are variables, and the variable you want to use is completely dependant on the variable used when defining the arguments. Variables arent automatically messages though, you need to call a function to send them like servercmdmessagesent(); or messageclient(); or something similar.