03.12.2011, 10:22
What is wrong with this script?
I get these errors:
PHP код:
#define FILTERSCRIPT
#include <a_samp>
#if defined FILTERSCRIPT
#include <zcmd>
new mcleod;
mcleod = Gate = CreateObject(969, 2464.1450195313, -1663.3859863281, 12.3046875, 0, 0, 87.912261962891); // Closed Gate
public OnPlayerCommandText();
if(strcmp(cmd, "/mcleodgateopen", true) == 0) { // Edit the /eup to your elevator command.
MoveObject(mcleod,2463.7080078125,-1673.7354736327,12.3046875,2.00); // moving gate
SendClientMessage(playerid, COLOR_RED, "The gate is opening."); // You dont alwas have to put this in, delete if wanted.
return 1;
}
if(strcmp(cmd, "/mcleodgateclose", true) == 0) { // Same deal as before
MoveObject(mcleod,2464.1450195313,-1663.3859863281,12.3046875.-2.00); // Same deal as before
SendClientMessage(playerid, COLOR_RED, "The gate is closing."); // Same deal as before
return 1;
}
#endif
PHP код:
C:\Users\Thomas\Desktop\gates.pwn(11) : error 010: invalid function or declaration
C:\Users\Thomas\Desktop\gates.pwn(15) : error 010: invalid function or declaration
C:\Users\Thomas\Desktop\gates.pwn(18) : error 010: invalid function or declaration
C:\Users\Thomas\Desktop\gates.pwn(20) : error 010: invalid function or declaration
C:\Users\Thomas\Desktop\gates.pwn(23) : error 010: invalid function or declaration
C:\Users\Thomas\Desktop\gates.pwn(26) : warning 203: symbol is never used: "mcleod"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
5 Errors.