Hi,
can anyone explain what I'm doing wrong or maybe can give short script for noob how need to do this.
i have main plugin with natives and sub-plugin with command /test For now I want to debug what's really works and try to print everything what I send to native, but don't work.
Main plugin:
Code:
public plugin_natives() {
register_native("up_get_info","naive_get_info");
}
public naive_get_info(iPlugin,iParam) {
new id = get_param(1);
new key[64];
get_string(2,key,63);
new txt[255]
formatex(txt,254,"Key: %s ID: %s",key,id);
return txt;
}
upanel.inc:
Code:
native up_get_info(id,key[])
sub-plugin:
Code:
#include <amxmodx>
#include <amxmisc>
#include <upanel>
public plugin_init() {
register_clcmd("say /test", "cmd_test");
}
public cmd_test(id) {
client_print(id,print_chat,"test: %s",up_get_info(id,"test"));
}
and I get strange things here. Of course have no idea why
Code:
test: <
Min2liz : /test