Hello all, what could be wrong?
С++ code:
PHP Code:
static cell AMX_NATIVE_CALL nt_test( AMX *amx, cell *params)
{
return 10;
}
AMX_NATIVE_INFO nt_test_Exports[] = {
{ "nt_test", nt_test },
{ NULL, NULL }
};
void OnAmxxAttach()
{
MF_AddNatives(nt_test_Exports);
}
Pawn code:
PHP Code:
native nt_test()
public plugin_init() {
register_clcmd("say /native", "natives")
}
public natives() {
client_print(0, print_chat, "%d", nt_test())
}
Error:
Load fails: Plugin uses an unknown function (name "nt_test") - check your modules.ini.
MetaList:
Func RUN - func_amxx. v1.0 pl1 ANY ANY