11.07.2016, 16:23
If you use CallLocalFunction you could use this little trick
You simply pass the address of the string / array
You can also pass empty strings with that, used it before in my command processor until I switched to a pure emit version
You simply pass the address of the string / array
PHP код:
GetAddress(...) {
#emit load.s.pri 12
#emit retn
return 0;
}
new text[] = "Hello World";
CallLocalFunction("Print", "i", GetAddress(text));
forward Print(text[]);
public Print(text[]) print(text);