Moving gates problem ! It's FilterScript !
#1

Hi..I made a filterscript with 1 moving gates ... But now i wanna add another moving gate into that filterscript ! So... this is my filterscript and i will post my errors too !

pawn Код:
#include <a_samp>
new gate;
new Pwla;

#define COLOR_YELLOW 0xFFFF00AA
public OnFilterScriptInit ()
{
  gate = CreateObject(971,-3361.159,28.543,7.073,0.0,0.0,-90.000);
    Pwla = CreateObject(975,1245.174,-767.056,92.753,0.0,0.0,0.0);
  return 1;
}

public OnPlayerCommandText (playerid, cmdtext[])
{
  if (strcmp(cmdtext, "/adminopen2", true) == 0)
  {
    MoveObject(gate, -3361.159,28.543,13.648,3);
    SendClientMessage(playerid, COLOR_YELLOW,"Welcome to V.I.P Base !");
    return 1;
  }
  if (strcmp(cmdtext, "/adminclose2", true) == 0)
  {
    MoveObject(gate, -3361.159,28.543,7.073,3);
    SendClientMessage(playerid, COLOR_YELLOW,"GoodBye and come back to V.I.P base");
    return 1;
  }

return 0;
}

{
  if (strcmp(cmdtext, "/mdo", true) == 0)
  {
    MoveObject(gate, 1245.174,-767.056,98.028,3);
    SendClientMessage(playerid, COLOR_YELLOW,"Hello");
    return 1;
  }
  if (strcmp(cmdtext, "/mdc", true) == 0)
  {
    MoveObject(gate, 174,-767.056,92.753,3);
    SendClientMessage(playerid, COLOR_YELLOW,"GoodBye");
    return 1;
  }

return 0;
}
And these are my errors :
pawn Код:
C:\SAMPSE~1\FILTER~1\Agates.pwn(28) : warning 217: loose indentation
C:\SAMPSE~1\FILTER~1\Agates.pwn(31) : error 055: start of function body without function header
C:\SAMPSE~1\FILTER~1\Agates.pwn(32) : error 010: invalid function or declaration
C:\SAMPSE~1\FILTER~1\Agates.pwn(36) : error 010: invalid function or declaration
C:\SAMPSE~1\FILTER~1\Agates.pwn(38) : error 010: invalid function or declaration
C:\SAMPSE~1\FILTER~1\Agates.pwn(42) : error 010: invalid function or declaration
C:\SAMPSE~1\FILTER~1\Agates.pwn(45) : error 010: invalid function or declaration
C:\SAMPSE~1\FILTER~1\Agates.pwn(9) : warning 204: symbol is assigned a value that is never used: "Pwla"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


6 Errors.
Please explain what have i dont wrong and tell me please !
Reply


Messages In This Thread
Moving gates problem ! It's FilterScript ! - by Kirchhoff - 06.06.2009, 05:22
Re: Moving gates problem ! It's FilterScript ! - by farse - 06.06.2009, 05:29
Re: Moving gates problem ! It's FilterScript ! - by Kirchhoff - 06.06.2009, 05:30
Re: Moving gates problem ! It's FilterScript ! - by Kirchhoff - 06.06.2009, 05:32
Re: Moving gates problem ! It's FilterScript ! - by Kirchhoff - 06.06.2009, 05:35

Forum Jump:


Users browsing this thread: 2 Guest(s)