[sampgdk] Problem
#1

Hello, I have a problem with the sampgdk.
I will only create a plugin with the gdk, not a gamemode.
Everytime I get "Script[gamemodes/bare.amx]: Run time error 19: "File or function is not found"


Source:
pawn Code:
#include <stdio.h>
#include <string.h>

#include <sampgdk/a_players.h>
#include <sampgdk/a_samp.h>
#include <sampgdk/core.h>
#include <sampgdk/sdk.h>

#define AMX_DECLARE_NATIVE(native) \
    cell AMX_NATIVE_CALL native(AMX* amx, cell* params)

using sampgdk::logprintf;

AMX_DECLARE_NATIVE(CheckUser)
{
    if (!IsPlayerConnected(params[1])) return printf("The user %d isn't connected !", params[1]), 1;
    char name[25];
    GetPlayerName(params[1], name, 25);
    printf("This was printed from the Test plugin! Yay %s!", name);
    return 1;
}

PLUGIN_EXPORT bool PLUGIN_CALL OnPlayerConnect(int playerid) {
    return true;
}

PLUGIN_EXPORT unsigned int PLUGIN_CALL Supports() {
    return sampgdk::Supports() | SUPPORTS_PROCESS_TICK;
}

PLUGIN_EXPORT bool PLUGIN_CALL Load(void **ppData) {
    return sampgdk::Load(ppData);
}

PLUGIN_EXPORT void PLUGIN_CALL Unload() {
    sampgdk::Unload();
}
Reply


Messages In This Thread
[sampgdk] Problem - by Nils94 - 08.10.2014, 19:47
Re: [sampgdk] Problem - by xeeZ - 08.10.2014, 21:30

Forum Jump:


Users browsing this thread: 1 Guest(s)