// vim: set ts=4 sw=4 tw=99 noet: // // AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO"). // Copyright (C) The AMX Mod X Development Team. // // This software is licensed under the GNU General Public License, version 3 or higher. // Additional exceptions apply. For full license details, see LICENSE.txt or visit: // https://alliedmods.net/amxmodx-license #include public plugin_init() { register_plugin("callfunc test", "1.0", "BAILOPAN") register_srvcmd("test_callfunc", "Command_Callfunc") } public OnCallfuncReceived(num, str[], &val, array[], array2[], size, hello2[1]) { server_print("num = %d (expected: %d)", num, 5) server_print("str[] = ^"%s^" (expected: %s)", str, "Gaben") server_print("val = %d (expected %d, setting to %d)", val, 62, 15) val = 15 server_print("printing %d elements of array[] (expected: %d)", size, 6) for (new i=0; i