LFN icon indicating copy to clipboard operation
LFN copied to clipboard

Long Function Names for SA-MP

Long Function Names v1.0

LFN adds SA-MP support for AMX programs having public names longer than 31 characters. Native functions, public functions, and public variables can have unlimited length (i.e. up to 65535 characters) with this plugin.

Compiler support is needed to allow functions with long names. Check out my fork for increased maximum function length.

Installation

Download the latest release for your platform to the "plugins" directory and add "LFN" (or "LFN.so" on Linux) to the plugins line in server.cfg.

Building

Use Visual Studio to build the project on Windows, or make on Linux.

Example

#include <a_samp>

forward VeryLongPublicFunctionNameExceeding31Characters();
public VeryLongPublicFunctionNameExceeding31Characters()
{
    print("hello!");
}

public OnFilterScriptInit()
{
    CallLocalFunction("VeryLongPublicFunctionNameExceeding31Characters", "");
}