Im having problem with this 6 CreateAutomaticGates. Im using this include <mGates.inc>
Код HTML:
native CreateAutomaticGate(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, Float:x2, Float:y2, Float:z2, Float:rx2, Float:ry2, Float:rz2, Float:trigx, Float:trigy, Float:trigz, Float:trig_range, Float:movespeed, bool:condition=false);
Код HTML:
// Biker Gate //
bGate = CreateAutomaticGate(971,-2127.1001,-80.8,37,0,0,0,-2127.1001,-80.8,44,0,0,0,-2127.1001,-80.8,37,7.1099,4.0,1);
// Mexicans Gate //
mGate = CreateAutomaticGate(971,-2596.6001,328.20001,6.2,0.0000000,0.0000000,270,-2596.6001,328.20001,13.2,0.0000000,0.0000000,270,-2596.6001,328.20001,6.2,7.1099,4.0,1);
// Yakuza Gate //
yGate = CreateAutomaticGate(971,-2211.5,579.70001,35.5,0,0,0,-2211.5,579.70001,42.8,0.0000000,0.0000000,0,-2211.5,579.70001,35.5,7.1099,4.0,1);
// Homeless Gate //
hGate = CreateAutomaticGate(971,-1979.09998,797.20001,56.8,0.0000000,0.0000000,270,-1979.09998,797.20001,62.8,0.0000000,0.0000000,270,-1979.09998,797.20001,56.8,7.1099,4.0,1);
// Mafia Gate //
maGate = CreateAutomaticGate(971,-2382,-108.3,36.9,0.0000000,0.0000000,89.25,-2382,-108.3,42.9,0.0000000,0.0000000,89.25,-2382,-108.3,36.9,7.1099,4.0,1);
// Grove Gate //
gGate = CreateAutomaticGate(971,-1703.0999800,1340.5000000,9.7000000,0.0000000,0.0000000,314.7500000,-1703.0999800,1340.5000000,16.0000000,0.0000000,0.0000000,314.7500000,-1703.0999800,1340.5000000,9.7000000,7.1099,4.0,1);
Like, I noticed there is a boolean parameter in the native, and you have no boolean specified when using the function.
Here the first sample.
Код:
// Biker Gate //
bGate = CreateAutomaticGate(971,-2127.1001,-80.8,37,0,0,0,-2127.1001,-80.8,44,0,0,0,-2127.1001,-80.8,37,7.1099,4.0,1);