08.10.2014, 19:47
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:
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();
}