C:\\Users\\RTMate\\Desktop\\resii.pwn(221) : error 036: empty statementC:\\Users\\RTMate\\Desktop\\resii.pwn(233) : error 036: empty statementPawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase2 Errors. [/quote]Dupla hozzászólás automatikusan összefûzve. ( 2014. április 19. - 08:03:32 )#include <a_samp>#pragma tabsize 0#tryinclude <timerfix> // If you dont have the timer fix include I recommend it cause the timers will be more accurate.#define FILTERSCRIPT#if defined FILTERSCRIPT#define Color_Red 0xFF0000FF#define COLOR_BLUE 0x00FFFFFF#define Color_Yellow 0xFFFF00FF//--------------------------------------------------------------------------------------------------------------------------------------//====================================================================================================================================== //RESTART CONFIG#define TIME 1441 //Edit this for defalt time amount 1441=24 hours. Being in a filterscript the timer is slower so could make it about 900 minutes#define ServerName \"Your server name\" //Define your server name here. //\"0\" means password is getting removed, keep 0 unless your server has a password all the time then put \"yourserverpass\"#define WarningMessage \"Please Do Not start any missions untill after restart!\" //Put your warning message here. If you dont want any chat warning put \"\" // Here Choose what warning limit you want!! Enable/Disable warning time. Only have one true or you will have multiple timers going at once.#define Enable10Min true#define Enable5Min false#define Enable2Min false //Now that you set the config go to the bottom of the script and remove the last 3 lines and enjoy.#define Build \"V 1.0.5\"//======================================================================================================================================//--------------------------------------------------------------------------------------------------------------------------------------//**************************************************************************************************************************************new Timer1;new Timer2;new Timer3;new Timer4;new Timer5;new Timer6;new Timer7;new Timer8;new Timer9;public OnFilterScriptInit(){print(\"RCon Szerver Újrainditó Script \"); print(\"Eredeti Készitõ: \'nickdodd25\'\"); print(\"Forditõ,szerksztõ: \'KILAKIKITT\' \"); #if Enable10Min == true Timer1 = SetTimer(\"Timer_10_MinWarning\", 1000 * 60* TIME, true); #endif #if Enable5Min == true Timer1 = SetTimer(\"Timer_5_MinWarning\", 1000 * 60* TIME, true); #endif #if Enable2Min == true Timer1 = SetTimer(\"Timer_2_MinWarning\", 1000 * 60* TIME, true); #endif return 1;}public OnFilterScriptExit(){ return 1;}#elsemain(){print(\"RCon Szerver Újrainditó Script \"); print(\"Eredeti Készitõ: \'nickdodd25\'\"); print(\"Forditõ,szerksztõ: \'KILAKIKITT\' \"); print(\"Köszönjük,hogy használtad!\");#endifpublic OnPlayerCommandText(playerid, cmdtext[]){ if (strcmp(\"/rh\", cmdtext, true, 7) == 0) { if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,Color_Red,\"{FFFF00}Nem vagy RCon Admin!\"); SendClientMessage(playerid,Color_Yellow,\" {00FFEA} RCon ADmin SCript - Parancsok \"); SendClientMessage(playerid,Color_Yellow,\"{FF0000} | /2min | /5min | /10min | /stoprestart | /24hour | \"); SendClientMessage(playerid,Color_Yellow,\"{00FF00} | /karb | /donemaintain | \"); return 1; } if (strcmp(\"/stoprestart\", cmdtext, true, 12) == 0) { if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,Color_Red,\"{FFFF00}Nem vagy RCon Admin!\"); KillTimer(Timer1); KillTimer(Timer2); KillTimer(Timer3); KillTimer(Timer4); KillTimer(Timer5); KillTimer(Timer6); KillTimer(Timer7); KillTimer(Timer8); KillTimer(Timer9); new pName[MAX_PLAYER_NAME], string[56]; GetPlayerName(playerid, pName, sizeof(pName)); format(string, sizeof(string), \"{FF0000}[ADMIN]:{00FF00} \'%s\' leállitotta a szerver újrainditást!\", pName); SendClientMessageToAll(COLOR_BLUE, string); print(string); new HostCommand1[128]; format(HostCommand1, 128, \"hostname %s\", ServerName); SendRconCommand(HostCommand1); return 1; } if (strcmp(\"/2min\", cmdtext, true, 5) == 0) { if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,Color_Red, \"{FFFF00}Nem vagy RCon Admin!\"); KillTimer(Timer1); KillTimer(Timer2); KillTimer(Timer3); KillTimer(Timer4); KillTimer(Timer5); KillTimer(Timer6); KillTimer(Timer7); KillTimer(Timer8); KillTimer(Timer9); Timer5 = SetTimer(\"Timer_2_MinWarning\", 1000, false); new pName[MAX_PLAYER_NAME], string[56]; GetPlayerName(playerid, pName, sizeof(pName)); format(string, sizeof(string), \"{FF0000}[ADMIN]:{00FF00} \'%s\' szerver újrainditást inditott,{FFFF00}Hátralévõ idõ: 2 Perc! \", pName); SendClientMessageToAll(COLOR_BLUE, string); print(string); return 1; } if (strcmp(\"/5min\", cmdtext, true, 5) == 0) { if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,Color_Red, \"{FFFF00}Nem vagy RCon Admin!\"); KillTimer(Timer1); KillTimer(Timer2); KillTimer(Timer3); KillTimer(Timer4); KillTimer(Timer5); KillTimer(Timer6); KillTimer(Timer7); KillTimer(Timer8); KillTimer(Timer9); Timer6 = SetTimer(\"Timer_5_MinWarning\", 1000, false); new pName[MAX_PLAYER_NAME], string[56]; GetPlayerName(playerid, pName, sizeof(pName)); format(string, sizeof(string), \"{FF0000}[ADMIN]:{00FF00} \'%s\' szerver újrainditást inditott,{FFFF00}Hátralévõ idõ: 5 Perc!\", pName); SendClientMessageToAll(COLOR_BLUE, string); print(string); return 1; } if (strcmp(\"/10min\", cmdtext, true, 6) == 0) { if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,Color_Red, \"{FFFF00}Nem vagy RCon Admin!\"); KillTimer(Timer1); KillTimer(Timer2); KillTimer(Timer3); KillTimer(Timer4); KillTimer(Timer5); KillTimer(Timer6); KillTimer(Timer7); KillTimer(Timer8); KillTimer(Timer9); Timer7 = SetTimer(\"Timer_10_MinWarning\", 1000, false); new pName[MAX_PLAYER_NAME], string[56]; GetPlayerName(playerid, pName, sizeof(pName)); format(string, sizeof(string), \"{FF0000}[ADMIN]:{00FF00} \'%s\' szerver újrainditást inditott,{FFFF00}Hátralévõ idõ: 10 Perc!\", pName); SendClientMessageToAll(COLOR_BLUE, string); print(string); return 1; } if (strcmp(\"/24hour\", cmdtext, true, 7) == 0) { if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,Color_Red, \"{FFFF00}Nem vagy RCon Admin!\"); KillTimer(Timer1); KillTimer(Timer2); KillTimer(Timer3); KillTimer(Timer4); KillTimer(Timer5); KillTimer(Timer6); KillTimer(Timer7); KillTimer(Timer8); KillTimer(Timer9); Timer8 = SetTimer(\"Timer_10_MinWarning\", 1000 * 60* TIME, false); new pName[MAX_PLAYER_NAME], string[56]; GetPlayerName(playerid, pName, sizeof(pName)); format(string, sizeof(string), \"{FF0000}[ADMIN]:{00FF00} \'%s\' szerver újrainditást inditott,{FFFF00}Hátralévõ idõ: %d !\", pName, TIME); SendClientMessageToAll(COLOR_BLUE, string); print(string); return 1; } if (strcmp(\"/karb\", cmdtext, true, 9) == 0) { if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,Color_Red, \"{FFFF00}Nem vagy RCon Admin!\"); new pName[MAX_PLAYER_NAME], string[56]; GetPlayerName(playerid, pName, sizeof(pName)); format(string, sizeof(string), \"{FF0000}[ADMIN]:{00FF00} \'%s\' Kirúgott minden játékost! {FFFF00}[iNDOK]: Karbantartás! \", pName); SendClientMessageToAll(COLOR_BLUE, string); SendClientMessageToAll(COLOR_BLUE, \"{FFFF00}***{FF0000}[sZERVER]{FFFF00}*** - {00FF00} Minden játékos kirúgva!\"); return 1; } if(strcmp(\"/karboff\", cmdtext, true, 13)==0) { if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,Color_Red, \"{FFFF00}Nem vagy RCon Admin!\"); SendClientMessageToAll(COLOR_BLUE, \"{FFFF00}***{FF0000}[sZERVER]{FFFF00}*** - {00FF00}Karbantartás Vége!\"); return 1; } return 0;}forward Timer_10_MinWarning();public Timer_10_MinWarning()// 10 minute restart timer{ print(\"\\n{FF0000}====================================\"); printf(\"{00FF00} %d Perc van hátra az újrainditásig! .\",TIME); print(\"{00FF00}{FFFF00}******{00FF00}FIGYELEM: 10 Perc van hátra!{FFFF00}*******\"); print(\"{FF0000}======================================\\n\"); SendClientMessageToAll(COLOR_BLUE, WarningMessage); Timer2 = SetTimer(\"Timer_5_MinWarning\", 1000 * 60* 5, false); return 1;}forward Timer_5_MinWarning();public Timer_5_MinWarning()// 5 minute restart timer{ print(\"\\n{FF0000}====================================\"); printf(\"{00FF00} %d Perc van hátra az újrainditásig! .\",TIME); print(\"{00FF00}{FFFF00}******{00FF00}FIGYELEM: 5 Perc van hátra!{FFFF00}*******\"); print(\"{FF0000}======================================\\n\");; SendClientMessageToAll(COLOR_BLUE, WarningMessage); Timer3 = SetTimer(\"Timer_2_MinWarning\", 1000 * 60* 3, false); return;}forward Timer_2_MinWarning();public Timer_2_MinWarning()// 2 minute restart timer{ print(\"\\n{FF0000}====================================\"); printf(\"{00FF00} %d Perc van hátra az újrainditásig! .\",TIME); print(\"{00FF00}{FFFF00}******{00FF00}FIGYELEM: 2 Perc van hátra!{FFFF00}*******\"); print(\"{FF0000}======================================\\n\");; SendClientMessageToAll(COLOR_BLUE, WarningMessage); Timer4 = SetTimer(\"Timer_Restart_WarnPlayers\", 1000 * 60, false); return 1;}forward Timer_Restart_WarnPlayers();public Timer_Restart_WarnPlayers(){ print(\"\\n{FF0000}====================================\"); print(\"{00FF00}{FFFF00}******{00FF00}FIGYELEM: 1 Perc van hátra!{FFFF00}*******\"); print(\"{FF0000}====================================\\n\"); SendClientMessageToAll(COLOR_BLUE, WarningMessage); SetTimer(\"Timer_Restart_Kick\", 1000 * 60, false); return 1;}forward Timer_Restart_Kick();public Timer_Restart_Kick(){ // Kick all players for(new i; i < MAX_PLAYERS; i++) Kick(i); // Start the next timer that will restart the server SetTimer(\"Timer_Restart_Reboot\", 1000 * 5, false); return 1;}forward Timer_Restart_Reboot();public Timer_Restart_Reboot(){ // Restart the server SendRconCommand(\"gmx\"); //========================================================================= //SendRconCommand(\"reloadfs Your_Filterscript_Here\");//with this line you may also restart separate Filterscripts\"); //========================================================================= print(\"\\n{FF0000}===================================\"); print(\" {FFFF00}******{00FF00}Automatikus Szerver Újrainditás!{FFFF00}********\"); print(\"{FF0000}=====================================\\n\"); return 1;}
#include <a_samp>#pragma tabsize 0#tryinclude <timerfix> // If you dont have the timer fix include I recommend it cause the timers will be more accurate.#define FILTERSCRIPT#if defined FILTERSCRIPT#define Color_Red 0xFF0000FF#define COLOR_BLUE 0x00FFFFFF#define Color_Yellow 0xFFFF00FF//--------------------------------------------------------------------------------------------------------------------------------------//====================================================================================================================================== //RESTART CONFIG#define TIME 1441 //Edit this for defalt time amount 1441=24 hours. Being in a filterscript the timer is slower so could make it about 900 minutes#define ServerName \"Your server name\" //Define your server name here. //\"0\" means password is getting removed, keep 0 unless your server has a password all the time then put \"yourserverpass\"#define WarningMessage \"Please Do Not start any missions untill after restart!\" //Put your warning message here. If you dont want any chat warning put \"\" // Here Choose what warning limit you want!! Enable/Disable warning time. Only have one true or you will have multiple timers going at once.#define Enable10Min true#define Enable5Min false#define Enable2Min false //Now that you set the config go to the bottom of the script and remove the last 3 lines and enjoy.#define Build \"V 1.0.5\"//======================================================================================================================================//--------------------------------------------------------------------------------------------------------------------------------------//**************************************************************************************************************************************new Timer1;new Timer2;new Timer3;new Timer4;new Timer5;new Timer6;new Timer7;new Timer8;new Timer9;public OnFilterScriptInit(){print(\"RCon Szerver Újrainditó Script \"); print(\"Eredeti Készitõ: \'nickdodd25\'\"); print(\"Forditõ,szerksztõ: \'KILAKIKITT\' \"); #if Enable10Min == true Timer1 = SetTimer(\"Timer_10_MinWarning\", 1000 * 60* TIME, true); #endif #if Enable5Min == true Timer1 = SetTimer(\"Timer_5_MinWarning\", 1000 * 60* TIME, true); #endif #if Enable2Min == true Timer1 = SetTimer(\"Timer_2_MinWarning\", 1000 * 60* TIME, true); #endif return 1;}public OnFilterScriptExit(){ return 1;}#elsemain(){print(\"RCon Szerver Újrainditó Script \"); print(\"Eredeti Készitõ: \'nickdodd25\'\"); print(\"Forditõ,szerksztõ: \'KILAKIKITT\' \"); print(\"Köszönjük,hogy használtad!\");#endifpublic OnPlayerCommandText(playerid, cmdtext[]){ if (strcmp(\"/rh\", cmdtext, true, 7) == 0) { if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,Color_Red,\"{FFFF00}Nem vagy RCon Admin!\"); SendClientMessage(playerid,Color_Yellow,\" {00FFEA} RCon ADmin SCript - Parancsok \"); SendClientMessage(playerid,Color_Yellow,\"{FF0000} | /2min | /5min | /10min | /stoprestart | /24hour | \"); SendClientMessage(playerid,Color_Yellow,\"{00FF00} | /karb | /donemaintain | \"); return 1; } if (strcmp(\"/stoprestart\", cmdtext, true, 12) == 0) { if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,Color_Red,\"{FFFF00}Nem vagy RCon Admin!\"); KillTimer(Timer1); KillTimer(Timer2); KillTimer(Timer3); KillTimer(Timer4); KillTimer(Timer5); KillTimer(Timer6); KillTimer(Timer7); KillTimer(Timer8); KillTimer(Timer9); new pName[MAX_PLAYER_NAME], string[56]; GetPlayerName(playerid, pName, sizeof(pName)); format(string, sizeof(string), \"{FF0000}[ADMIN]:{00FF00} \'%s\' leállitotta a szerver újrainditást!\", pName); SendClientMessageToAll(COLOR_BLUE, string); print(string); new HostCommand1[128]; format(HostCommand1, 128, \"hostname %s\", ServerName); SendRconCommand(HostCommand1); return 1; } if (strcmp(\"/2min\", cmdtext, true, 5) == 0) { if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,Color_Red, \"{FFFF00}Nem vagy RCon Admin!\"); KillTimer(Timer1); KillTimer(Timer2); KillTimer(Timer3); KillTimer(Timer4); KillTimer(Timer5); KillTimer(Timer6); KillTimer(Timer7); KillTimer(Timer8); KillTimer(Timer9); Timer5 = SetTimer(\"Timer_2_MinWarning\", 1000, false); new pName[MAX_PLAYER_NAME], string[56]; GetPlayerName(playerid, pName, sizeof(pName)); format(string, sizeof(string), \"{FF0000}[ADMIN]:{00FF00} \'%s\' szerver újrainditást inditott,{FFFF00}Hátralévõ idõ: 2 Perc! \", pName); SendClientMessageToAll(COLOR_BLUE, string); print(string); return 1; } if (strcmp(\"/5min\", cmdtext, true, 5) == 0) { if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,Color_Red, \"{FFFF00}Nem vagy RCon Admin!\"); KillTimer(Timer1); KillTimer(Timer2); KillTimer(Timer3); KillTimer(Timer4); KillTimer(Timer5); KillTimer(Timer6); KillTimer(Timer7); KillTimer(Timer8); KillTimer(Timer9); Timer6 = SetTimer(\"Timer_5_MinWarning\", 1000, false); new pName[MAX_PLAYER_NAME], string[56]; GetPlayerName(playerid, pName, sizeof(pName)); format(string, sizeof(string), \"{FF0000}[ADMIN]:{00FF00} \'%s\' szerver újrainditást inditott,{FFFF00}Hátralévõ idõ: 5 Perc!\", pName); SendClientMessageToAll(COLOR_BLUE, string); print(string); return 1; } if (strcmp(\"/10min\", cmdtext, true, 6) == 0) { if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,Color_Red, \"{FFFF00}Nem vagy RCon Admin!\"); KillTimer(Timer1); KillTimer(Timer2); KillTimer(Timer3); KillTimer(Timer4); KillTimer(Timer5); KillTimer(Timer6); KillTimer(Timer7); KillTimer(Timer8); KillTimer(Timer9); Timer7 = SetTimer(\"Timer_10_MinWarning\", 1000, false); new pName[MAX_PLAYER_NAME], string[56]; GetPlayerName(playerid, pName, sizeof(pName)); format(string, sizeof(string), \"{FF0000}[ADMIN]:{00FF00} \'%s\' szerver újrainditást inditott,{FFFF00}Hátralévõ idõ: 10 Perc!\", pName); SendClientMessageToAll(COLOR_BLUE, string); print(string); return 1; } if (strcmp(\"/24hour\", cmdtext, true, 7) == 0) { if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,Color_Red, \"{FFFF00}Nem vagy RCon Admin!\"); KillTimer(Timer1); KillTimer(Timer2); KillTimer(Timer3); KillTimer(Timer4); KillTimer(Timer5); KillTimer(Timer6); KillTimer(Timer7); KillTimer(Timer8); KillTimer(Timer9); Timer8 = SetTimer(\"Timer_10_MinWarning\", 1000 * 60* TIME, false); new pName[MAX_PLAYER_NAME], string[56]; GetPlayerName(playerid, pName, sizeof(pName)); format(string, sizeof(string), \"{FF0000}[ADMIN]:{00FF00} \'%s\' szerver újrainditást inditott,{FFFF00}Hátralévõ idõ: %d !\", pName, TIME); SendClientMessageToAll(COLOR_BLUE, string); print(string); return 1; } if (strcmp(\"/karb\", cmdtext, true, 9) == 0) { if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,Color_Red, \"{FFFF00}Nem vagy RCon Admin!\"); new pName[MAX_PLAYER_NAME], string[56]; GetPlayerName(playerid, pName, sizeof(pName)); format(string, sizeof(string), \"{FF0000}[ADMIN]:{00FF00} \'%s\' Kirúgott minden játékost! {FFFF00}[iNDOK]: Karbantartás! \", pName); SendClientMessageToAll(COLOR_BLUE, string); SendClientMessageToAll(COLOR_BLUE, \"{FFFF00}***{FF0000}[sZERVER]{FFFF00}*** - {00FF00} Minden játékos kirúgva!\"); return 1; } if(strcmp(\"/karboff\", cmdtext, true, 13)==0) { if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,Color_Red, \"{FFFF00}Nem vagy RCon Admin!\"); SendClientMessageToAll(COLOR_BLUE, \"{FFFF00}***{FF0000}[sZERVER]{FFFF00}*** - {00FF00}Karbantartás Vége!\"); return 1; } return 0;}forward Timer_10_MinWarning();public Timer_10_MinWarning()// 10 minute restart timer{ print(\"\\n{FF0000}====================================\"); printf(\"{00FF00} %d Perc van hátra az újrainditásig! .\",TIME); print(\"{00FF00}{FFFF00}******{00FF00}FIGYELEM: 10 Perc van hátra!{FFFF00}*******\"); print(\"{FF0000}======================================\\n\"); SendClientMessageToAll(COLOR_BLUE, WarningMessage); Timer2 = SetTimer(\"Timer_5_MinWarning\", 1000 * 60* 5, false); return 1;}forward Timer_5_MinWarning();public Timer_5_MinWarning()// 5 minute restart timer{ print(\"\\n{FF0000}====================================\"); printf(\"{00FF00} %d Perc van hátra az újrainditásig! .\",TIME); print(\"{00FF00}{FFFF00}******{00FF00}FIGYELEM: 5 Perc van hátra!{FFFF00}*******\"); print(\"{FF0000}======================================\\n\");; SendClientMessageToAll(COLOR_BLUE, WarningMessage); Timer3 = SetTimer(\"Timer_2_MinWarning\", 1000 * 60* 3, false); return;}forward Timer_2_MinWarning();public Timer_2_MinWarning()// 2 minute restart timer{ print(\"\\n{FF0000}====================================\"); printf(\"{00FF00} %d Perc van hátra az újrainditásig! .\",TIME); print(\"{00FF00}{FFFF00}******{00FF00}FIGYELEM: 2 Perc van hátra!{FFFF00}*******\"); print(\"{FF0000}======================================\\n\");; SendClientMessageToAll(COLOR_BLUE, WarningMessage); Timer4 = SetTimer(\"Timer_Restart_WarnPlayers\", 1000 * 60, false); return 1;}forward Timer_Restart_WarnPlayers();public Timer_Restart_WarnPlayers(){ print(\"\\n{FF0000}====================================\"); print(\"{00FF00}{FFFF00}******{00FF00}FIGYELEM: 1 Perc van hátra!{FFFF00}*******\"); print(\"{FF0000}====================================\\n\"); SendClientMessageToAll(COLOR_BLUE, WarningMessage); SetTimer(\"Timer_Restart_Kick\", 1000 * 60, false); return 1;}forward Timer_Restart_Kick();public Timer_Restart_Kick(){ // Kick all players for(new i; i < MAX_PLAYERS; i++) Kick(i); // Start the next timer that will restart the server SetTimer(\"Timer_Restart_Reboot\", 1000 * 5, false); return 1;}forward Timer_Restart_Reboot();public Timer_Restart_Reboot(){ // Restart the server SendRconCommand(\"gmx\"); //========================================================================= //SendRconCommand(\"reloadfs Your_Filterscript_Here\");//with this line you may also restart separate Filterscripts\"); //========================================================================= print(\"\\n{FF0000}===================================\"); print(\" {FFFF00}******{00FF00}Automatikus Szerver Újrainditás!{FFFF00}********\"); print(\"{FF0000}=====================================\\n\"); return 1;}