Ajudem-me nuns errors do pawno!
#3

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

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;
}
Reply


Messages In This Thread
Help-me! Pawno Errors: 010, 025, 017, 030... - by LikeLikeLikeMe - 11.01.2014, 20:26
Re: Help-me! Pawno Errors: 010, 025, 017, 030... - by gtascripterultimate - 17.01.2014, 17:31
Re: Ajudem-me nuns errors do pawno! - by iOxide - 17.01.2014, 17:57

Forum Jump:


Users browsing this thread: 1 Guest(s)