22.04.2010, 03:36
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:
and
I don't see why I am getting this issue...
Does anyone have a solution to help me with this?
Resource Used: https://sampwiki.blast.hk/wiki/Automatic_Gates
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;
}
pawn Код:
#include <streamer>
//Forwards
forward CheckGate();
//Other
new LSPDGate;
Код:
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.
Resource Used: https://sampwiki.blast.hk/wiki/Automatic_Gates