Macro samp_sdk::set_string
[−]
[src]
macro_rules! set_string { ($string:expr, $address:expr, $size:expr) => { ... }; }
Sets a string to physical address.
Examples
// native: rot13(const source[], dest[], size=sizeof(dest)); define_native!(n_rot13, source: String, dest_ptr: ref Cell, size: usize); fn n_rot13(&self, amx: &AMX, source: String, dest_ptr: &mut Cell, size: usize) -> AmxResult<Cell> { let roted = rot13(&source); set_string!(roted, dest_ptr, size); Ok(0) }