C:\\Users\\ptR\\Desktop\\samp\\gamemodes\\Sorompo.pwn(28) : error 010: invalid function or declarationC:\\Users\\ptR\\Desktop\\samp\\gamemodes\\Sorompo.pwn(32) : error 010: invalid function or declarationC:\\Users\\ptR\\Desktop\\samp\\gamemodes\\Sorompo.pwn(40) : error 055: start of function body without function headerC:\\Users\\ptR\\Desktop\\samp\\gamemodes\\Sorompo.pwn(42) : error 010: invalid function or declarationPawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 4 Errors.
#include <a_samp>#define FILTERSCRIPT#define COLOR_GREEN 0x33AA33AA#define COLOR_RED 0xFF0000AAforward GateClose();new sorompo1;new sorompo2;public OnFilterScriptInit(){sorompo1 = CreateObject(968, -191.5, 1004.0999755859, 19.60000038147, 0, 90, 358.75); ///barrier closedCreateObject(966,-215.39999390,1007.70001221,18.70000076,0.00000000,0.00000000,358.25000000); //object(bar_gatebar01) (2)CreateObject(966,-191.39999390,1004.09997559,18.79999924,0.00000000,0.00000000,178.75000000); //object(bar_gatebar01) (3)sorompo2 = CreateObject(968, -215.39999389648, 1007.700012207, 19.39999961853, 0, 270, 358.5); ///barrier closedreturn 1;}public OnPlayerCommandText(playerid, cmdtext[]){if (strcmp(\"/rendornyit\", cmdtext, true, 10) == 0)SetObjectRot(sorompo2, 0, 31, 358.75); // barrier open after commandSetTimer(\"GateClose\", 10000, 0);SendClientMessage(playerid, COLOR_GREEN,\"A sorompó kinyilt! Hamarosan bezárodik (10mp).\");return 1;}if (strcmp(\"/hatarnyit\", cmdtext, true, 10) == 0)SetObjectRot(sorompo1, 0, 335, 358.5); // barrier open after commandSetTimer(\"GateClose\", 10000, 0);SendClientMessage(playerid, COLOR_GREEN,\"A sorompó kinyilt! Hamarosan bezárodik (10mp).\");return 1;}public GateClose(){SetObjectRot(sorompo1, 0, 90, 358.75); // barrier closed after commandreturn 1;}{SetObjectRot(sorompo2, 0, 270, 358.5); // barrier closed after commandreturn 1;}
public OnPlayerCommandText(playerid, cmdtext[]){if (strcmp(\"/rendornyit\", cmdtext, true, 10) == 0){SetObjectRot(sorompo2, 0, 31, 358.75); // barrier open after commandSetTimer(\"GateClose\", 10000, 0);SendClientMessage(playerid, COLOR_GREEN,\"A sorompó kinyilt! Hamarosan bezárodik (10mp).\");return 1;}if (strcmp(\"/hatarnyit\", cmdtext, true, 10) == 0){SetObjectRot(sorompo1, 0, 335, 358.5); // barrier open after commandSetTimer(\"GateClose\", 10000, 0);SendClientMessage(playerid, COLOR_GREEN,\"A sorompó kinyilt! Hamarosan bezárodik (10mp).\");return 1;}return 0;}public GateClose(){SetObjectRot(sorompo1, 0, 90, 358.75); // barrier closed after commandreturn 1;SetObjectRot(sorompo2, 0, 270, 358.5); // barrier closed after commandreturn 1;}
C:\\Users\\ptR\\Desktop\\samp\\gamemodes\\Sorompo.pwn(43) : warning 225: unreachable codePawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 1 Warning.
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp(\"/rendornyit\", cmdtext, true, 10) == 0) { SetObjectRot(sorompo2, 0, 31, 358.75); // barrier open after command SetTimer(\"GateClose\", 10000, 0); SendClientMessage(playerid, COLOR_GREEN,\"A sorompó kinyilt! Hamarosan bezárodik (10mp).\"); return 1; } if (strcmp(\"/hatarnyit\", cmdtext, true, 10) == 0) { SetObjectRot(sorompo1, 0, 335, 358.5); // barrier open after command SetTimer(\"GateClose\", 10000, 0); SendClientMessage(playerid, COLOR_GREEN,\"A sorompó kinyilt! Hamarosan bezárodik (10mp).\"); return 1; } return 0; } public GateClose() { SetObjectRot(sorompo1, 0, 90, 358.75); // barrier closed after command SetObjectRot(sorompo2, 0, 270, 358.5); // barrier closed after command }
#include <a_samp>#define FILTERSCRIPT#define COLOR_GREEN 0x33AA33AA#define COLOR_RED 0xFF0000AAforward GateClose();forward GateOpen();new sorompo1;new sorompo2;public OnFilterScriptInit(){sorompo1 = CreateObject(968, -191.5, 1004.0999755859, 19.60000038147, 0, 90, 358.75); ///barrier closedCreateObject(966,-215.39999390,1007.70001221,18.70000076,0.00000000,0.00000000,358.25000000); //object(bar_gatebar01) (2)CreateObject(966,-191.39999390,1004.09997559,18.79999924,0.00000000,0.00000000,178.75000000); //object(bar_gatebar01) (3)sorompo2 = CreateObject(968, -215.39999389648, 1007.700012207, 19.39999961853, 0, 270, 358.5); ///barrier closedreturn 1;}public OnPlayerCommandText(playerid, cmdtext[]){if (strcmp(\"/rendornyit\", cmdtext, true, 10) == 0){SetObjectRot(sorompo2, 0, 31, 358.75); // barrier open after commandSetTimer(\"GateClose\", 10000, 0);SendClientMessage(playerid, COLOR_GREEN,\"A sorompó kinyilt! Hamarosan bezárodik (10mp).\");return 1;}if (strcmp(\"/hatarnyit\", cmdtext, true, 10) == 0){SetObjectRot(sorompo1, 0, 335, 358.5); // barrier open after commandSetTimer(\"GateOpen\", 10000, 0);SendClientMessage(playerid, COLOR_GREEN,\"A sorompó kinyilt! Hamarosan bezárodik (10mp).\");return 1;}return 0;}public GateClose(){SetObjectRot(sorompo2, 0, 90, 358.75); // barrier closed after commandreturn 1;}public GateOpen(){SetObjectRot(sorompo1, 0, 270, 358.5); // barrier closed after commandreturn 1;}