This is probably a very simple question for some of you, but I just can't figure out how to properly use set_string(). I have this function:
PHP Code:
public get_message(id, iPlayer, szMsg[], szArg[], szOutput[], iLen)
{
new szMessage[192]
... some stuff about formatting szMessage here ...
set_string(5, szMessage, iLen)
}
And I'm trying to set the string using all the parameters in it with this code:
PHP Code:
new szMessage[192]
get_message(id, 0, 0, szArg, szMessage, charsmax(szMessage))
It doesn't work. I tried and tried and couldn't get it right. It even gives me a warning that szOutput isn't used.