logprintf("Creating textdraw... %.1f, %.1f, %s", tdPosX, tdPosY, tdString);
g_Invoke->callNative(&PAWN::TextDrawCreate, params[1],params[2],params[2]);
logprintf("Creating textdraw... %.1f, %.1f, %s", tdPosX, tdPosY, tdString);
Console input: loadfs ap 10:40:33 Creating textdraw... 120.0, 12.0, Testuje xD 10:40:33 [debug] Server crashed while executing ap.amx 10:40:33 [debug] AMX backtrace: 10:40:33 [debug] #0 native StworzCreate () [0f2116e5] from TDAPI.DLL 10:40:33 [debug] #1 0000004c in public OnFilterScriptInit () at ap.pwn:9 10:40:33 [debug] System backtrace: 10:40:33 [debug] #0 0f213e15 in Invoke::callNative () from D:\GTA\serwertest\plugins\TDAPI.DLL 10:40:33 [debug] #1 0f211f88 in DrawCreate () from D:\GTA\serwertest\plugins\TDAPI.DLL 10:40:33 [debug] #2 004010b6 in ?? () from D:\GTA\serwertest\samp-server.exe 10:40:33 [debug] #3 0f4c39e2 in ?? () from D:\GTA\serwertest\plugins\crashdetect.DLL 10:40:33 [debug] #4 0f4c5e26 in ?? () from D:\GTA\serwertest\plugins\crashdetect.DLL 10:40:33 [debug] #5 0f4bbf3f in ?? () from D:\GTA\serwertest\plugins\crashdetect.DLL 10:40:33 [debug] #6 0f4c3a0e in ?? () from D:\GTA\serwertest\plugins\crashdetect.DLL 10:40:33 [debug] #7 0046a258 in ?? () from D:\GTA\serwertest\samp-server.exe 10:40:33 [debug] #8 759a1719 in ?? () from C:\Windows\syswow64\MSCTF.dll 10:40:33 [debug] #9 00496f39 in ?? () from D:\GTA\serwertest\samp-server.exe 10:40:33 [debug] #10 0048545e in ?? () from D:\GTA\serwertest\samp-server.exe 10:40:33 [debug] #11 00487653 in ?? () from D:\GTA\serwertest\samp-server.exe 10:40:33 [debug] #12 0231fd8c in ?? ()
|
Trying to make the creation of TextDraw but the server crash
Code:
logprintf("Creating textdraw... %.1f, %.1f, %s", tdPosX, tdPosY, tdString);
g_Invoke->callNative(&PAWN::TextDrawCreate, params[1],params[2],params[2]);
logprintf("Creating textdraw... %.1f, %.1f, %s", tdPosX, tdPosY, tdString);
Code:
Console input: loadfs ap 10:40:33 Creating textdraw... 120.0, 12.0, Testuje xD 10:40:33 [debug] Server crashed while executing ap.amx 10:40:33 [debug] AMX backtrace: 10:40:33 [debug] #0 native StworzCreate () [0f2116e5] from TDAPI.DLL 10:40:33 [debug] #1 0000004c in public OnFilterScriptInit () at ap.pwn:9 10:40:33 [debug] System backtrace: 10:40:33 [debug] #0 0f213e15 in Invoke::callNative () from D:\GTA\serwertest\plugins\TDAPI.DLL 10:40:33 [debug] #1 0f211f88 in DrawCreate () from D:\GTA\serwertest\plugins\TDAPI.DLL 10:40:33 [debug] #2 004010b6 in ?? () from D:\GTA\serwertest\samp-server.exe 10:40:33 [debug] #3 0f4c39e2 in ?? () from D:\GTA\serwertest\plugins\crashdetect.DLL 10:40:33 [debug] #4 0f4c5e26 in ?? () from D:\GTA\serwertest\plugins\crashdetect.DLL 10:40:33 [debug] #5 0f4bbf3f in ?? () from D:\GTA\serwertest\plugins\crashdetect.DLL 10:40:33 [debug] #6 0f4c3a0e in ?? () from D:\GTA\serwertest\plugins\crashdetect.DLL 10:40:33 [debug] #7 0046a258 in ?? () from D:\GTA\serwertest\samp-server.exe 10:40:33 [debug] #8 759a1719 in ?? () from C:\Windows\syswow64\MSCTF.dll 10:40:33 [debug] #9 00496f39 in ?? () from D:\GTA\serwertest\samp-server.exe 10:40:33 [debug] #10 0048545e in ?? () from D:\GTA\serwertest\samp-server.exe 10:40:33 [debug] #11 00487653 in ?? () from D:\GTA\serwertest\samp-server.exe 10:40:33 [debug] #12 0231fd8c in ?? () |
PLUGIN_EXPORT void PLUGIN_CALL ProcessTick()
{
static int tick = 0;
tick++;
logprintf("%d xd", tick);
}
|
Help me please,i already put on Module definition file plugin.def but when i debug it show me LINK : fatal error LNK1104: cannot open file 'plugin.def'
|
EXPORTS ; AMX Supports Load Unload AmxLoad AmxUnload

|
1> Creating library C:\Users\PC\Desktop\plugin\Debug\plugin.lib and object C:\Users\PC\Desktop\plugin\Debug\plugin.exp
1>LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt ![]() |
|
Any idea, why the server crashes on start up, when i use "struct" in c++?
|
[11:46:33] [debug] Native backtrace: [11:46:33] [debug] #0 536120f1 in ?? () from C:\Users\Adam\Downloads\samp03z_svr_RC1-2_win32\plugins\streamer.DLL [11:46:33] [debug] #1 53361afe in AmxLoad () from C:\Users\Adam\Downloads\samp03z_svr_RC1-2_win32\plugins\Inventory.DLL [11:46:33] [debug] #2 00469205 in ?? () from C:\Users\Adam\Downloads\samp03z_svr_RC1-2_win32\samp-server.exe
struct items {
int itemid;
};
struct items example;
PLUGIN_EXPORT bool PLUGIN_CALL Load(void **ppData)
{
pAMXFunctions = ppData[PLUGIN_DATA_AMX_EXPORTS];
logprintf = (logprintf_t)ppData[PLUGIN_DATA_LOGPRINTF];
logprintf("Inventory plugin loaded");
example.itemid = 5;
return 1;
}
int CheckAimers()
{
int i;
for (i = 0; i < MaxPlayerId; i++)
{
logprintf( "witam [%d", g_Invoke->callNative( &PAWN::IsPlayerConnected, i ) );
... 16:30:40 witam [0 16:30:40 witam [0 16:30:40 witam [0 16:30:40 witam [0 16:30:40 witam [0 16:30:40 witam [0 16:30:40 witam [0 16:30:40 witam [0 16:30:40 witam [0 16:30:40 witam [0
|
While i added the filter SDK and his files to the Visual Studio it tells me when i am compiling that there is no such file or directory : SDK\amx\amx.h
How can i fix this? |