// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT
#include <a_samp>
new BlackProject;
new c_gate;
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
c_gate= CreateObject(11327, 213.882446, 1875.694214, 14.031004, 0.000000, 0.000000, 270.000001124); //the created object
SetTimer("CheckGate", 100, 1);
return 1;
}
forward CheckGate();
public CheckGate()
{
for(new i = 0; i < GetMaxPlayers(); i++)
{
if(IsPlayerInRangeOfPoint(i, 10.0, 213.880005, 1875.686768, 10.506058))
{
MoveObject(c_gate, 213.882446, 1875.694214, 14.031004,5);//move objest from position, where you created to x, y, z (you must input)
//you have the same x,y,z positions like created
return 1;
}
}
MoveObject(c_gate, 213.882446, 1875.694214, 14.031004,5);
return 1;
}
print("\n--------------------------------------");
print(" Blank Filterscript by Danikov");
print("--------------------------------------\n");
return 1;
}
#if defined FILTERSCRIPT

D:\Documents and Settings\victor\Desktop\SAMP Server\pawno\A51.pwn(16) : warning 217: loose indentation D:\Documents and Settings\victor\Desktop\SAMP Server\pawno\A51.pwn(35) : error 021: symbol already defined: "print" D:\Documents and Settings\victor\Desktop\SAMP Server\pawno\A51.pwn(38) : error 010: invalid function or declaration D:\Documents and Settings\victor\Desktop\SAMP Server\pawno\A51.pwn(46) : error 026: no matching "#if..." D:\Documents and Settings\victor\Desktop\SAMP Server\pawno\A51.pwn(55) : error 026: no matching "#if..." Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
Look, what did your errors tell.
#include <a_samp>
//new BlackProject;
new c_gate;
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Blank Filterscript by Danikov");
print("--------------------------------------\n");
c_gate= CreateObject(11327, 213.882446, 1875.694214, 14.031004, 0.000000, 0.000000, 270.000001124); //the created object
SetTimer("CheckGate", 100, 1);
return 1;
}
forward CheckGate();
public CheckGate()
{
for(new i = 0; i < GetMaxPlayers(); i++)
{
if(IsPlayerInRangeOfPoint(i, 10.0, 213.880005, 1875.686768, 10.506058))
{
MoveObject(c_gate, 213.882446, 1875.694214, 14.031004,5);//move objest from position, where you created to x, y, z (you must input)
//you have the same x,y,z positions like created
return 1;
}
}
MoveObject(c_gate, 213.882446, 1875.694214, 14.031004,5);
return 1;
}
D:\Documents and Settings\victor\Desktop\SAMP Server\pawno\A51Other.pwn(42) : error 026: no matching "#if..." D:\Documents and Settings\victor\Desktop\SAMP Server\pawno\A51Other.pwn(51) : error 026: no matching "#if..." Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors.
|
Originally Posted by Danikov
Damn i got only two last errors!!!!
Both are about the #if ;( like before: Код:
D:\Documents and Settings\victor\Desktop\SAMP Server\pawno\A51Other.pwn(42) : error 026: no matching "#if..." D:\Documents and Settings\victor\Desktop\SAMP Server\pawno\A51Other.pwn(51) : error 026: no matching "#if..." Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors. |
thx i think it will work