docs.rs failed to build samp-sdk-0.8.3
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
samp-sdk-0.8.4
SA:MP SDK
Pretty cool and beautiful bindings for SA:MP SDK. Read Get Started wiki page.
Features
Hides most of type coercion. You don't need make a cell
type as a String
or other things yourself.
Macros:
new_plugin!
that defines a plugin and exports functions.define_native!
defines a native and parses arguments.log!
callslogprinft
funciton.natives!
makes a vec of your natives.get_string!
andget_array!
convert pointers to aslice
or aString
.set_string!
sets a string to an AMX by a physical address.
Useful macros
Make a new plugin
define_native!;
new_plugin!;
// Also you can make a plugin with ProcessTick support.
new_plugin!
Define a native function.
Hides arguments parsing inside the macro.
All you need are to define a method function_name
in your new plugin with given arguments.
// native: FunctionName(int_arg, &float_arg);
define_native!;
// native: WithoutArguments();
define_native;
Call natives and public functions.
// Broadcast to all subscribers that a user have changed his name.
TODO List
- Develop a new samp-plugin-example that shows all good points of this samp-sdk.
Documentation
Here.
Plugin example
Here you can see such a beautiful example of the samp-sdk.