[Ajuda] Ajuda, plugin crasher :/
#1

Olб pessoal, bom estou treinando um pouco C++.
Estou tentando fazer um pequeno Plugin, nгo a nada de anormal com o code no C++.
O estranho й que a utilizaзгo do mesmo faz crashar:
Code do plugin:

pawn Код:
static cell AMX_NATIVE_CALL CriarZona(AMX* amx, cell* params)
{
    float PosX = amx_ctof(params[1]);
    float PosY = amx_ctof(params[2]);
    float MPosX = amx_ctof(params[3]);
    float MPosY = amx_ctof(params[4]);

    int iD = GangZoneCreate(PosX, PosY, MPosX, MPosY);

    return iD;
}
include:

pawn Код:
#pragma library Plugin

#include <a_samp>

native CriarZona(Float: MinX, Float: MinY, Float: MaxX, Float: MaxY);

//usando           CriarZona(0.0, 0.0, 0.0, 0.0);
crash:

pawn Код:
[21:01:09] [debug] Server crashed while executing brincs.amx
[21:01:09] [debug] Backtrace (most recent call first):
[21:01:09] [debug] #0  ???????? in native CriarZona () from Plugin.DLL
[21:01:09] [debug] #1  00000040 in main () from brincs.amx
Bom agradeзo deste jб.
Abraзos !
Reply


Messages In This Thread
Ajuda, plugin crasher :/ - by AmericanStyle'™ - 07.02.2013, 21:58
Re: Ajuda, plugin crasher :/ - by AmericanStyle'™ - 08.02.2013, 18:37
Re: Ajuda, plugin crasher :/ - by MorreJa - 08.02.2013, 18:41

Forum Jump:


Users browsing this thread: 1 Guest(s)