Macro samp_sdk::natives [] [src]

macro_rules! natives {
    [ $( { $name:expr, $func:ident } ),* ] => { ... };
    [ $( $name:expr => $func:ident ),* ] => { ... };
}

Clear macros that makes a new Vec<AMX_NATIVE_INFO>.

Examples

let natives = natives![
   { "ShowSomething", show_something },
   { "WhereIsPlayer", where_is_player }
];
amx.register(natives);