17.01.2014, 17:57
That undefined symbol, cmdtext is because he wrote cdmtext on public OnPlayerCommandText(playerid, cmdtext[]) this line.
Also, you can't create an object without any functions.
Anyway i fixed your script and should work now
Also, you can't create an object without any functions.
Anyway i fixed your script and should work now
pawn Код:
#define FILTERSCRIPT
#include <a_samp>
#include <streamer>
#pragma tabsize 0
#define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, "")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1
new PortaoKoW1;
public OnFilterScriptInit()
{
PortaoKoW1 = CreateDynamicObject(980, 213.90, 1875.30, 13.15, 0.00, 0.00, 180.0);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/abrirbase", true) == 0)
{
MoveDynamicObject(PortaoKoW1, 213.90, 1875.30, 13.15, 2.0);
SendClientMessage(playerid,0xFF00FF,"A base estб aberta!");
}
return 1;
}

