[pawn]#include <a_samp>
#define COLOR_GREEN 0x9EC73DAA
#define COLOR_YELLOW 0xFFFF00AA
new kapu;
new ajto;
new telepkapu;
public OnFilterScriptInit()
{
//kapu:
kapu = CreateObject(980,-2315.55004900,-2789.36328100,46.08017300,0.00000000,0.00000000,-56.25001695); //zárva
ajto = CreateObject(980,395.01840210,2550.44433594,18.27297974,0.00000000,0.00000000,3.99902344); //object(electricgate) (1)
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, \"/tedi-zar\", true) == 0)
{
MoveObject(kapu,-2315.55004900,-2789.36328100,46.08017300, 2.0);
return 1;
}
if(strcmp(cmdtext, \"/tedi-nyit\", true) == 0)
{
MoveObject(kapu,-2317.96826200,-2799.81127900,40.11505100, 2.0);
return 1;
}
return 0;
}
{
if (strcmp(cmdtext, \"/titkos\", true) == 0)
{
MoveObject(ajto, 405.26361084,2551.02441406,18.27297974, 2.5);
return 1;
}
if (strcmp (cmdtext, \"/titkoszar\", true) ==0)
{
MoveObject(ajto, 395.01840210,2550.44433594,18.27297974, 2.5);
return 1;
}
return 0;
}[/pawn]
errort ad ki
C:\\Users\\user\\Desktop\\kapuk.pwn(24) : warning 217: loose indentation
C:\\Users\\user\\Desktop\\kapuk.pwn(39) : warning 217: loose indentation
C:\\Users\\user\\Desktop\\kapuk.pwn(41) : error 055: start of function body without function header
C:\\Users\\user\\Desktop\\kapuk.pwn(42) : error 010: invalid function or declaration
C:\\Users\\user\\Desktop\\kapuk.pwn(45) : error 010: invalid function or declaration
C:\\Users\\user\\Desktop\\kapuk.pwn(47) : error 010: invalid function or declaration
C:\\Users\\user\\Desktop\\kapuk.pwn(50) : error 010: invalid function or declaration
C:\\Users\\user\\Desktop\\kapuk.pwn(52) : error 010: invalid function or declaration
C:\\Users\\user\\Desktop\\kapuk.pwn(21) : warning 204: symbol is assigned a value that is never used: \"ajto\"
C:\\Users\\user\\Desktop\\kapuk.pwn(21 -- 54) : warning 203: symbol is never used: \"telepkapu\"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
6 Errors.
pls help