Automatic Gates
#1

I need help with Automatic Gates... I have looked at the SA:MP Wiki and I have followed what it said on there, but I still have errors.

Here is what I have:

pawn Код:
public CheckGate()
{
    for(new i;i<MAX_PLAYERS;i++)
  {
    if(!IsPlayerConnected(i)) continue;
    if(IsPlayerInRangeOfPoint(i,10.0,266.30337524414, 92.817451477051, 1002.5568237305)) MoveDynamicObject(LSPDGate, 266.25262451172, 96.629951477051, 1002.5570678711 ,5.0);
  }
  else MoveDynamicObject(LSPDGate, 266.30337524414, 92.817451477051, 1002.5568237305, 2.0);
}
pawn Код:
public OnGameModeInit()
{
  LSPDGate = CreateDynamicObject(971, 266.30337524414, 92.817451477051, 1002.5568237305, 0.000000, 0.000000, 270.27026367188,-1,-1,-1,200);
  SetTimer("CheckGate",1000,true);
  return 1;
}
and

pawn Код:
#include <streamer>

//Forwards
forward CheckGate();

//Other
new LSPDGate;
I don't see why I am getting this issue...

Код:
C:\CnR SA-MP Server\gamemodes\CnR.pwn(133) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Does anyone have a solution to help me with this?




Resource Used: https://sampwiki.blast.hk/wiki/Automatic_Gates
Reply


Messages In This Thread
Automatic Gates - by Scenario - 22.04.2010, 03:36
Re: Automatic Gates - by Joe Staff - 22.04.2010, 06:52
Re: Automatic Gates - by Scenario - 22.04.2010, 07:29
Re: Automatic Gates - by Joe Staff - 22.04.2010, 08:00
Re: Automatic Gates - by Scenario - 22.04.2010, 08:09

Forum Jump:


Users browsing this thread: 1 Guest(s)