C:\Users\ANSH\Desktop\BattleLionV2.pwn(209) : error 017: undefined symbol "Ztimer"
C:\Users\ANSH\Desktop\BattleLionV2.pwn(213) : warning 235: public function lacks forward declaration (symbol "OnPlayerCheat")
2 Errors.
OT: Show us the code please.
Код:
#include <a_samp>
#include <zcmd>
//Team defines
#define TEAM_ARMY 1
#define TEAM_TERRORIST 2
public OnGameModeInit()
{
SetGameModeText("~ AVT:TDM V1.0 ~");
SendRconCommand("mapname Fort Carson");
print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
print("~ Army V Terrorists ~");
print("~ By calzo2011 ~");
print("~ Has loaded! ~");
print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
// Soilders Class
AddPlayerClass(287, 168.86, 1906.02, 18.02, 269.1425, 0, 0, 0, 0, 0, 0);
// Aliens Class
AddPlayerClass(182, -1304.64, 2491.99, 86.70, 269.1425, 0, 0, 0, 0, 0, 0);
// Mapping
CreateObject(16475, -95.68, 1172.59, 13.13, -14.00, 0.00, 0.00);
CreateObject(16475, -95.76, 1178.68, 14.61, 27.00, 0.00, 0.00);
CreateObject(1308, -103.25, 1167.09, 18.73, 0.00, 88.00, 55.27);
CreateObject(18862, -88.09, 1165.50, 20.99, 0.00, 0.00, 0.00);
CreateObject(18862, -84.63, 1170.88, 20.99, 0.00, 0.00, 0.00);
CreateObject(18862, -84.44, 1175.86, 20.99, 0.00, 0.00, 0.00);
CreateObject(18862, -91.49, 1168.59, 20.99, 0.00, 0.00, 0.00);
CreateObject(18862, -94.01, 1171.33, 20.99, 0.00, 0.00, 0.00);
CreateObject(18862, -92.01, 1174.54, 20.99, 0.00, 0.00, 0.00);
CreateObject(18862, -88.67, 1172.12, 20.99, 0.00, 0.00, 0.00);
CreateObject(769, -84.88, 1021.06, 18.19, 0.00, 0.00, 0.00);
CreateObject(18862, -134.79, 1077.38, 22.30, 0.00, 0.00, 0.00);
CreateObject(18862, -147.39, 1078.44, 22.30, 0.00, 0.00, 0.00);
CreateObject(16564, -320.50, 1043.48, 9.39, -27.00, 0.00, 0.00);
CreateObject(18862, -321.62, 1045.87, 22.20, 0.00, 0.00, 0.00);
CreateObject(18862, -321.41, 1048.35, 22.20, 0.00, 0.00, 0.00);
CreateObject(18862, -323.73, 1043.46, 22.20, 0.00, 0.00, 0.00);
CreateObject(18862, -319.50, 1043.53, 22.20, 0.00, 0.00, 0.00);
CreateObject(18862, -319.66, 1047.22, 22.20, 0.00, 0.00, 0.00);
CreateObject(18862, -323.41, 1047.30, 22.20, 0.00, 0.00, 0.00);
CreateObject(3356, -368.29, 1173.02, 20.15, -18.00, 0.00, 46.00);
CreateObject(18862, -376.72, 1177.10, 19.99, 0.00, 0.00, 0.00);
CreateObject(18862, -371.50, 1176.46, 19.99, 0.00, 0.00, 0.00);
CreateObject(18862, -375.98, 1174.14, 19.99, 0.00, 0.00, 0.00);
CreateObject(18862, -148.24, 1228.74, 22.89, 0.00, 0.00, 0.00);
CreateObject(18862, -141.86, 1229.54, 22.89, 0.00, 0.00, 0.00);
CreateObject(16067, -89.59, 1230.80, 13.84, -44.00, 0.00, 0.00);
CreateObject(18862, -94.37, 1228.91, 19.54, 0.00, 0.00, 0.00);
CreateObject(18862, -87.90, 1229.36, 19.54, 0.00, 0.00, 0.00);
CreateObject(18862, -92.47, 1229.17, 19.54, 0.00, 0.00, 0.00);
CreateObject(18862, -90.16, 1229.74, 19.54, 0.00, 0.00, 0.00);
CreateObject(18862, -83.87, 1230.17, 19.54, 0.00, 0.00, 0.00);
CreateObject(18862, -81.05, 1229.15, 19.54, 0.00, 0.00, 0.00);
CreateObject(18862, -85.94, 1230.47, 19.54, 0.00, 0.00, 0.00);
CreateObject(18862, -96.28, 1229.15, 19.54, 0.00, 0.00, 0.00);
CreateObject(18862, -99.24, 1229.26, 19.54, 0.00, 0.00, 0.00);
CreateObject(18862, -97.73, 1229.52, 19.54, 0.00, 0.00, 0.00);
CreateObject(16767, 184.43, 1189.50, 18.92, 0.00, 18.00, 238.00);
CreateObject(18862, 179.31, 1171.41, 15.42, 0.00, 0.00, 0.00);
CreateObject(18862, 174.90, 1174.77, 15.42, 0.00, 0.00, 0.00);
CreateObject(18862, 170.80, 1180.96, 15.42, 0.00, 0.00, 0.00);
CreateObject(18862, 169.68, 1177.91, 15.42, 0.00, 0.00, 0.00);
CreateObject(18862, 184.20, 1171.93, 15.42, 0.00, 0.00, 0.00);
CreateObject(652, -127.44, 1229.92, 17.92, 0.00, -73.00, 0.00);
CreateObject(652, -128.63, 1223.64, 17.92, 0.00, -73.00, 0.00);
// A51
CreateObject(3268, 250.68, 1956.02, 16.60, 0.00, 0.00, 0.00);
CreateObject(3268, 250.50, 2023.54, 16.60, 0.00, 0.00, 0.00);
CreateObject(3268, 250.54, 1989.59, 16.60, 0.00, 0.00, 0.00);
CreateObject(987, 188.93, 1941.53, 16.78, 0.00, 0.00, 181.74);
CreateObject(987, 177.00, 1941.18, 16.78, 0.00, 0.00, 181.74);
CreateObject(987, 165.13, 1940.83, 16.78, 0.00, 0.00, 178.87);
CreateObject(987, 153.26, 1941.07, 16.78, 0.00, 0.00, 179.84);
CreateObject(987, 128.70, 1941.09, 17.70, 0.00, 0.00, 179.84);
CreateObject(987, 106.06, 1935.96, 17.13, 0.00, 0.00, 238.27);
CreateObject(987, 99.78, 1925.80, 16.52, 0.00, 0.00, 253.48);
CreateObject(987, 96.38, 1914.40, 16.52, 0.00, 0.00, 268.44);
CreateObject(987, 96.07, 1902.49, 16.52, 0.00, 0.00, 268.44);
CreateObject(987, 95.76, 1890.60, 16.52, 0.00, 0.00, 268.44);
CreateObject(987, 95.44, 1878.70, 16.52, 0.00, 0.00, 271.79);
CreateObject(987, 95.77, 1866.76, 16.52, 0.00, 0.00, 270.27);
CreateObject(987, 95.82, 1854.85, 16.52, 0.00, 0.00, 270.27);
CreateObject(987, 95.88, 1842.92, 16.52, 0.00, 0.00, 270.27);
CreateObject(987, 95.96, 1830.98, 16.52, 0.00, 0.00, 270.27);
CreateObject(987, 96.02, 1819.06, 16.52, 0.00, 0.00, 270.27);
CreateObject(16564, 190.02, 1791.10, 16.64, 0.00, 0.00, 0.00);
CreateObject(987, 96.19, 1807.19, 16.52, 0.00, 0.00, 335.64);
CreateObject(987, 107.04, 1802.26, 16.52, 0.00, 0.00, 335.64);
CreateObject(987, 117.93, 1797.37, 16.52, 0.00, 0.00, 335.64);
CreateObject(987, 128.81, 1792.46, 16.52, 0.00, 0.00, 339.04);
CreateObject(987, 263.88, 1797.95, 16.52, 0.00, 0.00, 2.63);
CreateObject(987, 139.91, 1788.22, 16.52, 0.00, 0.00, 353.73);
CreateObject(987, 151.76, 1786.93, 16.52, 0.00, 0.00, 355.97);
CreateObject(987, 116.79, 1941.11, 17.33, 0.00, 0.00, 205.61);
CreateObject(987, 163.68, 1786.11, 16.52, 0.00, 0.00, 0.88);
CreateObject(987, 199.31, 1786.16, 16.52, 0.00, 0.00, 0.88);
CreateObject(987, 211.23, 1786.35, 16.52, 0.00, 0.00, 16.36);
CreateObject(987, 222.66, 1789.71, 16.52, 0.00, 0.00, 16.36);
CreateObject(987, 234.09, 1793.02, 16.52, 0.00, 0.00, 16.36);
CreateObject(987, 245.56, 1796.40, 16.52, 0.00, 0.00, 5.68);
CreateObject(987, 257.46, 1797.59, 16.52, 0.00, 0.00, 3.01);
CreateObject(966, 142.02, 1941.32, 18.13, 0.00, 0.00, 1.34);
CreateObject(966, 128.35, 1941.04, 18.13, 0.00, 0.00, 180.93);
CreateObject(968, 128.28, 1941.05, 19.02, 0.00, 91.00, 1.25);
CreateObject(968, 142.01, 1941.26, 18.94, 0.00, 2.00, 1.00);
// Terrorists base
CreateObject(11440, -1339.55, 2487.21, 85.46, 356.86, 0.00, 3.14);
CreateObject(11447, -1320.43, 2482.11, 86.01, 356.86, 0.00, 3.14);
CreateObject(11442, -1303.70, 2475.89, 86.40, 356.86, 0.00, 3.14);
// Army Vehicles
CreateVehicle(520, 280.3869, 2019.2963, 18.4343, 267.4911, -1, -1, 1000000000);
CreateVehicle(520, 278.8931, 1951.6002, 18.4343, 267.4911, -1, -1, 1000000000);
CreateVehicle(520, 280.9838, 2029.2119, 18.4343, 267.4911, -1, -1, 1000000000);
CreateVehicle(520, 280.0546, 1995.0765, 18.4343, 267.4911, -1, -1, 1000000000);
CreateVehicle(520, 279.8658, 1984.7668, 18.4343, 267.4911, -1, -1, 1000000000);
CreateVehicle(520, 279.4037, 1961.5106, 18.4343, 267.4911, -1, -1, 1000000000);
CreateVehicle(425, 333.0273, 1984.6288, 18.4268, 88.1363, -1, -1, 1000000000);
CreateVehicle(425, 369.3878, 1987.0072, 18.4268, 88.1363, -1, -1, 1000000000);
CreateVehicle(425, 372.0827, 1970.0038, 18.4268, 88.1363, -1, -1, 1000000000);
CreateVehicle(425, 372.6617, 1953.7946, 18.4268, 88.1363, -1, -1, 1000000000);
CreateVehicle(425, 352.6810, 1954.1083, 18.4268, 88.1363, -1, -1, 1000000000);
CreateVehicle(425, 332.2912, 1954.1348, 18.4268, 88.1363, -1, -1, 1000000000);
CreateVehicle(425, 352.6836, 1969.6826, 18.4268, 88.1363, -1, -1, 1000000000);
CreateVehicle(425, 352.5871, 1986.2798, 18.4268, 88.1363, -1, -1, 1000000000);
CreateVehicle(425, 332.8239, 1969.4056, 18.4268, 88.1363, -1, -1, 1000000000);
CreateVehicle(563, 334.2466, 1923.0415, 18.7350, 92.6134, -1, -1, 1000000000);
CreateVehicle(563, 333.1371, 1937.5858, 18.7350, 92.6134, -1, -1, 1000000000);
CreateVehicle(563, 352.4083, 1939.0341, 18.7350, 92.6134, -1, -1, 1000000000);
CreateVehicle(563, 372.7940, 1938.8562, 18.7350, 92.6134, -1, -1, 1000000000);
CreateVehicle(563, 374.4583, 1925.7019, 18.7350, 92.6134, -1, -1, 1000000000);
CreateVehicle(563, 354.3630, 1924.3254, 18.7350, 92.6134, -1, -1, 1000000000);
CreateVehicle(548, 335.2745, 1886.5808, 19.7920, 91.7068, -1, -1, 1000000000);
CreateVehicle(548, 334.4916, 1905.3340, 19.7920, 91.7068, -1, -1, 1000000000);
CreateVehicle(548, 359.1139, 1906.2333, 19.7920, 91.7068, -1, -1, 1000000000);
CreateVehicle(548, 357.5904, 1888.4513, 19.7920, 91.7068, -1, -1, 1000000000);
CreateVehicle(432, 244.2163, 2018.7327, 17.5860, 90.9918, -1, -1, 1000000000);
CreateVehicle(432, 243.9664, 2030.1061, 17.5860, 90.9918, -1, -1, 1000000000);
CreateVehicle(432, 254.9097, 2018.8705, 17.5860, 90.9918, -1, -1, 1000000000);
CreateVehicle(432, 244.1296, 2024.4139, 17.5860, 90.9918, -1, -1, 1000000000);
CreateVehicle(432, 254.5243, 2030.3444, 17.5860, 90.9918, -1, -1, 1000000000);
CreateVehicle(432, 254.6145, 2024.5546, 17.5860, 90.9918, -1, -1, 1000000000);
CreateVehicle(470, 243.0673, 1983.3170, 17.2788, 90.2337, -1, -1, 1000000000);
CreateVehicle(470, 242.7884, 1996.8544, 17.2788, 90.2337, -1, -1, 1000000000);
CreateVehicle(470, 242.8950, 1993.5941, 17.2788, 90.2337, -1, -1, 1000000000);
CreateVehicle(470, 242.7959, 1990.2479, 17.2788, 90.2337, -1, -1, 1000000000);
CreateVehicle(470, 254.2489, 1983.6345, 17.2788, 90.2337, -1, -1, 1000000000);
CreateVehicle(470, 242.8772, 1986.7804, 17.2788, 90.2337, -1, -1, 1000000000);
CreateVehicle(470, 248.5005, 1983.4060, 17.2788, 90.2337, -1, -1, 1000000000);
CreateVehicle(470, 248.5156, 1986.7772, 17.2788, 90.2337, -1, -1, 1000000000);
CreateVehicle(470, 248.4439, 1990.3734, 17.2788, 90.2337, -1, -1, 1000000000);
CreateVehicle(470, 248.3759, 1993.6859, 17.2788, 90.2337, -1, -1, 1000000000);
CreateVehicle(470, 248.4248, 1996.9774, 17.2788, 90.2337, -1, -1, 1000000000);
CreateVehicle(470, 254.0816, 1996.8435, 17.2788, 90.2337, -1, -1, 1000000000);
CreateVehicle(470, 254.0907, 1993.6617, 17.2788, 90.2337, -1, -1, 1000000000);
CreateVehicle(470, 254.2218, 1990.4902, 17.2788, 90.2337, -1, -1, 1000000000);
CreateVehicle(470, 254.4837, 1986.9680, 17.2788, 90.2337, -1, -1, 1000000000);
CreateVehicle(433, 254.0895, 1962.1418, 18.0652, 90.5559, -1, -1, 1000000000);
CreateVehicle(433, 244.4519, 1961.8989, 18.0652, 90.5559, -1, -1, 1000000000);
CreateVehicle(433, 244.4962, 1958.0430, 18.0652, 90.5559, -1, -1, 1000000000);
CreateVehicle(433, 244.5631, 1954.0585, 18.0652, 90.5559, -1, -1, 1000000000);
CreateVehicle(433, 244.7287, 1950.0066, 18.0652, 90.5559, -1, -1, 1000000000);
CreateVehicle(433, 254.1273, 1949.7887, 18.0652, 90.5559, -1, -1, 1000000000);
CreateVehicle(433, 254.0858, 1954.2180, 18.0652, 90.5559, -1, -1, 1000000000);
CreateVehicle(433, 254.0918, 1958.2867, 18.0652, 90.5559, -1, -1, 1000000000);
CreateVehicle(417, 334.5786, 1845.9114, 18.3813, 92.1563, -1, -1, 1000000000);
CreateVehicle(417, 334.2475, 1866.9706, 18.3813, 92.1563, -1, -1, 1000000000);
CreateVehicle(470, 220.1728, 1919.6798, 17.4086, 179.2752, -1, -1, 1000000000);
CreateVehicle(470, 193.4504, 1919.6245, 17.4086, 179.2752, -1, -1, 1000000000);
CreateVehicle(470, 202.1851, 1919.9174, 17.4086, 179.2752, -1, -1, 1000000000);
CreateVehicle(470, 211.3454, 1920.0846, 17.4086, 179.2752, -1, -1, 1000000000);
CreateVehicle(433, 171.1080, 1810.6504, 18.0545, 0.0000, -1, -1, 1000000000);
CreateVehicle(433, 179.9923, 1810.7399, 18.0545, 0.0000, -1, -1, 1000000000);
CreateVehicle(433, 175.6091, 1810.5586, 18.0545, 0.0000, -1, -1, 1000000000);
// Terriosts cars
CreateVehicle(470, -1295.7692, 2512.1167, 87.0138, 0.0000, -1, -1, 1000000000);
CreateVehicle(470, -1306.2069, 2477.1514, 87.0138, 0.0000, -1, -1, 1000000000);
CreateVehicle(470, -1301.4200, 2480.7275, 87.0138, 0.0000, -1, -1, 1000000000);
CreateVehicle(470, -1311.5608, 2477.9917, 87.0138, 0.0000, -1, -1, 1000000000);
CreateVehicle(470, -1316.2039, 2512.2021, 87.0138, 0.0000, -1, -1, 1000000000);
CreateVehicle(471, -1286.3474, 2512.8235, 86.4351, 0.0000, -1, -1, 1000000000);
CreateVehicle(471, -1292.2863, 2513.6953, 86.4351, 0.0000, -1, -1, 1000000000);
CreateVehicle(471, -1290.7155, 2513.6541, 86.4351, 0.0000, -1, -1, 1000000000);
CreateVehicle(471, -1292.2632, 2510.9368, 86.4351, 0.0000, -1, -1, 1000000000);
CreateVehicle(471, -1290.7299, 2510.8909, 86.4351, 0.0000, -1, -1, 1000000000);
CreateVehicle(471, -1287.9143, 2514.9956, 86.4351, 0.0000, -1, -1, 1000000000);
CreateVehicle(471, -1286.2577, 2515.0637, 86.4351, 0.0000, -1, -1, 1000000000);
CreateVehicle(471, -1287.9281, 2512.7297, 86.4351, 0.0000, -1, -1, 1000000000);
CreateVehicle(554, -1297.2501, 2471.0718, 87.6182, 0.0000, -1, -1, 1000000000);
CreateVehicle(554, -1306.3879, 2512.1846, 87.2081, 0.0000, -1, -1, 1000000000);
CreateVehicle(554, -1311.6079, 2510.3328, 87.2081, 0.0000, -1, -1, 1000000000);
CreateVehicle(554, -1287.7026, 2529.2739, 87.6182, 0.0000, -1, -1, 1000000000);
return 1;
}
public OnGameModeExit()
{
TextDrawDestroy(timetext);
KillTimer(Ztimer);
return 1;
}
public OnPlayerCheat(playerid, cheatid) // If a player cheat
{
if(cheatid==1)
{
SendClientMessage(playerid,0xFF0000AA,"Sony: I don't like you cheaters here -.- [Cheat: MONEY]");
}
else if(cheatid==2)
{
SendClientMessage(playerid,0xFF0000AA,"Sony: I don't like you cheaters here -.- [Cheat: WEAPON]");
}
else if(cheatid==3)
{
SendClientMessage(playerid,0xFF0000AA,"Sony: I don't like you cheaters here -.- [Cheat: AMMO]");
}
else if(cheatid==4)
{
SendClientMessage(playerid,0xFF0000AA,"Sony: I don't like you cheaters here -.- [Cheat: BLOCK AMMO]");
}
else if(cheatid==5)
{
SendClientMessage(playerid,0xFF0000AA,"Sony: I don't like you cheaters here -.- [Cheat: SPEEDHACK]");
}
else if(cheatid==6)
{
SendClientMessage(playerid,0xFF0000AA,"Sony: I don't like you cheaters here -.- [Cheat: AIBREAK/TELEPORT]");
}
else if(cheatid==7)
{
SendClientMessage(playerid,0xFF0000AA,"Sony: I don't like you cheaters here -.- [Cheat: HEALTH]");
}
else if(cheatid==8)
{
SendClientMessage(playerid,0xFF0000AA,"Sony: I don't like you cheaters here -.- [Cheat: ARMOUR]");
}
return 1;
}
You didn't define the timer and the timetext textdraw, Did you script this or?