// hátsóCreateObject(968,-1701.5000000,687.7000122,24.7000008,0.0000000,90.0000000,270.5000000); //object(barrierturn) (1) zarva hatsoCreateObject(968,-1701.5000000,687.6992188,24.7000008,0.0000000,33.0000000,270.4998779); //object(barrierturn) (1) nyitva hatso// elsõCreateObject(968,-1572.1992188,658.6992188,6.8000002,0.0000000,270.0000000,270.0000000); //object(barrierturn) (2) zarva elsoCreateObject(968,-1572.1992188,658.6992188,6.8000002,0.0000000,330.0000000,270.0000000); //object(barrierturn) (2) nyitva elso
new hatsosorompo;new elsosorompo;hatsosorompo = CreateObject(968,-1701.5000000,687.7000122,24.7000008,0.0000000,90.0000000,270.5000000);elsosorompo = CreateObject(968,-1572.1992188,658.6992188,6.8000002,0.0000000,270.0000000,270.0000000);public OnPlayerCommandText(playerid, cmdtext[]){if (strcmp(\"/elsozar\", cmdtext, true, 10) == 0) { MoveObject(elsosorompo,-1572.1992188,658.6992188,6.8000002,0.0000000,270.0000000,270.0000000);//This will move the gate } return 1; }if (strcmp(\"/elsonyit\", cmdtext, true, 10) == 0) { MoveObject(elsosorompo,-1572.1992188,658.6992188,6.8000002,0.0000000,330.0000000,270.0000000);//This will move the gate } return 1; } if (strcmp(\"/hatsozar\", cmdtext, true, 10) == 0) { MoveObject(hatsosorompo,-1701.5000000,687.6992188,24.7000008,0.0000000,33.0000000,270.4998779);//This will move the gate } return 1; } if (strcmp(\"/hatsonyit\", cmdtext, true, 10) == 0) { MoveObject(hatsosorompo,-1701.5000000,687.7000122,24.7000008,0.0000000,90.0000000,270.5000000);//This will move the gate back to the old position } return 1; }
// This is a comment// uncomment the line below if you want to write a filterscript//#define FILTERSCRIPT#include <a_samp>new hatsosorompo;new elsosorompo;hatsosorompo = CreateObject(968,-1701.5000000,687.7000122,24.7000008,0.0000000,90.0000000,270.5000000);elsosorompo = CreateObject(968,-1572.1992188,658.6992188,6.8000002,0.0000000,270.0000000,270.0000000);#if defined FILTERSCRIPTpublic OnFilterScriptInit(){print(\"\\n--------------------------------------\");print(\" Blank Filterscript by your name here\");print(\"--------------------------------------\\n\");return 1;}public OnFilterScriptExit(){return 1;}#elsemain(){print(\"\\n----------------------------------\");print(\" Blank Gamemode by your name here\");print(\"----------------------------------\\n\");}#endifpublic OnPlayerCommandText(playerid, cmdtext[]){if (strcmp(\"/elsozar\", cmdtext, true, 10) == 0) { MoveObject(elsosorompo,-1572.1992188,658.6992188,6.8000002,0.0000000,270.0000000,270.0000000,2.5);//This will move the gate } return 1; }if (strcmp(\"/elsonyit\", cmdtext, true, 10) == 0) { MoveObject(elsosorompo,-1572.1992188,658.6992188,6.8000002,0.0000000,330.0000000,270.0000000,2.5);//This will move the gate } return 1; } if (strcmp(\"/hatsozar\", cmdtext, true, 10) == 0) { MoveObject(hatsosorompo,-1701.5000000,687.6992188,24.7000008,0.0000000,33.0000000,270.4998779,2.5);//This will move the gate } return 1; } if (strcmp(\"/hatsonyit\", cmdtext, true, 10) == 0) { MoveObject(hatsosorompo,-1701.5000000,687.7000122,24.7000008,0.0000000,90.0000000,270.5000000,2.5);//This will move the gate back to the old position } return 1; }return 0;}
C:\\Users\\Peter\\Desktop\\Sa-MP\\filterscripts\\kapuk.pwn(9) : error 010: invalid function or declarationC:\\Users\\Peter\\Desktop\\Sa-MP\\filterscripts\\kapuk.pwn(44) : warning 217: loose indentationC:\\Users\\Peter\\Desktop\\Sa-MP\\filterscripts\\kapuk.pwn(46) : error 010: invalid function or declarationC:\\Users\\Peter\\Desktop\\Sa-MP\\filterscripts\\kapuk.pwn(50) : error 010: invalid function or declarationC:\\Users\\Peter\\Desktop\\Sa-MP\\filterscripts\\kapuk.pwn(52) : error 010: invalid function or declarationC:\\Users\\Peter\\Desktop\\Sa-MP\\filterscripts\\kapuk.pwn(56) : error 010: invalid function or declarationC:\\Users\\Peter\\Desktop\\Sa-MP\\filterscripts\\kapuk.pwn(58) : error 010: invalid function or declarationC:\\Users\\Peter\\Desktop\\Sa-MP\\filterscripts\\kapuk.pwn(62) : error 010: invalid function or declarationC:\\Users\\Peter\\Desktop\\Sa-MP\\filterscripts\\kapuk.pwn(64) : error 010: invalid function or declarationC:\\Users\\Peter\\Desktop\\Sa-MP\\filterscripts\\kapuk.pwn(67) : warning 203: symbol is never used: \"hatsosorompo\"Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 8 Errors.
#include <a_samp>new hatsosorompo;new elsosorompo;public OnFilterScriptInit() {hatsosorompo = CreateObject(968,-1701.5000000,687.7000122,24.7000008,0.0000000,90.0000000,270.5000000);elsosorompo = CreateObject(968,-1572.1992188,658.6992188,6.8000002,0.0000000,270.0000000,270.0000000);return 1;}public OnPlayerCommandText(playerid, cmdtext[]){ if (strcmp(\"/elsozar\", cmdtext, true, == 0) return MoveObject(elsosorompo,-1572.1992188,658.6992188,6.8000002,0.0000000,270.0000000,270.0000000,2.5);//This will move the gate if (strcmp(\"/elsonyit\", cmdtext, true, 9) == 0) return MoveObject(elsosorompo,-1572.1992188,658.6992188,6.8000002,0.0000000,330.0000000,270.0000000,2.5);//This will move the gate if (strcmp(\"/hatsozar\", cmdtext, true, 9) == 0) return MoveObject(hatsosorompo,-1701.5000000,687.6992188,24.7000008,0.0000000,33.0000000,270.4998779,2.5);//This will move the gate if (strcmp(\"/hatsonyit\", cmdtext, true, 10) == 0) return MoveObject(hatsosorompo,-1701.5000000,687.7000122,24.7000008,0.0000000,90.0000000,270.5000000,2.5);//This will move the gate back to the old position return 0;}