05.12.2009, 12:58
Quote:
#include <a_samp> forward GateCheck(); new mygate; public OnFilterscriptInit() { mygate=CreateObject(16775, 2063.260254, -2600.140625, 16.546091, 0.0000, 0.0000, 33.5180); SetTimer("GateCheck",1000,1); } public GateCheck() { new openmygate; for(new playerid;playerid<MAX_PLAYERS;playerid++) { if (IsPlayerInRangeOfPoint(playerid,10.0,2063.260254, -2600.140625, 16.546091))openmygate=1; } if(openmygate)MoveObject(mygate,2063.250732, -2600.167725, 8.531250); else MoveObject(mygate,2063.260254, -2600.140625, 16.546091); } |
pwn(23) : warning 202: number of arguments does not match definition
pwn(24) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
3 Warnings.
No errors
not good! gate do not open!!