#include <a_samp>
forward GateCheck();
new AutomaticGate;
public OnGameModeInit()
SetTimer("GateCheck", 500, true);
AutomaticGate = CreateObject(971, 2641.8201, 2810.6196, 36.3222, 0, 0, 0);
public OnGameModeInit()
{
SetTimer("GateCheck", 500, true);
AutomaticGate = CreateObject(971, 2641.8201, 2810.6196, 36.3222, 0, 0, 0);
return 1;
}
public GateCheck()
for(new i=0; i<MAX_PLAYERS; i++)
if(IsPlayerConnected(i))
if(IsPlayerInRangeOfPoint(i, 10.0, 2641.8201, 2810.6196, 36.3222))
MoveObject(AutomaticGate, 2641.8201, 2810.6196, 26.3222, 5.0);
MoveObject(AutomaticGate, 2641.8201, 2810.6196, 36.3222, 5.0);
public CheckGate()
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(IsPlayerInRangeOfPoint(i, 10.0, 2641.8201, 2810.6196, 36.3222))
{
MoveObject(AutomaticGate, 2641.8201, 2810.6196, 26.3222, 5.0);
}
else
{
MoveObject(AutomaticGate, 2641.8201, 2810.6196, 36.3222, 5.0);
}
}
}
}
public gatecheck() { for(new i=0; i<MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(IsPlayerInRangeOfPoint(i, 10.0, 2127.55102500,3275.75195300,2.47892000)) { MoveObject(automaticgate, 2127.55102500,8275.75195300,2.47892000); } else { MoveObject(automaticgate, 2127.55102500,3275.75195300,2.47892000); } if(IsPlayerInRangeOfPoint(i, 10.0, 976,2127.33276400,3275.76489300,2.45796200)) { MoveObject(automaticgate2, 2127.33276400,8275.76489300+5,2.45796200); } else { MoveObject(automaticgate2, 2127.33276400,3275.76489300,2.45796200); } } } return 1; }
C:\Users\Legit_V20\Desktop\GTASanAndreas\gamemodes\HNH.pwn(721) : warning 202: number of arguments does not match definition C:\Users\Legit_V20\Desktop\GTASanAndreas\gamemodes\HNH.pwn(725) : warning 202: number of arguments does not match definition C:\Users\Legit_V20\Desktop\GTASanAndreas\gamemodes\HNH.pwn(727) : warning 202: number of arguments does not match definition C:\Users\Legit_V20\Desktop\GTASanAndreas\gamemodes\HNH.pwn(729) : warning 202: number of arguments does not match definition C:\Users\Legit_V20\Desktop\GTASanAndreas\gamemodes\HNH.pwn(733) : warning 202: number of arguments does not match definition Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 5 Warnings.
C:\Users\Stephen-Laptop\Desktop\server samp - Copy\gamemodes\lvpg.pwn(719) : warning 235: public function lacks forward declaration (symbol "CheckGate") Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Warning.
public CheckGate()// <<<<<<<< LINE 719 { for(new i=0; i<MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(IsPlayerInRangeOfPoint(i, 10.0, 1717.04809570,1298.18298340,11.49500275)) { MoveObject(AutomaticGate, 1716.09643555,1293.90063477,11.49500275, 5.0); } else { MoveObject(AutomaticGate, 1717.04809570,1298.18298340,11.49500275, 5.0); } } } }
i get this error
Code:
C:\Users\Stephen-Laptop\Desktop\server samp - Copy\gamemodes\lvpg.pwn(719) : warning 235: public function lacks forward declaration (symbol "CheckGate") Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Warning. |
forward CheckGate();
public CheckGate()
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(IsPlayerInRangeOfPoint(i, 10.0, 1717.04809570,1298.18298340,11.49500275))
{
MoveObject(AutomaticGate, 1716.09643555,1293.90063477,11.49500275, 5.0);
}
else
{
MoveObject(AutomaticGate, 1717.04809570,1298.18298340,11.49500275, 5.0);
}
}
}
}
ok so i have
Код:
public gatecheck() { for(new i=0; i<MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(IsPlayerInRangeOfPoint(i, 10.0, 2127.55102500,3275.75195300,2.47892000)) { MoveObject(automaticgate, 2127.55102500,8275.75195300,2.47892000); } else { MoveObject(automaticgate, 2127.55102500,3275.75195300,2.47892000); } if(IsPlayerInRangeOfPoint(i, 10.0, 976,2127.33276400,3275.76489300,2.45796200)) { MoveObject(automaticgate2, 2127.33276400,8275.76489300+5,2.45796200); } else { MoveObject(automaticgate2, 2127.33276400,3275.76489300,2.45796200); } } } return 1; } Код:
C:\Users\Legit_V20\Desktop\GTASanAndreas\gamemodes\HNH.pwn(721) : warning 202: number of arguments does not match definition C:\Users\Legit_V20\Desktop\GTASanAndreas\gamemodes\HNH.pwn(725) : warning 202: number of arguments does not match definition C:\Users\Legit_V20\Desktop\GTASanAndreas\gamemodes\HNH.pwn(727) : warning 202: number of arguments does not match definition C:\Users\Legit_V20\Desktop\GTASanAndreas\gamemodes\HNH.pwn(729) : warning 202: number of arguments does not match definition C:\Users\Legit_V20\Desktop\GTASanAndreas\gamemodes\HNH.pwn(733) : warning 202: number of arguments does not match definition Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 5 Warnings. |
i get this error
Code:
C:\Users\Stephen-Laptop\Desktop\server samp - Copy\gamemodes\lvpg.pwn(719) : warning 235: public function lacks forward declaration (symbol "CheckGate") Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Warning. Code:
public CheckGate()// <<<<<<<< LINE 719 { for(new i=0; i<MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(IsPlayerInRangeOfPoint(i, 10.0, 1717.04809570,1298.18298340,11.49500275)) { MoveObject(AutomaticGate, 1716.09643555,1293.90063477,11.49500275, 5.0); } else { MoveObject(AutomaticGate, 1717.04809570,1298.18298340,11.49500275, 5.0); } } } } |
pawn Code:
|
public CheckGate()
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(IsPlayerInRangeOfPoint(i, 10.0, -1572.1834716797, 658.83563232422, 6.96250295639042))
{
MoveObject(AutomaticGate, -1572.1834716797, 658.83563232422, 6.9625029563904, 0, 90);
}
else
{
MoveObject(AutomaticGate, -1575.4208984375, 660.19921875, 6.1875, 0, 90);
}
}
}
}
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\sf90s.pwn(1393) : warning 202: number of arguments does not match definition C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\sf90s.pwn(1397) : warning 202: number of arguments does not match definition
CreateObject(968, -1572.1834716797, 658.83563232422, 6.9625029563904, 0, 90.250213623047, 90);
CreateObject(968, -1575.4208984375, 660.19921875, 6.1875, 0, 90.247192382813, 90);