So I have a forward that takes back a few strings.
PHP Code:
result = Plugin_Continue;
Call_StartForward(g_hGFwd_OnDisplay);
Call_PushCell(client);
Call_PushStringEx(name, sizeof(name), SM_PARAM_STRING_UTF8, SM_PARAM_COPYBACK);
Call_PushCell(sizeof(name));
Call_PushStringEx(param1, sizeof(param1), SM_PARAM_STRING_UTF8, SM_PARAM_COPYBACK);
Call_PushCell(sizeof(param1));
Call_PushStringEx(param2, sizeof(param2), SM_PARAM_STRING_UTF8, SM_PARAM_COPYBACK);
Call_PushCell(sizeof(param2));
Call_Finish(result);
Now say another plugin changes param1 to "Hello world" and return Plugin_Changed. Then back in my call I update all the strings, unfortunately since the other two strings weren't set, they contain garbage.
So how can I set an initial value for copy back strings?
I tried strcopy into the copy back strings but that doesn't work.