Macro samp_sdk::exec_public [] [src]

macro_rules! exec_public {
    ($amx:ident, $name:expr; $($args:tt)*) => { ... };
}

Finds a public and executes AMX::exec with given arguments.

Examples

fn native(&self, amx: &AMX) -> AmxResult<Cell> {
    let old_name = String::from("Old_Name");
    let new_name = String::from("Name_Surname");
    exec_public!(amx, "OnPlayerNameChanged"; old_name => string, new_name => string); 
}