Problems with undefined symbol "playerid" [+REP]
#1

This is for a current filterscript/mapping that I'm trying to put in the server and the following errors are showing.

Код HTML:
C:\Users\Administrator\Desktop\PGN SERVERS\SAMP SERVER\filterscripts\cityhall.pwn(197) : error 017: undefined symbol "playerid"
C:\Users\Administrator\Desktop\PGN SERVERS\SAMP SERVER\filterscripts\cityhall.pwn(198) : error 017: undefined symbol "playerid"
C:\Users\Administrator\Desktop\PGN SERVERS\SAMP SERVER\filterscripts\cityhall.pwn(199) : error 017: undefined symbol "playerid"
C:\Users\Administrator\Desktop\PGN SERVERS\SAMP SERVER\filterscripts\cityhall.pwn(200) : error 017: undefined symbol "playerid"
C:\Users\Administrator\Desktop\PGN SERVERS\SAMP SERVER\filterscripts\cityhall.pwn(201) : error 017: undefined symbol "playerid"
C:\Users\Administrator\Desktop\PGN SERVERS\SAMP SERVER\filterscripts\cityhall.pwn(202) : error 017: undefined symbol "playerid"
C:\Users\Administrator\Desktop\PGN SERVERS\SAMP SERVER\filterscripts\cityhall.pwn(203) : error 017: undefined symbol "playerid"
C:\Users\Administrator\Desktop\PGN SERVERS\SAMP SERVER\filterscripts\cityhall.pwn(204) : error 017: undefined symbol "playerid"
C:\Users\Administrator\Desktop\PGN SERVERS\SAMP SERVER\filterscripts\cityhall.pwn(205) : error 017: undefined symbol "playerid"
C:\Users\Administrator\Desktop\PGN SERVERS\SAMP SERVER\filterscripts\cityhall.pwn(206) : error 017: undefined symbol "playerid"
C:\Users\Administrator\Desktop\PGN SERVERS\SAMP SERVER\filterscripts\cityhall.pwn(207) : error 017: undefined symbol "playerid"
Reply
#2

Show us your code please.
Reply
#3

Код:
#include <a_samp>
#include <streamer>
#include <core>
#include <float>

public OnFilterScriptExit()
{
	for(new var0 = 0; var0 < 500; var0++)
	{
		if(GetPlayerVirtualWorld(var0) || GetPlayerInterior(var0))
		{
			TogglePlayerControllable(var0, false);
		}
	}
	return 0;
}

public OnFilterScriptInit()
{
	for(new var0 = 0; var0 < 500; var0++)
	{
		if(GetPlayerVirtualWorld(var0) || GetPlayerInterior(var0))
		{
			TogglePlayerControllable(var0, false);
		}
	}
	CreateObject(3851, 1473.61938, -1751.13135, 26.19047,   0.00000, 0.00000, -89.93999);
	CreateObject(3851, 1489.90369, -1750.96204, 26.21426,   0.00000, 0.00000, -89.93999);
	CreateObject(3851, 1477.78772, -1751.11438, 26.16380,   0.00000, 0.00000, -89.93999);
	CreateObject(19121, 1502.61230, -1745.83276, 13.28595,   0.00000, 0.00000, 0.00000);
	CreateObject(19121, 1461.51001, -1748.05249, 14.96810,   0.00000, 0.00000, 0.00000);
	CreateObject(19121, 1502.09863, -1746.38843, 13.69219,   0.00000, 0.00000, 0.00000);
	CreateObject(19121, 1501.59094, -1746.93884, 14.10160,   0.00000, 0.00000, 0.00000);
	CreateObject(19121, 1501.06592, -1747.47925, 14.56907,   0.00000, 0.00000, 0.00000);
	CreateObject(19121, 1500.54822, -1748.02869, 14.96810,   0.00000, 0.00000, 0.00000);
	CreateObject(19121, 1460.98022, -1747.49670, 14.56907,   0.00000, 0.00000, 0.00000);
	CreateObject(19121, 1460.49512, -1746.97192, 14.10160,   0.00000, 0.00000, 0.00000);
	CreateObject(19121, 1459.96252, -1746.36938, 13.69219,   0.00000, 0.00000, 0.00000);
	CreateObject(19121, 1459.46631, -1745.83179, 13.28595,   0.00000, 0.00000, 0.00000);
	CreateObject(3851, 1489.90369, -1750.96204, 22.22951,   0.00000, 0.00000, -89.93999);
	CreateObject(3851, 1472.14929, -1751.14270, 22.21661,   0.00000, 0.00000, -89.93999);
	CreateObject(2614, 1492.36084, -1750.81470, 30.00535,   0.00000, 0.00000, -180.12013);
	CreateObject(2614, 1485.92932, -1750.80396, 30.00535,   0.00000, 0.00000, -180.12013);
	CreateObject(2614, 1488.84998, -1750.78308, 30.00535,   0.00000, 0.00000, -180.12013);
	CreateObject(2614, 1469.85645, -1750.62964, 30.00535,   0.00000, 0.00000, -180.12013);
	CreateObject(2614, 1482.82007, -1750.84509, 30.00535,   0.00000, 0.00000, -180.12013);
	CreateObject(2614, 1479.37317, -1750.72583, 30.00535,   0.00000, 0.00000, -180.12013);
	CreateObject(2614, 1475.89722, -1750.70203, 30.00535,   0.00000, 0.00000, -180.12013);
	CreateObject(2614, 1472.95837, -1750.64832, 30.00535,   0.00000, 0.00000, -180.12013);
	CreateObject(1231, 1503.22021, -1749.83533, 15.25601,   0.00000, 0.00000, -0.36001);
	CreateObject(1231, 1458.96008, -1749.87634, 15.25601,   0.00000, 0.00000, -0.36001);
	CreateObject(1364, 1497.82971, -1749.34753, 15.21343,   0.00000, 0.00000, -180.23994);
	CreateObject(1364, 1464.58862, -1749.45740, 15.21343,   0.00000, 0.00000, -180.41994);
	CreateObject(638, 1515.06189, -1755.61353, 13.23696,   0.00000, 0.00000, -270.18015);
	CreateObject(1232, 1506.95801, -1755.53162, 15.17258,   0.00000, 0.00000, 0.00000);
	CreateObject(638, 1505.46118, -1755.62390, 13.23696,   0.00000, 0.00000, -270.18015);
	CreateObject(1232, 1516.59058, -1755.50439, 15.17258,   0.00000, 0.00000, 0.00000);
	CreateObject(638, 1508.63281, -1755.61743, 13.23696,   0.00000, 0.00000, -270.18015);
	CreateObject(1232, 1510.20129, -1755.53821, 15.17258,   0.00000, 0.00000, 0.00000);
	CreateObject(638, 1511.87561, -1755.61267, 13.23696,   0.00000, 0.00000, -270.18015);
	CreateObject(1232, 1513.41907, -1755.52649, 15.17258,   0.00000, 0.00000, 0.00000);
	CreateObject(1232, 1522.96045, -1755.53235, 15.17258,   0.00000, 0.00000, 0.00000);
	CreateObject(638, 1518.23938, -1755.59534, 13.23696,   0.00000, 0.00000, -270.18015);
	CreateObject(638, 1524.68896, -1755.61462, 13.23696,   0.00000, 0.00000, -270.18015);
	CreateObject(1232, 1519.75757, -1755.56897, 15.17258,   0.00000, 0.00000, 0.00000);
	CreateObject(638, 1521.42603, -1755.60840, 13.23696,   0.00000, 0.00000, -270.18015);
	CreateObject(1232, 1526.21521, -1755.53357, 15.17258,   0.00000, 0.00000, 0.00000);
	CreateObject(638, 1527.93127, -1755.60376, 13.23696,   0.00000, 0.00000, -270.18015);
	CreateObject(1232, 1529.46021, -1755.56116, 15.17258,   0.00000, 0.00000, 0.00000);
	CreateObject(638, 1531.15173, -1755.63123, 13.23696,   0.00000, 0.00000, -270.18015);
	CreateObject(1232, 1532.63440, -1755.62244, 15.17258,   0.00000, 0.00000, 0.00000);
	CreateObject(638, 1534.30981, -1755.59192, 13.23696,   0.00000, 0.00000, -270.18015);
	CreateObject(638, 1537.45215, -1755.60303, 13.23696,   0.00000, 0.00000, -270.18015);
	CreateObject(1232, 1535.79333, -1755.56213, 15.17258,   0.00000, 0.00000, 0.00000);
	CreateObject(1232, 1538.92798, -1755.55579, 15.17258,   0.00000, 0.00000, 0.00000);
	CreateObject(638, 1540.59668, -1755.60547, 13.23696,   0.00000, 0.00000, -270.18015);
	CreateObject(1232, 1542.07166, -1755.52014, 15.17258,   0.00000, 0.00000, 0.00000);
	CreateObject(638, 1543.69739, -1755.59985, 13.23696,   0.00000, 0.00000, -270.18015);
	CreateObject(1361, 1489.39343, -1750.23804, 15.19085,   0.00000, 0.00000, 0.00000);
	CreateObject(1361, 1483.83167, -1750.24670, 15.19085,   0.00000, 0.00000, 0.00000);
	CreateObject(1361, 1478.40076, -1750.25378, 15.19085,   0.00000, 0.00000, 0.00000);
	CreateObject(1361, 1472.95520, -1750.19397, 15.19085,   0.00000, 0.00000, 0.00000);
	CreateObject(638, 1431.56836, -1755.56104, 13.21045,   0.00000, 0.00000, -89.75995);
	CreateObject(1232, 1455.30078, -1755.50476, 15.15580,   0.00000, 0.00000, 0.00000);
	CreateObject(638, 1456.94275, -1755.46143, 13.21045,   0.00000, 0.00000, -89.75995);
	CreateObject(1232, 1448.94043, -1755.53589, 15.15580,   0.00000, 0.00000, 0.00000);
	CreateObject(638, 1453.76184, -1755.47766, 13.21045,   0.00000, 0.00000, -89.75995);
	CreateObject(1232, 1452.11621, -1755.49268, 15.15580,   0.00000, 0.00000, 0.00000);
	CreateObject(638, 1450.58203, -1755.52490, 13.21045,   0.00000, 0.00000, -89.75995);
	CreateObject(1232, 1445.82031, -1755.59143, 15.15580,   0.00000, 0.00000, 0.00000);
	CreateObject(638, 1447.41382, -1755.53979, 13.21045,   0.00000, 0.00000, -89.75995);
	CreateObject(1232, 1420.41504, -1755.52185, 15.15580,   0.00000, 0.00000, 0.00000);
	CreateObject(638, 1444.26941, -1755.54956, 13.21045,   0.00000, 0.00000, -89.75995);
	CreateObject(1232, 1442.61938, -1755.50293, 15.15580,   0.00000, 0.00000, 0.00000);
	CreateObject(638, 1441.10107, -1755.54895, 13.21045,   0.00000, 0.00000, -89.75995);
	CreateObject(1232, 1439.45935, -1755.49023, 15.15580,   0.00000, 0.00000, 0.00000);
	CreateObject(638, 1437.90771, -1755.54565, 13.21045,   0.00000, 0.00000, -89.75995);
	CreateObject(1232, 1436.27380, -1755.50171, 15.15580,   0.00000, 0.00000, 0.00000);
	CreateObject(638, 1434.74915, -1755.56104, 13.21045,   0.00000, 0.00000, -89.75995);
	CreateObject(1232, 1433.09631, -1755.52173, 15.15580,   0.00000, 0.00000, 0.00000);
	CreateObject(638, 1418.84241, -1755.56042, 13.21045,   0.00000, 0.00000, -89.75995);
	CreateObject(1232, 1429.88513, -1755.52063, 15.15580,   0.00000, 0.00000, 0.00000);
	CreateObject(638, 1428.36145, -1755.56445, 13.21045,   0.00000, 0.00000, -89.75995);
	CreateObject(1232, 1426.71619, -1755.52319, 15.15580,   0.00000, 0.00000, 0.00000);
	CreateObject(638, 1425.17603, -1755.58545, 13.21045,   0.00000, 0.00000, -89.75995);
	CreateObject(1232, 1423.59290, -1755.55371, 15.15580,   0.00000, 0.00000, 0.00000);
	CreateObject(638, 1422.06287, -1755.58350, 13.21045,   0.00000, 0.00000, -89.75995);
	CreateObject(19121, 1494.58606, -1753.86206, 15.37731,   0.00000, 0.00000, 0.00000);
	CreateObject(19121, 1494.61340, -1756.06531, 16.99255,   0.00000, 0.00000, 0.00000);
	CreateObject(19121, 1494.61707, -1754.44495, 15.75723,   0.00000, 0.00000, 0.00000);
	CreateObject(19121, 1494.62231, -1755.00659, 16.23495,   0.00000, 0.00000, 0.00000);
	CreateObject(19121, 1494.58862, -1755.55591, 16.65296,   0.00000, 0.00000, 0.00000);
	CreateObject(19121, 1494.63538, -1762.55225, 18.30481,   0.00000, 0.00000, 0.00000);
	CreateObject(19121, 1494.61438, -1761.45728, 17.47089,   0.00000, 0.00000, 0.00000);
	CreateObject(19121, 1494.60901, -1762.02283, 17.83020,   0.00000, 0.00000, 0.00000);
	CreateObject(19121, 1467.88647, -1756.05444, 16.99334,   0.00000, 0.00000, 0.00000);
	CreateObject(19121, 1467.83411, -1753.90051, 15.33466,   0.00000, 0.00000, 0.00000);
	CreateObject(19121, 1467.82825, -1754.41052, 15.75463,   0.00000, 0.00000, 0.00000);
	CreateObject(19121, 1467.82751, -1755.02563, 16.19464,   0.00000, 0.00000, 0.00000);
	CreateObject(19121, 1467.85730, -1755.54517, 16.57402,   0.00000, 0.00000, 0.00000);
	CreateObject(19121, 1467.89685, -1762.57068, 18.27605,   0.00000, 0.00000, 0.00000);
	CreateObject(19121, 1467.90320, -1761.44519, 17.41954,   0.00000, 0.00000, 0.00000);
	CreateObject(19121, 1467.91077, -1762.02612, 17.85905,   0.00000, 0.00000, 0.00000);
	CreateObject(2010, 1484.75757, -1772.24622, 17.72276,   0.00000, 0.00000, 0.00000);
	CreateObject(2010, 1477.38831, -1772.24036, 17.72974,   0.00000, 0.00000, 0.00000);
	CreateObject(2614, 1488.65271, -1772.58545, 23.70190,   0.00000, 0.00000, -180.35991);
	CreateObject(2614, 1481.15283, -1772.60706, 23.70190,   0.00000, 0.00000, -180.35991);
	CreateObject(2614, 1473.53906, -1772.56360, 23.70190,   0.00000, 0.00000, -180.35991);
	CreateObject(2010, 1469.66064, -1772.26379, 17.72974,   0.00000, 0.00000, 0.00000);
	CreateObject(2010, 1492.34692, -1772.25720, 17.72276,   0.00000, 0.00000, 0.00000);
	CreateObject(1232, 1467.90222, -1772.30383, 20.35089,   0.00000, 0.00000, 0.00000);
	CreateObject(1232, 1494.34387, -1772.13123, 20.35089,   0.00000, 0.00000, 0.00000);
	CreateObject(1361, 1489.35706, -1758.42102, 17.26964,   0.00000, 0.00000, 0.00000);
	CreateObject(1361, 1483.87146, -1758.59448, 17.26964,   0.00000, 0.00000, 0.00000);
	CreateObject(1361, 1478.48877, -1758.55835, 17.26964,   0.00000, 0.00000, 0.00000);
	CreateObject(1361, 1472.92065, -1758.58899, 17.26964,   0.00000, 0.00000, 0.00000);
	CreateObject(1232, 1473.02563, -1760.83264, 19.15358,   0.00000, 0.00000, 0.00000);
	CreateObject(1232, 1478.49463, -1760.76917, 19.15358,   0.00000, 0.00000, 0.00000);
	CreateObject(1232, 1483.85742, -1760.83325, 19.15358,   0.00000, 0.00000, 0.00000);
	CreateObject(1232, 1489.40552, -1760.73828, 19.15358,   0.00000, 0.00000, 0.00000);
	CreateObject(1232, 1472.98669, -1752.58008, 17.06057,   0.00000, 0.00000, 0.00000);
	CreateObject(1232, 1478.40466, -1752.49695, 17.06057,   0.00000, 0.00000, 0.00000);
	CreateObject(1232, 1483.87500, -1752.60913, 17.06057,   0.00000, 0.00000, 0.00000);
	CreateObject(1232, 1489.40454, -1752.49805, 17.06057,   0.00000, 0.00000, 0.00000);
	CreateObject(638, 1467.98425, -1770.44861, 18.36249,   0.00000, 0.00000, 0.00000);
	CreateObject(638, 1467.99280, -1767.79956, 18.36249,   0.00000, 0.00000, 0.00000);
	CreateObject(638, 1467.99231, -1765.13196, 18.36249,   0.00000, 0.00000, 0.00000);
	CreateObject(1232, 1467.94043, -1763.28992, 20.35089,   0.00000, 0.00000, 0.00000);
	CreateObject(638, 1494.39392, -1770.45581, 18.36249,   0.00000, 0.00000, 0.00000);
	CreateObject(638, 1494.38855, -1767.78027, 18.36249,   0.00000, 0.00000, 0.00000);
	CreateObject(638, 1494.39233, -1765.12219, 18.36249,   0.00000, 0.00000, 0.00000);
	CreateObject(1232, 1494.30444, -1763.28796, 20.35089,   0.00000, 0.00000, 0.00000);
	CreateObject(1361, 1477.67664, -1771.07849, 18.50939,   0.00000, 0.00000, 0.00000);
	CreateObject(1361, 1477.70227, -1764.39734, 18.50939,   0.00000, 0.00000, 0.00000);
	CreateObject(19121, 1477.70996, -1769.31213, 18.30481,   0.00000, 0.00000, 0.00000);
	CreateObject(19121, 1477.74365, -1767.67761, 18.30481,   0.00000, 0.00000, 0.00000);
	CreateObject(19121, 1477.71167, -1765.98438, 18.30481,   0.00000, 0.00000, 0.00000);
	CreateObject(1360, 1494.13171, -1758.80750, 17.30166,   0.00000, 0.00000, 0.00000);
	CreateObject(1360, 1468.27832, -1758.69409, 17.30166,   0.00000, 0.00000, 0.00000);
	CreateObject(970, 1536.70837, -1737.57141, 13.06778,   0.00000, 0.00000, 0.00000);
	CreateObject(2240, 1523.63379, -1737.67786, 12.97557,   0.00000, 0.00000, 0.00000);
	CreateObject(970, 1515.79858, -1737.59460, 13.06778,   0.00000, 0.00000, 0.00000);
	CreateObject(2240, 1518.38879, -1737.66663, 12.97557,   0.00000, 0.00000, 0.00000);
	CreateObject(970, 1521.02747, -1737.59290, 13.06778,   0.00000, 0.00000, 0.00000);
	CreateObject(2240, 1534.02161, -1737.70984, 12.97557,   0.00000, 0.00000, 0.00000);
	CreateObject(970, 1526.17859, -1737.58496, 13.06778,   0.00000, 0.00000, 0.00000);
	CreateObject(2240, 1528.75403, -1737.70178, 12.97557,   0.00000, 0.00000, 0.00000);
	CreateObject(970, 1531.36963, -1737.57056, 13.06778,   0.00000, 0.00000, 0.00000);
	CreateObject(2240, 1539.34204, -1737.73499, 12.97557,   0.00000, 0.00000, 0.00000);
	CreateObject(970, 1542.00720, -1737.56360, 13.06778,   0.00000, 0.00000, 0.00000);
	CreateObject(2240, 1544.60120, -1737.69971, 12.97557,   0.00000, 0.00000, 0.00000);
	CreateObject(970, 1547.24695, -1737.57361, 13.06778,   0.00000, 0.00000, 0.00000);
	CreateObject(2240, 1549.86096, -1737.72693, 12.97557,   0.00000, 0.00000, 0.00000);
	CreateObject(970, 1552.46716, -1737.58154, 13.06778,   0.00000, 0.00000, 0.00000);
	CreateObject(2240, 1555.06494, -1737.70361, 12.97557,   0.00000, 0.00000, 0.00000);
	CreateObject(970, 1439.34985, -1737.63318, 13.04649,   0.00000, 0.00000, 0.00000);
	CreateObject(2240, 1436.76843, -1737.75659, 12.95661,   0.00000, 0.00000, 0.00000);
	CreateObject(970, 1434.16870, -1737.62122, 13.04649,   0.00000, 0.00000, 0.00000);
	CreateObject(2240, 1431.50806, -1737.75940, 12.95661,   0.00000, 0.00000, 0.00000);
	CreateObject(970, 1428.94849, -1737.62524, 13.04649,   0.00000, 0.00000, 0.00000);
	CreateObject(2240, 1426.32776, -1737.82227, 12.95661,   0.00000, 0.00000, 0.00000);
	CreateObject(970, 1423.76758, -1737.61841, 13.04649,   0.00000, 0.00000, 0.00000);
	CreateObject(2240, 1421.10815, -1737.79529, 12.95661,   0.00000, 0.00000, 0.00000);
	CreateObject(970, 1418.52844, -1737.61023, 13.04649,   0.00000, 0.00000, 0.00000);
	CreateObject(2240, 1415.90540, -1737.79150, 12.95661,   0.00000, 0.00000, 0.00000);
	CreateObject(970, 1413.32654, -1737.60571, 13.04649,   0.00000, 0.00000, 0.00000);
	CreateObject(2240, 1410.74451, -1737.76343, 12.95661,   0.00000, 0.00000, 0.00000);
	CreateObject(1231, 1489.35754, -1742.52405, 15.25601,   0.00000, 0.00000, -0.36001);
	CreateObject(1231, 1483.93762, -1742.52466, 15.25601,   0.00000, 0.00000, -0.36001);
	CreateObject(1231, 1478.33459, -1742.51917, 15.25601,   0.00000, 0.00000, -0.36001);
	CreateObject(1231, 1472.97449, -1742.51379, 15.25601,   0.00000, 0.00000, -0.36001);
	CreateObject(2240, 1468.19336, -1760.64124, 16.97310,   0.00000, 0.00000, 0.00000);
	CreateObject(2240, 1468.22107, -1756.79980, 16.97310,   0.00000, 0.00000, 0.00000);
	CreateObject(2240, 1494.19556, -1756.88696, 16.98898,   0.00000, 0.00000, 0.00000);
	CreateObject(2240, 1494.10522, -1760.72034, 16.98898,   0.00000, 0.00000, 0.00000);

	RemoveBuildingForPlayer(playerid, 5535, 1918.8516, -1776.3281, 16.9766, 0.25);
	RemoveBuildingForPlayer(playerid, 1524, 1910.1641, -1779.6641, 18.7500, 0.25);
	RemoveBuildingForPlayer(playerid, 5681, 1921.4844, -1778.9141, 18.5781, 0.25);
	RemoveBuildingForPlayer(playerid, 5409, 1918.8516, -1776.3281, 16.9766, 0.25);
	RemoveBuildingForPlayer(playerid, 1676, 1941.6563, -1778.4531, 14.1406, 0.25);
	RemoveBuildingForPlayer(playerid, 1676, 1941.6563, -1774.3125, 14.1406, 0.25);
	RemoveBuildingForPlayer(playerid, 955, 1928.7344, -1772.4453, 12.9453, 0.25);
	RemoveBuildingForPlayer(playerid, 1676, 1941.6563, -1771.3438, 14.1406, 0.25);
	RemoveBuildingForPlayer(playerid, 1676, 1941.6563, -1767.2891, 14.1406, 0.25);
	RemoveBuildingForPlayer(playerid, 1226, 1951.9297, -1756.5156, 16.3594, 0.25);
	RemoveBuildingForPlayer(playerid, 1283, 1952.5156, -1751.3750, 15.5547, 0.25);
	
	CreateObject(10789, 1925.68054, -1774.45166, 15.20000,   0.00000, 0.00000, 180.00000);
	CreateObject(19425, 1912.76282, -1762.12256, 12.43050,   -25.00000, 0.00000, 0.00000);
	CreateObject(19425, 1910.42786, -1762.12305, 12.43000,   -25.00000, 0.00000, 0.00000);
	CreateObject(19425, 1938.26697, -1762.09888, 12.43000,   -25.00000, 0.00000, 0.00000);
	CreateObject(19425, 1941.43713, -1762.09802, 12.42500,   -25.00000, 0.00000, 0.00000);
	CreateObject(19425, 1944.73560, -1762.09888, 12.43000,   -25.00000, 0.00000, 0.00000);
	CreateObject(19425, 1945.03906, -1762.09888, 12.42980,   -25.00000, 0.00000, 0.00000);
	CreateObject(19425, 1951.98547, -1790.74463, 12.43000,   -25.00000, 0.00000, -90.00000);
	CreateObject(19425, 1951.98499, -1787.48035, 12.43000,   -25.00000, 0.00000, -90.00000);
	CreateObject(19425, 1951.98596, -1784.32117, 12.42880,   -25.00000, 0.00000, -90.00000);
	CreateObject(19425, 1951.98547, -1783.93616, 12.43000,   -25.00000, 0.00000, -90.00000);
	CreateObject(11677, 1951.66321, -1761.74963, 16.90000,   0.00000, 0.00000, 45.00000);
	CreateObject(3783, 1934.82239, -1765.85449, 10.24860,   0.00000, 0.00000, 0.00000);
	CreateObject(3783, 1934.77588, -1773.13086, 10.24800,   0.00000, 0.00000, 0.00000);
	CreateObject(3783, 1934.76855, -1780.37476, 10.24790,   0.00000, 0.00000, 0.00000);
	CreateObject(3783, 1939.87146, -1780.37476, 10.24700,   0.00000, 0.00000, 0.00000);
	CreateObject(3783, 1939.99255, -1787.59656, 10.24680,   0.00000, 0.00000, 0.00000);
	CreateObject(3783, 1940.00879, -1788.79675, 10.24600,   0.00000, 0.00000, 0.00000);
	CreateObject(3783, 1920.40332, -1789.14014, 10.24590,   0.00000, 0.00000, 0.00000);
	CreateObject(3783, 1920.78809, -1765.88525, 10.24810,   0.00000, 0.00000, 0.00000);
	CreateObject(3783, 1920.46729, -1773.11658, 10.24900,   0.00000, 0.00000, 0.00000);
	CreateObject(3783, 1920.57446, -1780.36365, 10.24900,   0.00000, 0.00000, 0.00000);
	CreateObject(3783, 1920.70093, -1783.52075, 10.24700,   0.00000, 0.00000, 0.00000);
	CreateObject(3783, 1922.06335, -1786.68738, 12.32500,   0.00000, 0.00000, 0.00000);
	CreateObject(3783, 1929.99121, -1786.70117, 12.32000,   0.00000, 0.00000, 0.00000);
	CreateObject(8572, 1940.97363, -1786.15906, 16.58000,   0.00000, 0.00000, 90.00000);
	CreateObject(11384, 1926.80261, -1778.71899, 12.58000,   0.00000, 0.00000, 0.00000);
	CreateObject(11384, 1932.52783, -1792.91309, 12.58000,   0.00000, 0.00000, 0.00000);
	CreateObject(11384, 1908.27722, -1777.59973, 12.58000,   0.00000, 0.00000, 0.00000);
	CreateObject(1676, 1921.69739, -1763.15002, 14.30000,   0.00000, 0.00000, 0.00000);
	CreateObject(1676, 1929.38159, -1763.15002, 14.30000,   0.00000, 0.00000, 0.00000);
	CreateObject(1676, 1921.68030, -1772.38000, 14.30000,   0.00000, 0.00000, 0.00000);
	CreateObject(1676, 1929.54614, -1772.38843, 14.30000,   0.00000, 0.00000, 0.00000);
	CreateObject(1676, 1935.16602, -1772.38098, 14.30000,   0.00000, 0.00000, 0.00000);
	CreateObject(1537, 1937.63037, -1781.58911, 12.60000,   0.00000, 0.00000, 180.00000);
	CreateObject(1537, 1936.14600, -1781.58484, 12.60000,   0.00000, 0.00000, 180.00000);
	CreateObject(1886, 1911.67700, -1781.27307, 17.10000,   15.00000, 0.00000, 150.00000);
	CreateObject(1886, 1911.98816, -1760.03308, 17.10000,   15.00000, 0.00000, 35.00000);
	CreateObject(1886, 1912.29675, -1776.04053, 17.10000,   15.00000, 0.00000, 90.00000);
	CreateObject(1886, 1939.67810, -1780.95850, 17.10000,   15.00000, 0.00000, 180.00000);
	CreateObject(1886, 1939.56323, -1761.43164, 17.10000,   15.00000, 0.00000, -50.00000);
	CreateObject(973, 1931.52661, -1762.38843, 13.24000,   0.00000, 0.00000, 0.00000);
	CreateObject(973, 1922.21826, -1762.38794, 13.24000,   0.00000, 0.00000, 0.00000);
	CreateObject(973, 1919.74109, -1762.38867, 13.24000,   0.00000, 0.00000, 0.00000);
	CreateObject(973, 1919.74109, -1763.72449, 13.00000,   0.00000, 0.00000, 180.00000);
	CreateObject(973, 1929.00867, -1763.70996, 13.00000,   0.00000, 0.00000, 180.17000);
	CreateObject(973, 1931.52661, -1763.69995, 13.00000,   0.00000, 0.00000, 180.03000);
	CreateObject(973, 1931.60266, -1773.02454, 13.00000,   0.00000, 0.00000, 180.17000);
	CreateObject(973, 1922.31140, -1773.05505, 13.00000,   0.00000, 0.00000, 180.17000);
	CreateObject(973, 1919.74109, -1773.06006, 13.00000,   0.00000, 0.00000, 180.17000);
	CreateObject(973, 1919.74109, -1771.75000, 13.00000,   0.00000, 0.00000, -0.18000);
	CreateObject(973, 1928.98315, -1771.76453, 13.00000,   0.00000, 0.00000, 0.00000);
	CreateObject(973, 1931.60266, -1771.76404, 13.00000,   0.00000, 0.00000, 0.00000);
	CreateObject(1283, 1964.18225, -1763.62427, 15.59380,   356.85840, 0.00000, 0.00000);
	CreateObject(8843, 1925.18835, -1776.34583, 12.55400,   0.00000, 0.00000, -90.00000);
	CreateObject(8843, 1924.84912, -1765.81775, 12.55400,   0.00000, 0.00000, 90.00000);
	CreateObject(8843, 1924.99133, -1769.65222, 12.55400,   0.00000, 0.00000, -90.00000);
	CreateObject(973, 1946.95801, -1766.74170, 13.00000,   0.00000, 0.00000, 90.00000);
	CreateObject(973, 1946.95679, -1773.76196, 13.00000,   0.00000, 0.00000, 90.00000);
	CreateObject(3783, 1934.82043, -1773.09998, 10.24860,   0.00000, 0.00000, 0.00000);
	CreateObject(1215, 1947.14783, -1779.03882, 13.10000,   0.00000, 0.00000, 0.00000);
	CreateObject(1215, 1947.02332, -1778.58398, 13.10000,   0.00000, 0.00000, 0.00000);
	CreateObject(1215, 1952.82837, -1761.71118, 19.40000,   0.00000, 0.00000, 0.00000);
	CreateObject(1215, 1950.49060, -1761.76770, 19.40000,   0.00000, 0.00000, 0.00000);
	CreateObject(1215, 1939.78235, -1759.53418, 17.75000,   0.00000, 0.00000, 0.00000);
	CreateObject(1215, 1911.47986, -1759.44897, 17.75000,   0.00000, 0.00000, 0.00000);
	CreateObject(1215, 1911.58057, -1788.97424, 17.75000,   0.00000, 0.00000, 0.00000);
	CreateObject(1215, 1939.72217, -1788.97913, 17.75000,   0.00000, 0.00000, 0.00000);
	CreateObject(1215, 1936.22534, -1763.77466, 13.30000,   0.00000, 0.00000, 0.00000);
	CreateObject(1215, 1936.65112, -1763.06396, 13.30000,   0.00000, 0.00000, 0.00000);
	CreateObject(1215, 1936.23047, -1762.32581, 13.30000,   0.00000, 0.00000, 0.00000);
	CreateObject(1215, 1936.32227, -1771.68616, 13.30000,   0.00000, 0.00000, 0.00000);
	CreateObject(1215, 1936.23755, -1773.12585, 13.30000,   0.00000, 0.00000, 0.00000);
	CreateObject(1215, 1936.68542, -1772.40344, 13.30000,   0.00000, 0.00000, 0.00000);
	CreateObject(1215, 1915.00000, -1771.71216, 13.30000,   0.00000, 0.00000, 0.00000);
	CreateObject(1215, 1914.62793, -1772.39990, 13.30000,   0.00000, 0.00000, 0.00000);
	CreateObject(1215, 1915.00000, -1773.12146, 13.30000,   0.00000, 0.00000, 0.00000);
	CreateObject(1215, 1914.61389, -1763.03845, 13.30000,   0.00000, 0.00000, 0.00000);
	CreateObject(1215, 1915.00000, -1763.81665, 13.30000,   0.00000, 0.00000, 0.00000);
	CreateObject(1215, 1915.00000, -1762.37000, 13.30000,   0.00000, 0.00000, 0.00000);
	CreateObject(8650, 1923.33899, -1792.67529, 13.03900,   0.00000, 0.00000, 90.00000);
	CreateObject(8650, 1936.95996, -1792.64197, 13.04000,   0.00000, 0.00000, 90.00000);
	CreateObject(8650, 1908.47656, -1777.79602, 13.04000,   0.00000, 0.00000, 0.00000);
	CreateObject(8650, 1908.47705, -1777.12305, 13.03980,   0.00000, 0.00000, 0.00000);
	CreateObject(973, 1947.78711, -1775.07898, 13.00000,   0.00000, 0.00000, -90.00000);
	CreateObject(973, 1955.69568, -1775.03735, 13.00000,   0.00000, 0.00000, 90.00000);
	CreateObject(640, 1947.38928, -1775.39990, 13.20000,   0.00000, 0.00000, 0.00000);
	CreateObject(640, 1947.36890, -1770.24316, 13.20000,   0.00000, 0.00000, 0.00000);
	CreateObject(640, 1947.40027, -1764.91614, 13.20000,   0.00000, 0.00000, 0.00000);
	CreateObject(973, 1947.78503, -1765.85583, 13.00000,   0.00000, 0.00000, -90.00000);
	CreateObject(973, 1947.78699, -1764.46472, 13.00000,   0.00000, 0.00000, -90.00000);
	CreateObject(1215, 1946.81775, -1762.07825, 13.10000,   0.00000, 0.00000, 0.00000);
	CreateObject(1215, 1946.94543, -1761.47852, 13.10000,   0.00000, 0.00000, 0.00000);
	CreateObject(1215, 1947.08167, -1760.95068, 13.10000,   0.00000, 0.00000, 0.00000);
	CreateObject(1215, 1947.21448, -1760.44873, 13.10000,   0.00000, 0.00000, 0.00000);
	CreateObject(1215, 1947.46936, -1760.01501, 13.10000,   0.00000, 0.00000, 0.00000);
	CreateObject(1215, 1947.75903, -1759.70728, 13.10000,   0.00000, 0.00000, 0.00000);
	CreateObject(1215, 1947.41772, -1779.51526, 13.10000,   0.00000, 0.00000, 0.00000);
	CreateObject(1215, 1947.72986, -1779.93799, 13.10000,   0.00000, 0.00000, 0.00000);
	CreateObject(640, 1956.07898, -1774.74316, 13.20000,   0.00000, 0.00000, 0.00000);
	CreateObject(973, 1956.50110, -1772.65942, 13.00000,   0.00000, 0.00000, -90.00000);
	CreateObject(640, 1956.09106, -1769.41992, 13.20000,   0.00000, 0.00000, 0.00000);
	CreateObject(973, 1955.69995, -1765.72900, 13.00000,   0.00000, 0.00000, 90.00000);
	CreateObject(973, 1956.50000, -1767.15759, 13.00000,   0.00000, 0.00000, -90.00000);
	CreateObject(973, 1955.70300, -1764.59998, 13.00000,   0.00000, 0.00000, 90.00000);
	CreateObject(640, 1956.14282, -1765.15808, 13.20000,   0.00000, 0.00000, 0.00000);
	CreateObject(1215, 1955.62793, -1779.66895, 13.10000,   0.00000, 0.00000, 0.00000);
	CreateObject(1215, 1956.00574, -1779.22803, 13.10000,   0.00000, 0.00000, 0.00000);
	CreateObject(1215, 1956.22998, -1778.62524, 13.10000,   0.00000, 0.00000, 0.00000);
	CreateObject(1215, 1956.45532, -1777.49414, 13.10000,   0.00000, 0.00000, 0.00000);
	CreateObject(1215, 1956.33594, -1778.03552, 13.10000,   0.00000, 0.00000, 0.00000);
	CreateObject(1215, 1956.49377, -1762.31506, 13.10000,   0.00000, 0.00000, 0.00000);
	CreateObject(1215, 1956.39905, -1761.84998, 13.10000,   0.00000, 0.00000, 0.00000);
	CreateObject(1215, 1956.16760, -1760.78430, 13.10000,   0.00000, 0.00000, 0.00000);
	CreateObject(1215, 1956.01978, -1760.34290, 13.10000,   0.00000, 0.00000, 0.00000);
	CreateObject(1215, 1955.74719, -1759.98840, 13.10000,   0.00000, 0.00000, 0.00000);
	CreateObject(1215, 1956.28613, -1761.33545, 13.10000,   0.00000, 0.00000, 0.00000);
	CreateObject(1893, 1936.60779, -1769.80005, 16.99000,   0.00000, 0.00000, 0.00000);
	CreateObject(1893, 1927.32312, -1769.80005, 16.99000,   0.00000, 0.00000, 0.00000);
	CreateObject(1893, 1921.72742, -1769.80005, 16.99000,   0.00000, 0.00000, 0.00000);
	CreateObject(1893, 1915.45898, -1769.80005, 16.99000,   0.00000, 0.00000, 0.00000);
	CreateObject(1893, 1915.45898, -1765.80005, 16.99000,   0.00000, 0.00000, 0.00000);
	CreateObject(1893, 1921.72742, -1765.80005, 16.99000,   0.00000, 0.00000, 0.00000);
	CreateObject(1893, 1927.32312, -1765.80005, 16.99000,   0.00000, 0.00000, 0.00000);
	CreateObject(1893, 1936.60779, -1765.80005, 16.99000,   0.00000, 0.00000, 0.00000);
	CreateObject(1893, 1915.45898, -1775.00000, 16.99000,   0.00000, 0.00000, 0.00000);
	CreateObject(1893, 1921.72742, -1775.00000, 16.99000,   0.00000, 0.00000, 0.00000);
	CreateObject(1893, 1927.32312, -1775.00000, 16.99000,   0.00000, 0.00000, 0.00000);
	CreateObject(1893, 1936.60779, -1775.00000, 16.99000,   0.00000, 0.00000, 0.00000);
	CreateObject(1412, 1949.50610, -1792.67639, 14.24000,   3.14160, 0.00000, 0.00000);
	CreateObject(1412, 1944.30652, -1792.66467, 14.24000,   3.14160, 0.00000, 0.00000);
	CreateObject(1412, 1939.14502, -1792.66638, 14.24000,   3.14160, 0.00000, 0.00000);
	CreateObject(1412, 1933.95923, -1792.66992, 14.24000,   3.14160, 0.00000, 0.00000);
	CreateObject(1412, 1928.76611, -1792.66724, 14.24000,   3.14160, 0.00000, 0.00000);
	CreateObject(1412, 1923.57324, -1792.66199, 14.24000,   3.14160, 0.00000, 0.00000);
	CreateObject(1412, 1918.37622, -1792.67578, 14.24000,   3.14160, 0.00000, 0.00000);
	CreateObject(1412, 1913.19446, -1792.68750, 14.24000,   3.14160, 0.00000, 0.00000);
	CreateObject(1412, 1911.15381, -1792.69055, 14.24000,   3.14160, 0.00000, 0.00000);
	CreateObject(1412, 1908.53210, -1764.55164, 14.24000,   3.14160, 0.00000, 90.00000);
	CreateObject(1412, 1908.51746, -1769.68457, 14.24000,   3.14160, 0.00000, 90.00000);
	CreateObject(1412, 1908.54187, -1774.84790, 14.24000,   3.14160, 0.00000, 90.00000);
	CreateObject(1412, 1908.54834, -1780.03076, 14.24000,   3.14160, 0.00000, 90.00000);
	CreateObject(1412, 1908.55176, -1785.21155, 14.24000,   3.14160, 0.00000, 90.00000);
	CreateObject(1412, 1908.51306, -1790.10376, 14.24000,   3.14160, 0.00000, 90.00000);
	CreateObject(1412, 1917.71899, -1762.43860, 13.78000,   0.00000, 0.00000, 0.00000);
	CreateObject(1412, 1923.02600, -1762.43164, 13.78000,   0.00000, 0.00000, 0.00000);
	CreateObject(1412, 1928.27368, -1762.42371, 13.78000,   0.00000, 0.00000, 0.00000);
	CreateObject(1412, 1933.46460, -1762.39636, 13.78000,   0.00000, 0.00000, 0.00000);
		return 1;
}
Reply
#4

The function RemoveBuildingForPlayer must be added in OnPlayerConnect , example:

Код:
public OnPlayerConnect(playerid)
{
   RemoveBuildingForPlayer(playerid, 5535, 1918.8516, -1776.3281, 16.9766, 0.25);
   // etc etc
}
Reply
#5

Quote:
Originally Posted by Teh0wnz0r
Посмотреть сообщение
The function RemoveBuildingForPlayer must be added in OnPlayerConnect , example:

Код:
public OnPlayerConnect(playerid)
{
   RemoveBuildingForPlayer(playerid, 5535, 1918.8516, -1776.3281, 16.9766, 0.25);
   // etc etc
}
How can I make it public OnFilterScriptInit()
Reply
#6

You can't.
You must create the callback OnPlayerConnect , maybe you should read this https://sampwiki.blast.hk/wiki/RemoveBuildingForPlayer
Reply
#7

Quote:
Originally Posted by Teh0wnz0r
Посмотреть сообщение
The function RemoveBuildingForPlayer must be added in OnPlayerConnect , example:

Код:
public OnPlayerConnect(playerid)
{
   RemoveBuildingForPlayer(playerid, 5535, 1918.8516, -1776.3281, 16.9766, 0.25);
   // etc etc
}
It's about the fact that the callback being used in this case, isn't returning playerid.

You could use a foreach statement and remove an object ingame, live, without a restart if you coded it right.

OnGamemodeInit, OnFilterscriptInit, and some others don't return playerids.

OnPlayerInteriorChange returns a playerid, but putting it in there would cause issues as it would fire that section of script over and over.

OnPlayerConnect will only be called once, when the player connects, and at no other time. Hence why the "idea" is that you can chuck it in there.


You could use a foreach on a command to do this, but what will happen is that new players who join after won't have the objects removed, but will have the new mapping present.

What you want to do is read a bit more on Callbacks and Functions. They can have returned values to give your script more info about what the function performed.
Reply
#8

Quote:
Originally Posted by Sew_Sumi
Посмотреть сообщение
It's about the fact that the callback being used in this case, isn't returning playerid.

You could use a foreach statement and remove an object ingame, live, without a restart if you coded it right.

OnGamemodeInit, OnFilterscriptInit, and some others don't return playerids.

OnPlayerInteriorChange returns a playerid, but putting it in there would cause issues as it would fire that section of script over and over.

OnPlayerConnect will only be called once, when the player connects, and at no other time. Hence why the "idea" is that you can chuck it in there.


You could use a foreach on a command to do this, but what will happen is that new players who join after won't have the objects removed, but will have the new mapping present.

What you want to do is read a bit more on Callbacks and Functions. They can have returned values to give your script more info about what the function performed.
Thanks to everyone for all your help. Everyone has received +1 Rep.
Reply
#9

Quote:
Originally Posted by SkilledMaster
Посмотреть сообщение
Thanks to everyone for all your help. Everyone has received +1 Rep.
Thank you for being appreciative.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)