18.05.2018, 19:20
criei um portгo e ele simplesmente nгo abre eu queria saber o porque.. Podem me ajudar?
Topo:
Ongamemodeinit
Publics:
Topo:
pawn Code:
new PoliciaLS;
new PoliciaSF;
new PoliciaLV;
pawn Code:
SetTimer("APolicia", 1000, true);
PoliciaLS = CreateDynamicObject(980, 1540.2811,-1627.8862,15.6406,0.0000,0.0000,89.5999);
PoliciaLV = CreateDynamicObject(969, 2237.5166,2449.4230,9.8725,0.0000,0.0000,90.2999);
PoliciaSF = CreateDynamicObject(980, -2127.4096,-79.3412,36.9296,0.0000,0.0000,0.0000);
pawn Code:
forward APolicia(playerid);
public APolicia(playerid)
{
if(Stats[playerid][GANGID]!=1)
{
if (IsPlayerInRangeOfPoint(playerid, 7.0,1540.2811,-1627.8862,15.6406))
{
MoveObject(PoliciaLS,1540.2811,-1627.8862,5.6406, 2.5);
}
if (IsPlayerInRangeOfPoint(playerid, 7.0,2237.5166,2449.4230,9.8725))
{
MoveObject(PoliciaLV,2237.5166,2449.4230,-0.1274, 2.5);
}
if (IsPlayerInRangeOfPoint(playerid, 7.0,-2127.4096,-79.3412,36.9296))
{
MoveObject(PoliciaSF,-2127.4096,-79.3412,26.9296, 2.5);
}
SetTimer("FPolicia", 10000, true);
}
}
forward FPolicia();
public FPolicia()
{
if (IsPlayerInRangeOfPoint(playerid, 7.0,1540.2811,-1627.8862,15.6406))
{
MoveObject(PoliciaLS,1540.2811,-1627.8862,15.6406, 2.5);
}
if (IsPlayerInRangeOfPoint(playerid, 7.0,2237.5166,2449.4230,9.8725))
{
MoveObject(PoliciaLV,2237.5166,2449.4230,9.8725, 2.5);
}
if (IsPlayerInRangeOfPoint(playerid, 7.0,-2127.4096,-79.3412,36.9296))
{
MoveObject(PoliciaSF,-2127.4096,-79.3412,36.9296, 2.5);
}
return 1;
}