їQue esta mal?
#1

Hola , Estoy en creacion de una gate xD

Y me sale un error de #Endif En un linea que no existe .. Por ejemplo tengo 47 lineas

Y me sale error en la linea 48

El Codigo

Код:
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT

#include <a_samp>

#if defined FILTERSCRIPT

new Gate;

public OnFilterScriptInit()
{
   Gate = CreateObject(980, 1036.581787, 1992.579833, 15.062008, 0.0, 0.0, 0.0, 100.0);
   return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
   if(!strcmp(cmdtext, "/ap", true)){
       if(IsPlayerInRangeOfPoint(playerid, 15.0, 1036.581787, 1992.579833, 15.062008)){
           SetTimerEs("CloseGate", 7000, false, "i", playerid);
           MoveObject(Gate, 1036.581787, 1992.579833, 15.062008, 2.5);
           SetObjectRot(Gate, 0.0, 0.0, 0.0);
           return SendClientMessage(playerid, 0x002D00FF, "Esto se cerrara en algo xD");
       }
   }
   return 0;
}

forward CloseGate(playerid);
public CloseGate(playerid)
{
   MoveObject(Gate, 1036.581787, 1992.579833, 15.062008, 2.5);
   SetObjectRot(Gate, 0.0, 0.0, 0.0);
   return SendClientMessage(playerid, 0x-1, "");
}

Error :

Код:
C:\Users\Propietario\Downloads\SAMP\GF\filterscripts\xD.pwn(37) : error 001: expected token: "#endif", but found "-end of file-"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Saludos
Reply
#2

justamente no cerraste el:
pawn Код:
#if defined FILTERSCRIPT
PD: Eliminalo o defini FILTERSCRIPT, de lo contrario no funcionara
Reply
#3

Solucionado xD

#Endif al principio y puse mal El SetTimerEx ( Le puse SetTimerES) :P

PD : Gracias a todos por sus respuestas ¬¬
Reply
#4

Jaja, nomas respondio Chaoz..
Reply
#5

Por algo puse ¬¬
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)