Code:
#include <amxmodx>
public plugin_init() {
register_plugin("Test Plugin 8", "", "[ --{-@ ]");
new array[1][1];
test(array);
test(array, 2);
}
stock test(array2d[][], optionalvalue=0) {
server_print("%d", array2d[0][0]);
server_print("Optional: %d", optionalvalue);
}
#1 & #2 shown in the example.
Not really sure what you mean by #3 but there are 3 types of data. Float, boolean and integers. Everything else is one of the previous with a custom tag to prevent misuse. In other words, you can pass anything.
__________________