[][src]Trait samp::amx::AmxExt

pub trait AmxExt {
    fn ident(&self) -> AmxIdent;
}

Extended functional of an Amx.

Required methods

fn ident(&self) -> AmxIdent

Get an identifier of an Amx.

Example

use samp::prelude::*;

#[native(name = "A")]
fn native_a(&mut self, amx: &Amx) -> AmxResult<bool> {
    let ident = amx.ident();
    // now you can use ident to get this Amx later by samp::amx::get
    Ok(true)
}
Loading content...

Implementors

impl AmxExt for Amx[src]

Loading content...