new kapu;public OnFilterScriptInit(){ kapu = CreateObject(969,390.82589722,2550.95092773,15.54160690,0.00000000,0.00000000,4.00000000); //object(electricgate) (1) return 1;}public OnPlayerCommandText(playerid, cmdtext[]){if(strcmp(cmdtext, \"/kapunyit\", true) == 0){ MoveObject(kapu, 390.82589722,2550.95092773,15.54160690, 2.5); return 1;}if(strcmp(cmdtext, \"/kapuzár\", true) == 0){ MoveObject(kapu, 390.82589722,2550.95092773,15.54160690, 2.5); return 1;}return 1;}
C:\\Users\\user\\Desktop\\Norbi\\policekapu.pwn(18) : error 030: compound statement not closed at the end of file (started at line 18)Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 1 Error.
[pawn]new kapu;public OnFilterScriptInit(){ kapu = CreateObject(969,390.82589722,2550.95092773,15.54160690,0.00000000,0.00000000,4.00000000); //object(electricgate) (1) return 1;}public OnPlayerCommandText(playerid, cmdtext[]){if(strcmp(cmdtext, \"/kapunyit\", true) == 0){ MoveObject(kapu, 390.82589722,2550.95092773,15.54160690, 2.5); return 1;}if(strcmp(cmdtext, \"/kapuzár\", true) == 0){ MoveObject(kapu, 390.82589722,2550.95092773,15.54160690, 2.5); return 1;}return 0;}[/pawn]