13.02.2010, 22:19
My FS is not working, pls help
and ive got this error msg. : (67) : error 017: undefined symbol "pickupid"
thx
and ive got this error msg. : (67) : error 017: undefined symbol "pickupid"
Код:
#include <a_samp> new DM; #define COLOR_GREEN 0x33AA33AA #define COLOR_RED 0xAA3333AA public OnFilterScriptInit() { print("\n--------------------------------------"); print(" Death Match, made by Rambo_NL"); print("--------------------------------------\n"); DM = CreatePickup(1254, 23, 2001.2679,1544.3771,13.5859, -1); CreateObject(3989, 1919.951904, 1587.735596, 2202.371826, 0.0000, 0.0000, 0.0000); CreateObject(972, 1893.556030, 1525.040283, 2197.142334, 0.0000, 359.1406, 88.2811); CreateObject(972, 1912.598999, 1525.114990, 2206.805908, 0.0000, 0.0000, 90.0000); CreateObject(972, 1937.401733, 1525.090576, 2206.811035, 0.0000, 0.0000, 90.0000); CreateObject(972, 1953.557617, 1534.486328, 2206.821777, 0.0000, 0.0000, 157.5000); CreateObject(972, 1956.237671, 1550.349243, 2206.821777, 0.0000, 0.0000, 180.0000); CreateObject(972, 1956.220337, 1574.465820, 2206.816895, 0.0000, 0.0000, 180.0000); CreateObject(972, 1956.211304, 1598.777832, 2206.815674, 0.0000, 0.0000, 180.0000); CreateObject(972, 1956.220093, 1623.315918, 2206.821777, 0.0000, 0.0000, 180.0000); CreateObject(972, 1956.259399, 1642.166382, 2206.821777, 0.0000, 0.0000, 180.0000); CreateObject(972, 1939.430786, 1650.288452, 2206.821777, 0.0000, 0.0000, 270.0000); CreateObject(972, 1915.780762, 1650.241211, 2206.888428, 0.0000, 0.0000, 270.0000); CreateObject(972, 1894.755615, 1650.334351, 2206.993652, 0.0000, 0.0000, 270.0000); CreateObject(972, 1883.904541, 1633.527466, 2206.821777, 0.0000, 0.0000, 0.0001); CreateObject(972, 1883.781616, 1609.952759, 2206.821777, 0.0000, 0.0000, 0.0001); CreateObject(972, 1883.829346, 1585.326660, 2206.821777, 0.0000, 0.0000, 0.0001); CreateObject(972, 1883.603882, 1562.155151, 2206.845459, 0.0000, 0.0000, 0.0001); CreateObject(972, 1884.025269, 1537.947144, 2207.560791, 0.0000, 0.0000, 0.0001); CreateObject(12918, 1934.353271, 1599.086792, 2206.819580, 0.0000, 0.0000, 135.0000); CreateObject(3887, 1928.367310, 1550.869751, 2215.663086, 0.0000, 0.0000, 321.0161); CreateObject(647, 1922.114014, 1584.865479, 2208.672607, 0.0000, 0.0000, 0.0000); CreateObject(647, 1904.326416, 1601.490234, 2208.778809, 0.0000, 0.0000, 0.0000); CreateObject(647, 1923.573364, 1614.549316, 2208.755615, 0.0000, 0.0000, 0.0000); CreateObject(647, 1900.479736, 1622.243164, 2208.828857, 0.0000, 0.0000, 0.0000); CreateObject(647, 1893.505981, 1598.777344, 2208.656982, 0.0000, 0.0000, 0.0000); CreateObject(647, 1910.805908, 1557.132324, 2208.626709, 0.0000, 0.0000, 0.0000); CreateObject(647, 1912.231201, 1543.789063, 2215.783203, 0.0000, 0.0000, 0.0000); CreateObject(622, 1910.377808, 1584.282837, 2207.031250, 0.0000, 0.0000, 211.9539); CreateObject(617, 1942.921631, 1614.603027, 2206.845459, 0.0000, 0.0000, 0.0000); CreateObject(617, 1908.026367, 1610.844604, 2206.962158, 0.0000, 0.0000, 0.0000); CreateObject(617, 1930.565430, 1581.441528, 2206.822510, 0.0000, 0.0000, 0.0000); CreateObject(3279, 1893.465942, 1634.784546, 2206.900635, 0.0000, 0.0000, 236.2501); CreateObject(3279, 1902.589111, 1577.888184, 2206.795410, 0.0000, 0.0000, 270.0000); CreateObject(3279, 1938.887817, 1570.251953, 2223.926270, 0.0000, 0.0000, 230.2339); CreateObject(1519, 1916.987305, 1640.180054, 2208.050537, 0.0000, 0.0000, 0.0000); CreateObject(1519, 1888.273193, 1592.803467, 2207.989502, 0.0000, 0.0000, 90.0000); CreateObject(13644, 1938.378784, 1633.277832, 2208.448975, 0.0000, 0.0000, 326.2500); CreateObject(1358, 1901.952148, 1543.573608, 2207.842529, 0.0000, 0.0000, 0.0000); CreateObject(12957, 1919.840820, 1597.332642, 2207.732666, 0.0000, 0.0000, 247.5000); CreateObject(5130, 1916.301392, 1535.402466, 2216.594971, 0.0000, 0.0000, 202.5000); CreateObject(4882, 1918.757690, 1595.192139, 2212.089600, 0.0000, 0.0000, 56.2500); return 1; } public OnFilterScriptExit() { return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/joinDM", cmdtext, true, 10) == 0) { if(pickupid == DM) <==================================== this is line 67 SetPlayerPos(playerid, 1919.124390, 1594.762207, 2214.718750); SendClientMessage(playerid, COLOR_RED, "Welcome to the death match map."); GivePlayerWeapon(playerid,34, 99999); GivePlayerWeapon(playerid,29, 99999); GivePlayerWeapon(playerid,27, 99999); } else{ SendClientMessage(playerid, COLOR_RED, "You are not at the right spot, go to the pirate ship in lv."); return 1; } if (strcmp("/leaveDM", cmdtext, true, 10) == 0) { SetPlayerPos(playerid, 2001.2679,1544.3771,13.5859); SendClientMessage(playerid, COLOR_RED, "You left DM, i hope you enjoyed it."); ResetPlayerWeapons(playerid); return 1; } return 0; } public OnPlayerPickUpPickup(playerid, pickupid) { if(pickupid == DM) SendClientMessage(playerid, COLOR_GREEN, "Type /dm to join the death match."); }