SA-MP Forums Archive
їQue esta mal? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Español/Spanish (https://sampforum.blast.hk/forumdisplay.php?fid=29)
+---- Thread: їQue esta mal? (/showthread.php?tid=289309)



їQue esta mal? - Shoock[K] - 11.10.2011

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


Respuesta: їQue esta mal? - TheChaoz - 11.10.2011

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


Respuesta: їQue esta mal? - Shoock[K] - 11.10.2011

Solucionado xD

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

PD : Gracias a todos por sus respuestas ¬¬


Respuesta: їQue esta mal? - Jovanny - 11.10.2011

Jaja, nomas respondio Chaoz..


Respuesta: їQue esta mal? - Shoock[K] - 11.10.2011

Por algo puse ¬¬