#include <a_samp>#if defined FILTERSCRIPTforward GateCheck();new mygate;public OnFilterscriptInit(){ mygate=CreateObject(16775, 2063.2603, -2600.1406, 16.5461, 0.0000, 0.0000, 33.5180, 500.0); //object (kapu) ID és a koordinata SetTimer(\"GateCheck\",1000,1);}public GateCheck() { new openmygate; for(new playerid;playerid<MAX_PLAYERS;playerid++) { if(IsPlayerInRangeOfPoint(playerid,10.0,2063.2603, -2600.1406, 16.5461)openmygate=1; //object (kapu) koordinata if(openmygate)MoveObject(mygate,2063.2507, -2600.1677, 8.5313); //nyitott kapu koordinata else MoveObject(mygate,2063.2603, -2600.1406, 16.5461); //zárt kapu koordinata}#endif[/quote]Nincs se error se warning es megsem megy! elé allok és nem nyitódik ki!!Mi lehet a gond??? meg nagyon kezdo vagyok!
#include <a_samp>#if defined FILTERSCRIPT forward GateCheck();new mygate; public OnFilterscriptInit(){ mygate=CreateObject(16775, 2063.2603, -2600.1406, 16.5461, 0.0000, 0.0000, 33.5180, 500.0); //object (kapu) ID és a koordinata SetTimer(\"GateCheck\",1000,1);} public GateCheck(){ if(IsPlayerInRangeOfPoint(playerid,10.0,2063.2603, -2600.1406, 16.5461); //object (kapu) koordinata {MoveObject(mygate, 2063.2507, -2600.1677, 8.5313, 6.00); //nyitott kapu koordinata a 6.00 a sebessége { }else{MoveObject(mygate,2063.2603, -2600.1406, 16.5461, 6.00); //zárt kapu koordinata}}}#endif
#define FILTERSCRIPT#include <a_samp>#include <a_objects>#if defined FILTERSCRIPTforward GateCheck(playerid);new mygate; public OnFilterScriptInit(){ mygate=CreateObject(16775, 2063.2603, -2600.1406, 16.5461, 0.0000, 0.0000, 33.5180); //object (kapu) ID és a koordinata SetTimer(\"GateCheck\",1000,1);return 1;} public GateCheck(playerid){ if(IsPlayerInRangeOfPoint(playerid,10.0,2063.2603, -2600.1406, 16.5461)) //object (kapu) koordinata {MoveObject(mygate, 2063.2507, -2600.1677, 8.5313, 6.00); //nyitott kapu koordinata a 6.00 a sebessége}else{MoveObject(mygate,2063.2603, -2600.1406, 16.5461, 6.00); //zárt kapu koordinata}}#endif
#pragma tabsize 4// Ignores warning 217 for properly indented PAWNO code// It\'s tab size is 4 and often uses 4 spaces instead, PAWNCC\'s is 8#include <core>#include <float>#include <string>#include <file>#include <time>#include <datagram>#include <a_players>#include <a_vehicles>#include <a_objects>#include <a_sampdb>// Limits and internal constants
#include <a_samp>//Nem kell a direktíva!forward GateCheck();new mygate; public OnFilterscriptInit(){ mygate=CreateObject(16775, 2063.2603, -2600.1406, 16.5461, 0.0000, 0.0000, 33.5180, 500.0); //object (kapu) ID és a koordinata SetTimer(\"GateCheck\",1000,1);} public GateCheck() { new openmygate; for(new playerid;playerid<MAX_PLAYERS;playerid++) { if(IsPlayerInRangeOfPoint(playerid,10.0,2063.2603, -2600.1406, 16.5461)openmygate=1; //object (kapu) koordinata if(openmygate)MoveObject(mygate,2063.2507, -2600.1677, 8.5313); //nyitott kapu koordinata else MoveObject(mygate,2063.2603, -2600.1406, 16.5461); //zárt kapu koordinata}