03.03.2011, 23:40
Nice tut.
but can i make an Filterscript From it ??
but can i make an Filterscript From it ??
If you would ****** up "The Definition of Tutorials", You'll most probably get something related with: "An printed or digital manual where an software user using examples of the important parts of that software explains to others."
My point with that is, Tutorials is an theard with explaination for people to learn that is based on scripting.. And Not to release scripts.. Just saying. |
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);
forward gatecheck();
public gatecheck()
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(IsPlayerInRangeOfPoint(i, 15.0,1545.93554688,-1626.52050781,12.58281231))
{
MoveObject(lspleftgate, 1545.93554688,-1617.52050781,12.58281231, 5.0);
MoveObject(lsprightgate, 1545.93554688,-1635.82055664,12.58281231, 5.0);
}
else if(IsPlayerInRangeOfPoint(i, 15.0, 1140.91699219,-1292.01171875,12.68227100))
{
MoveObject(lsmgate1, 1148.21447754,-1292.01245117,12.68227100, 5.0);
MoveObject(lsmgate2, 1133.91699219,-1292.01171875,12.68227100, 5.0);
}
else if(IsPlayerInRangeOfPoint(i, 15.0, 1591.87133789,-1638.18017578,13.89877319))
{
MoveObject(lspgar, 1591.87133789, -1638.18017578, 6.89877319, 5.0);
}
else
{
MoveObject(lspleftgate, 1545.93554688,-1626.52050781,12.58281231, 5.0);
MoveObject(lsprightgate, 1545.93554688,-1626.82055664,12.58281231, 5.0);
MoveObject(lsmgate1, 1141.21447754,-1292.01245117,12.68227100, 5.0);
MoveObject(lsmgate2, 1140.91699219,-1292.01171875,12.68227100, 5.0);
}
}
}
return 1;
}
C:\Users\Dennis\Downloads\server\filterscripts\AdminHouse2.pwn(551) : error 029: invalid expression, assumed zero C:\Users\Dennis\Downloads\server\filterscripts\AdminHouse2.pwn(551) : error 004: function "CheckGate" is not implemented C:\Users\Dennis\Downloads\server\filterscripts\AdminHouse2.pwn(552) : warning 217: loose indentation C:\Users\Dennis\Downloads\server\filterscripts\AdminHouse2.pwn(557) : warning 202: number of arguments does not match definition C:\Users\Dennis\Downloads\server\filterscripts\AdminHouse2.pwn(579) : warning 217: loose indentation Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
public CheckGate() { for(new i=0; i<MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(IsPlayerInRangeOfPoint(i, 10.0, -1184.54418945, -996.06542969, 130.38134766, 5.00)) { MoveObject(AutomaticGate, -1184.2901611328, -996.14276123047, 123.37306976318 , 5.00); } else { MoveObject(AutomaticGate, -1184.54418945, -996.06542969, 130.38134766, 5.0); } } } }
public OnPlayerUpdate(playerid)
{
if(IsPlayerInRangeOfPoint(playerid,13.00,X,Y,Z)) // X,Y,Z Cordinates of closest gate
{
MoveDynamicObject(gate,X,Y,Z,2.00); // Cordinates of opened gate
SetTimer("close",7000,false);
return 1;
}
return 1;
}
forward close();
public close()
{
MoveDynamicObject(gate,X,Y,Z,2.00); // Cordinates of closed gate
return 1;
}
C:\Users\Heni\Desktop\Express Gaming RP fixed\gamemodes\EGRP.pwn(19133) : error 029: invalid expression, assumed zero C:\Users\Heni\Desktop\Express Gaming RP fixed\gamemodes\EGRP.pwn(19133) : error 004: function "CheckGate" is not implemented C:\Users\Heni\Desktop\Express Gaming RP fixed\gamemodes\EGRP.pwn(19148) : warning 225: unreachable code Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors.
Код:
C:\Users\Heni\Desktop\Express Gaming RP fixed\gamemodes\EGRP.pwn(19133) : error 029: invalid expression, assumed zero C:\Users\Heni\Desktop\Express Gaming RP fixed\gamemodes\EGRP.pwn(19133) : error 004: function "CheckGate" is not implemented C:\Users\Heni\Desktop\Express Gaming RP fixed\gamemodes\EGRP.pwn(19148) : warning 225: unreachable code Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors. |