At this poin is working:
main plugin:
Code:
public native_get_info(iPlugin,iParam) {
new id = get_param(1);
new key[255]
get_string(2,key,255);
set_string(1,key,255);
}
sub-plugin:
Code:
#include <amxmodx>
#include <amxmisc>
#include <upanel>
public plugin_init() {
register_clcmd("say /test", "cmd_test");
}
public cmd_test(id) {
new test[255];
test = "Test";
up_get_info(id,test)
client_print(id,print_chat,"test: %s",test);
}
Maybe it's silly code but it's working. But now, how to change in native this string to anything else. Like if sub-plugin send "test", native return "test2"?
I tryed:
Code:
public native_get_info(iPlugin,iParam) {
new id = get_param(1);
new key[255], test[255]
get_string(2,key,255);
test = "Test2";
set_string(1,test,255);
}
but still get old one string "Test"