11.01.2014, 20:26
(
Последний раз редактировалось LikeLikeLikeMe; 11.01.2014 в 21:31.
)
Код:
#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;
PortaoKoW1 = CreateDynamicObject(980, 213.90, 1875.30, 13.15, 0.00, 0.00, 180.0);
public OnPlayerCommandText(playerid, cdmtext[]) {
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;}
Код:
C:\Users\Matheus Alves\Desktop\SERVER\filterscripts\base_cmds.pwn(10) : error 010: invalid function or declaration C:\Users\Matheus Alves\Desktop\SERVER\filterscripts\base_cmds.pwn(12) : error 025: function heading differs from prototype C:\Users\Matheus Alves\Desktop\SERVER\filterscripts\base_cmds.pwn(13) : error 017: undefined symbol "cmdtext" C:\Users\Matheus Alves\Desktop\SERVER\filterscripts\base_cmds.pwn(18) : error 030: compound statement not closed at the end of file (started at line 13) Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.


