03.01.2013, 18:34
Hi can you please fix my error.
pawn Код:
error 001: expected token: "#endif", but found "-end of file-"
pawn Код:
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT
#include <a_samp>
#if defined FILTERSCRIPT
//====================================================================
//VARIABLES
//====================================================================
new GameMinutes =1;
new GameSeconds =00; // Put the time for which you gm will run
new GameTimer;
new Text:Timer;
new RoundTime = 60000;//1 minutes = 60 seconds => Put here 60 x 1000 = 60000
//====================================================================
//FORWARDS
//====================================================================
forward GameModeExitFunc(playerid);forward GameTime(playerid); // gamemode of gamemode changing and exit
forward GameModeExitFunc(playerid); // gamemode of gamemode changing and exit
public OnGameModeInit()
{
// ConnectNPC("Npc","zombie");
SetGameModeText("YOUR GM HERE");
UsePlayerPedAnims();
SetTimer("GameModeExitFunc", RoundTime, 0);
SetWorldTime(6);
DisableInteriorEnterExits();
AddPlayerClass(0, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0);
SetTimer("Score",60000,false); // How long your GM will be. Set Your's
GameTimer = SetTimer("GameTime",1000,1);
Timer= TextDrawCreate(315.000000, 400.000000,"1:00");
TextDrawAlignment(Timer,2);
TextDrawBackgroundColor(Timer,0xFFFFFFAA);
TextDrawFont(Timer,3);
TextDrawLetterSize(Timer,0.499999,2.000000);
TextDrawColor(Timer,0xffffffff);
TextDrawSetOutline(Timer,1);
TextDrawSetProportional(Timer,1);
TextDrawSetShadow(Timer,1);
//
return 1;
}
public OnPlayerSpawn(playerid)
{
SetPlayerPos(playerid,2221.1436,-1149.5422,1027.7969); // Jefferson Co-ords, Put here Yours
SetPlayerFacingAngle(playerid,355.3727);
SetPlayerInterior(playerid,15); // Jeferrson interior id (15)
TextDrawShowForPlayer(playerid,Timer);
return 1;
}
public GameTime() // TImer Format
{
if(GameSeconds || GameMinutes)
{
GameSeconds--;
if(GameSeconds <= -1)
{
GameMinutes--;
GameSeconds=59;
}
new TimeString[256];
format(TimeString,sizeof(TimeString),"~b~%02d~y~:~r~%02d",GameMinutes,GameSeconds);
TextDrawSetString(Timer,TimeString);
}
return 1;
}
public GameModeExitFunc(playerid) {
SendRconCommand("changemode Your GM2 Here"); // You can put your 2nd GM name. Just Replace "Your GM2 Here"
GameTextForAll("~y~Changing Gamemode ~n~ ~w~Please Wait....",5000,1); // Gamemode changing message
KillTimer(GameTimer);
TextDrawHideForPlayer(playerid,Timer);
}