public OnGameModeInit() { ConnectMySQL(); SetGameModeText("SannessRP"); SendRconCommand("hostname "SERVER_NAME" | Apple"); LoadTextDraws(); Iter_Clear(Admins_ITER); DisableInteriorEnterExits(); EnableStuntBonusForAll(0); SetTimer("SecondUpdate", 1000, true); SetTimer("MinuteUpdate", 60000, true); return 1; } stock LoadTextDraws() { #include <TextDraws/GraphicPIN> #include <TextDraws/ServerLogo> } stock ConnectMySQL() { dbHandle = mysql_connect(MYSQL_HOST, MYSQL_USER, MYSQL_PASS, MYSQL_BASE); switch(mysql_errno()) { case 0: print("Подключение к MySQL успешно"); default: print("MYSQL НЕ РАБОТАИТ!1!!"); } mysql_log(ERROR | WARNING); mysql_set_charset("cp1251"); } // Интерьер МЗЛС new msls; msls = CreateObject(19381,2427.833,-1650.812,1000.000,0.000,90.000,0.000,300.000); SetObjectMaterial(msls, 0, 18835, "mickytextures", "whiteforletters", 0x00000000); msls = CreateObject(19381,2427.827,-1641.194,1000.000,0.000,90.000,0.000,300.000); SetObjectMaterial(msls, 0, 18835, "mickytextures", "whiteforletters", 0x00000000); msls = CreateObject(19381,2417.354,-1641.223,1000.000,0.000,90.000,0.000,300.000); SetObjectMaterial(msls, 0, 18835, "mickytextures", "whiteforletters", 0x00000000); msls = CreateObject(19381,2417.376,-1650.831,1000.000,0.000,90.000,0.000,300.000); SetObjectMaterial(msls, 0, 18835, "mickytextures", "whiteforletters", 0x00000000); msls = CreateObject(19381,2406.770,-1650.797,1000.000,0.000,90.000,0.000,300.000); SetObjectMaterial(msls, 0, 18835, "mickytextures", "whiteforletters", 0x00000000); msls = CreateObject(19381,2406.849,-1641.198,1000.000,0.000,90.000,0.000,300.000); SetObjectMaterial(msls, 0, 18835, "mickytextures", "whiteforletters", 0x00000000); msls = CreateObject(19381,2406.760,-1660.364,1000.000,0.000,90.000,0.000,300.000); SetObjectMaterial(msls, 0, 18835, "mickytextures", "whiteforletters", 0x00000000); msls = CreateObject(19381,2417.394,-1660.386,1000.000,0.000,90.000,0.000,300.000); SetObjectMaterial(msls, 0, 18835, "mickytextures", "whiteforletters", 0x00000000); msls = CreateObject(19381,2427.814,-1660.395,1000.000,0.000,90.000,0.000,300.000); SetObjectMaterial(msls, 0, 18835, "mickytextures", "whiteforletters", 0x00000000); msls = CreateObject(19377,2433.052,-1640.041,999.190,0.000,0.000,0.000,300.000); SetObjectMaterial(msls, 0, 14668, "711c", "CJ_CHIP_M2", 0x00000000); msls = CreateObject(19377,2433.052,-1652.625,999.190,0.000,0.000,0.000,300.000); SetObjectMaterial(msls, 0, 14668, "711c", "CJ_CHIP_M2", 0x00000000); msls = CreateObject(19377,2433.032,-1662.005,999.370,0.000,0.000,0.000,300.000); SetObjectMaterial(msls, 0, 14668, "711c", "CJ_CHIP_M2", 0x00000000); msls = CreateObject(19377,2432.934,-1647.517,1007.687,0.000,0.000,0.000,300.000); SetObjectMaterial(msls, 0, 14668, "711c", "CJ_CHIP_M2", 0x00000000); msls = CreateObject(19377,2429.439,-1636.423,999.190,0.000,0.000,90.089,300.000); SetObjectMaterial(msls, 0, 14668, "711c", "CJ_CHIP_M2", 0x00000000); msls = CreateObject(19377,2420.013,-1636.520,999.190,0.000,0.000,90.830,300.000); SetObjectMaterial(msls, 0, 14668, "711c", "CJ_CHIP_M2", 0x00000000); msls = CreateObject(19377,2410.406,-1636.578,999.190,0.000,0.000,90.829,300.000); SetObjectMaterial(msls, 0, 14668, "711c", "CJ_CHIP_M2", 0x00000000); msls = CreateObject(19377,2400.968,-1636.769,999.190,0.000,0.000,90.829,300.000); SetObjectMaterial(msls, 0, 14668, "711c", "CJ_CHIP_M2", 0x00000000); msls = CreateObject(19377,2401.562,-1641.514,999.190,0.000,0.000,179.968,300.000); SetObjectMaterial(msls, 0, 14668, "711c", "CJ_CHIP_M2", 0x00000000); msls = CreateObject(19377,2401.374,-1651.067,999.190,0.000,0.000,180.703,300.000); SetObjectMaterial(msls, 0, 14668, "711c", "CJ_CHIP_M2", 0x00000000); msls = CreateObject(19377,2406.291,-1665.182,999.190,0.000,0.000,269.110,300.000); SetObjectMaterial(msls, 0, 14668, "711c", "CJ_CHIP_M2", 0x00000000); msls = CreateObject(19377,2415.635,-1665.208,999.190,0.000,0.000,269.109,300.000); SetObjectMaterial(msls, 0, 14668, "711c", "CJ_CHIP_M2", 0x00000000); msls = CreateObject(19377,2425.180,-1665.271,999.190,0.000,0.000,269.109,300.000); SetObjectMaterial(msls, 0, 14668, "711c", "CJ_CHIP_M2", 0x00000000); msls = CreateObject(19377,2432.257,-1665.258,999.190,0.000,0.000,270.407,300.000); SetObjectMaterial(msls, 0, 14668, "711c", "CJ_CHIP_M2", 0x00000000); msls = CreateObject(19377,2428.194,-1639.032,1004.252,0.000,90.000,0.000,300.000); SetObjectMaterial(msls, 0, 14668, "711c", "gun_ceiling1128", 0x00000000); msls = CreateObject(19377,2428.364,-1648.495,1004.252,0.000,90.000,0.000,300.000); SetObjectMaterial(msls, 0, 14668, "711c", "gun_ceiling1128", 0x00000000); msls = CreateObject(19377,2427.501,-1658.067,1004.252,0.000,90.000,0.000,300.000); SetObjectMaterial(msls, 0, 14668, "711c", "gun_ceiling1128", 0x00000000); msls = CreateObject(19377,2427.687,-1662.376,1004.252,0.000,90.000,0.000,300.000); SetObjectMaterial(msls, 0, 14668, "711c", "gun_ceiling1128", 0x00000000); msls = CreateObject(19377,2418.136,-1638.942,1004.252,0.000,90.000,0.000,300.000); SetObjectMaterial(msls, 0, 14668, "711c", "gun_ceiling1128", 0x00000000); msls = CreateObject(19377,2417.876,-1648.545,1004.252,0.000,90.000,0.000,300.000); SetObjectMaterial(msls, 0, 14668, "711c", "gun_ceiling1128", 0x00000000); msls = CreateObject(19377,2417.780,-1658.175,1004.252,0.000,90.000,0.000,300.000); SetObjectMaterial(msls, 0, 14668, "711c", "gun_ceiling1128", 0x00000000); msls = CreateObject(19377,2417.850,-1667.387,1004.252,0.000,90.000,0.000,300.000); SetObjectMaterial(msls, 0, 14668, "711c", "gun_ceiling1128", 0x00000000); msls = CreateObject(19377,2407.379,-1667.305,1004.252,0.000,90.000,0.000,300.000); SetObjectMaterial(msls, 0, 14668, "711c", "gun_ceiling1128", 0x00000000); msls = CreateObject(19377,2407.512,-1657.689,1004.252,0.000,90.000,0.000,300.000); SetObjectMaterial(msls, 0, 14668, "711c", "gun_ceiling1128", 0x00000000); msls = CreateObject(19377,2407.512,-1648.084,1004.252,0.000,90.000,0.000,300.000); SetObjectMaterial(msls, 0, 14668, "711c", "gun_ceiling1128", 0x00000000); msls = CreateObject(19377,2407.688,-1638.468,1004.252,0.000,90.000,0.000,300.000); SetObjectMaterial(msls, 0, 14668, "711c", "gun_ceiling1128", 0x00000000); msls = CreateObject(19377,2404.739,-1638.246,1004.252,0.000,90.000,0.000,300.000); SetObjectMaterial(msls, 0, 14668, "711c", "gun_ceiling1128", 0x00000000); msls = CreateObject(19377,2405.632,-1647.344,1004.252,0.000,90.000,0.000,300.000); SetObjectMaterial(msls, 0, 14668, "711c", "gun_ceiling1128", 0x00000000); msls = CreateObject(19377,2405.889,-1655.678,1004.252,0.000,90.000,0.000,300.000); SetObjectMaterial(msls, 0, 14668, "711c", "gun_ceiling1128", 0x00000000); msls = CreateObject(19377,2402.029,-1664.272,1004.252,0.000,90.000,0.000,300.000); SetObjectMaterial(msls, 0, 14668, "711c", "gun_ceiling1128", 0x00000000); msls = CreateObject(19377,2427.892,-1653.240,1005.336,0.000,0.000,97.249,300.000); SetObjectMaterial(msls, 0, 14668, "711c", "CJ_CHIP_M2", 0x00000000); msls = CreateObject(19377,2423.733,-1660.439,999.190,0.000,0.000,185.654,300.000); SetObjectMaterial(msls, 0, 14668, "711c", "CJ_CHIP_M2", 0x00000000); msls = CreateObject(19377,2413.943,-1641.270,999.190,0.000,0.000,11.262,300.000); SetObjectMaterial(msls, 0, 14668, "711c", "CJ_CHIP_M2", 0x00000000); msls = CreateObject(19377,2413.063,-1650.021,999.190,0.000,0.000,335.898,300.000); SetObjectMaterial(msls, 0, 14668, "711c", "CJ_CHIP_M2", 0x00000000); msls = CreateObject(19377,2417.187,-1643.145,999.190,0.000,0.000,90.829,300.000); SetObjectMaterial(msls, 0, 14668, "711c", "CJ_CHIP_M2", 0x00000000); msls = CreateObject(19377,2428.454,-1643.026,999.190,0.000,0.000,90.829,300.000); SetObjectMaterial(msls, 0, 14668, "711c", "CJ_CHIP_M2", 0x00000000); msls = CreateObject(19377,2418.806,-1657.472,999.190,0.000,0.000,291.558,300.000); SetObjectMaterial(msls, 0, 14668, "711c", "CJ_CHIP_M2", 0x00000000); msls = CreateObject(19377,2412.220,-1656.443,1007.867,0.000,0.000,220.828,300.000); SetObjectMaterial(msls, 0, 9514, "711_sfw", "shingles2", 0x00000000); msls = CreateObject(19377,2413.092,-1658.496,999.190,0.000,0.000,238.509,300.000); SetObjectMaterial(msls, 0, 14668, "711c", "CJ_CHIP_M2", 0x00000000); msls = CreateObject(19377,2408.041,-1650.878,999.190,0.000,0.000,90.829,300.000); SetObjectMaterial(msls, 0, 14668, "711c", "CJ_CHIP_M2", 0x00000000); msls = CreateObject(19377,2392.273,-1652.036,999.190,0.000,0.000,90.829,300.000); SetObjectMaterial(msls, 0, 14668, "711c", "CJ_CHIP_M2", 0x00000000); msls = CreateObject(19377,2409.434,-1643.161,999.190,0.000,0.000,90.829,300.000); SetObjectMaterial(msls, 0, 14668, "711c", "CJ_CHIP_M2", 0x00000000); msls = CreateObject(19381,2396.273,-1660.368,1000.000,0.000,90.000,0.000,300.000); SetObjectMaterial(msls, 0, 18835, "mickytextures", "whiteforletters", 0x00000000); msls = CreateObject(19381,2396.299,-1650.730,1000.000,0.000,90.000,0.000,300.000); SetObjectMaterial(msls, 0, 18835, "mickytextures", "whiteforletters", 0x00000000); msls = CreateObject(19381,2385.810,-1660.329,1000.000,0.000,90.000,0.000,300.000); SetObjectMaterial(msls, 0, 18835, "mickytextures", "whiteforletters", 0x00000000); msls = CreateObject(19381,2385.818,-1650.696,1000.000,0.000,90.000,0.000,300.000); SetObjectMaterial(msls, 0, 18835, "mickytextures", "whiteforletters", 0x00000000); msls = CreateObject(19377,2396.652,-1651.810,999.190,0.000,0.000,90.829,300.000); SetObjectMaterial(msls, 0, 14668, "711c", "CJ_CHIP_M2", 0x00000000); msls = CreateObject(19377,2383.648,-1647.787,999.190,0.000,0.000,90.829,300.000); SetObjectMaterial(msls, 0, 18835, "mickytextures", "whiteforletters", 0x00000000); msls = CreateObject(19377,2387.254,-1647.805,999.190,0.000,0.000,180.158,300.000); SetObjectMaterial(msls, 0, 14668, "711c", "CJ_CHIP_M2", 0x00000000); msls = CreateObject(19377,2387.252,-1656.541,999.190,0.000,0.000,180.154,300.000); SetObjectMaterial(msls, 0, 14668, "711c", "CJ_CHIP_M2", 0x00000000); msls = CreateObject(19377,2387.287,-1666.037,999.190,0.000,0.000,180.154,300.000); SetObjectMaterial(msls, 0, 14668, "711c", "CJ_CHIP_M2", 0x00000000); msls = CreateObject(19377,2385.478,-1665.421,999.190,0.000,0.000,271.546,300.000); SetObjectMaterial(msls, 0, 14668, "711c", "CJ_CHIP_M2", 0x00000000); msls = CreateObject(19377,2395.055,-1665.354,999.190,0.000,0.000,271.544,300.000); SetObjectMaterial(msls, 0, 14668, "711c", "CJ_CHIP_M2", 0x00000000); msls = CreateObject(19381,2396.920,-1669.654,1000.000,0.000,90.000,0.000,300.000); SetObjectMaterial(msls, 0, 18835, "mickytextures", "whiteforletters", 0x00000000); msls = CreateObject(19377,2391.681,-1670.029,999.190,0.000,0.000,4.718,300.000); SetObjectMaterial(msls, 0, 14668, "711c", "CJ_CHIP_M2", 0x00000000); msls = CreateObject(19377,2391.990,-1674.250,999.190,0.000,0.000,1.958,300.000); SetObjectMaterial(msls, 0, 14668, "711c", "CJ_CHIP_M2", 0x00000000); msls = CreateObject(19377,2393.804,-1673.411,999.190,0.000,0.000,88.150,300.000); SetObjectMaterial(msls, 0, 14668, "711c", "CJ_CHIP_M2", 0x00000000); msls = CreateObject(19377,2401.728,-1670.136,999.190,0.000,0.000,181.378,300.000); SetObjectMaterial(msls, 0, 14668, "711c", "CJ_CHIP_M2", 0x00000000); msls = CreateObject(19377,2400.798,-1670.562,999.190,0.000,0.000,128.333,300.000); SetObjectMaterial(msls, 0, 14668, "711c", "CJ_CHIP_M2", 0x00000000); msls = CreateObject(19377,2396.428,-1652.363,1004.252,0.000,90.000,0.000,300.000); SetObjectMaterial(msls, 0, 14668, "711c", "gun_ceiling1128", 0x00000000); msls = CreateObject(19377,2388.720,-1652.504,1004.252,0.000,90.000,0.000,300.000); SetObjectMaterial(msls, 0, 14668, "711c", "gun_ceiling1128", 0x00000000); msls = CreateObject(19377,2385.772,-1652.442,1004.252,0.000,90.000,0.000,300.000); SetObjectMaterial(msls, 0, 14668, "711c", "gun_ceiling1128", 0x00000000); msls = CreateObject(19377,2385.603,-1662.104,1004.252,0.000,90.000,0.000,300.000); SetObjectMaterial(msls, 0, 14668, "711c", "gun_ceiling1128", 0x00000000); msls = CreateObject(19377,2395.459,-1661.625,1004.252,0.000,90.000,0.000,300.000); SetObjectMaterial(msls, 0, 14668, "711c", "gun_ceiling1128", 0x00000000); msls = CreateObject(19381,2385.927,-1661.225,1000.000,0.000,90.000,0.000,300.000); SetObjectMaterial(msls, 0, 18835, "mickytextures", "whiteforletters", 0x00000000); msls = CreateObject(19377,2398.510,-1662.266,999.190,0.000,0.000,145.339,300.000); SetObjectMaterial(msls, 0, 14668, "711c", "CJ_CHIP_M2", 0x00000000); msls = CreateObject(19377,2402.062,-1668.994,1004.252,0.000,90.000,0.000,300.000); SetObjectMaterial(msls, 0, 14668, "711c", "gun_ceiling1128", 0x00000000); msls = CreateObject(19377,2391.570,-1669.064,1004.252,0.000,90.000,0.000,300.000); SetObjectMaterial(msls, 0, 14668, "711c", "gun_ceiling1128", 0x00000000); msls = CreateObject(19381,2416.669,-1653.248,1000.000,0.000,90.000,0.000,300.000); SetObjectMaterial(msls, 0, 18835, "mickytextures", "whiteforletters", 0x00000000); msls = CreateObject(19381,2407.656,-1660.493,1000.000,0.000,90.000,0.000,300.000); SetObjectMaterial(msls, 0, 18835, "mickytextures", "whiteforletters", 0x00000000); msls = CreateObject(19477,2414.493,-1647.022,1002.025,4.399,-2.400,-25.200,300.000); SetObjectMaterial(msls, 0, 9514, "711_sfw", "shingles2", 0x00000000); SetObjectMaterialText(msls, "Aieuieoana.Ein-Naioin", 0, 130, "Ariel", 90, 0, 0xFF000000, 0x00000000, 0); msls = CreateObject(19477,2412.569,-1656.619,1003.173,1.100,3.299,43.199,300.000); SetObjectMaterial(msls, 0, 9514, "711_sfw", "shingles2", 0x00000000); SetObjectMaterialText(msls, "Iinoi?iieinaoia cai?auai!", 0, 90, "Ariel", 40, 0, 0xFFFF0000, 0x00000000, 0); msls = CreateObject(19477,2414.001,-1647.849,1005.600,4.399,-2.400,-25.200,300.000); SetObjectMaterial(msls, 0, 9514, "711_sfw", "shingles2", 0x00000000); SetObjectMaterialText(msls, "Aieuieoana.Ein-Naioin", 0, 130, "Ariel", 90, 0, 0xFF000000, 0x00000000, 0); msls = CreateObject(19477,2413.731,-1647.578,1012.783,4.399,-2.400,-25.200,300.000); SetObjectMaterial(msls, 0, 9514, "711_sfw", "shingles2", 0x00000000); SetObjectMaterialText(msls, "Aieuieoana.Ein-Naioin", 0, 130, "Ariel", 90, 0, 0xFF000000, 0x00000000, 0); msls = CreateObject(3089,2433.017,-1644.862,1001.414,0.000,0.000,267.165,300.000); msls = CreateObject(3089,2432.986,-1647.839,1001.414,0.000,0.000,91.987,300.000); msls = CreateObject(1801,2429.404,-1654.072,1000.085,0.000,0.000,273.631,300.000); msls = CreateObject(1801,2429.361,-1656.730,1000.085,0.000,0.000,273.631,300.000); msls = CreateObject(1801,2429.385,-1659.418,1000.085,0.000,0.000,273.631,300.000); msls = CreateObject(1801,2429.331,-1662.102,1000.085,0.000,0.000,273.631,300.000); msls = CreateObject(1801,2427.802,-1662.911,1000.085,0.000,0.000,96.630,300.000); msls = CreateObject(1801,2427.604,-1660.209,1000.085,0.000,0.000,96.629,300.000); msls = CreateObject(1801,2427.288,-1657.517,1000.085,0.000,0.000,96.629,300.000); msls = CreateObject(2095,2425.422,-1661.307,1000.002,0.000,0.000,97.932,300.000); msls = CreateObject(2095,2425.628,-1664.160,1000.002,0.000,0.000,97.931,300.000); msls = CreateObject(2095,2425.127,-1658.734,1000.002,0.000,0.000,97.931,300.000); msls = CreateObject(2095,2425.068,-1655.912,1000.002,0.000,0.000,97.931,300.000); msls = CreateObject(2095,2431.809,-1653.088,1000.002,0.000,0.000,272.274,300.000); msls = CreateObject(2095,2431.647,-1655.727,1000.002,0.000,0.000,272.273,300.000); msls = CreateObject(2095,2431.376,-1658.392,1000.002,0.000,0.000,272.273,300.000); msls = CreateObject(2095,2431.486,-1660.988,1000.002,0.000,0.000,272.273,300.000); msls = CreateObject(2095,2431.263,-1663.718,1000.002,0.000,0.000,272.273,300.000); msls = CreateObject(2194,2423.774,-1655.963,1000.911,0.000,0.000,0.000,300.000); msls = CreateObject(2194,2432.364,-1663.932,1000.911,0.000,0.000,0.000,300.000); msls = CreateObject(2165,2427.944,-1663.745,1000.085,0.000,0.000,0.000,300.000); msls = CreateObject(1663,2428.500,-1664.694,1000.546,0.000,0.000,192.024,300.000); msls = CreateObject(2196,2429.139,-1664.345,1000.874,0.000,0.000,221.020,300.000); msls = CreateObject(1661,2427.730,-1656.886,1003.794,0.000,0.000,0.000,300.000); msls = CreateObject(2852,2432.635,-1655.741,1000.942,0.000,0.000,0.000,300.000); msls = CreateObject(2854,2424.120,-1658.869,1000.942,0.000,0.000,0.000,300.000); msls = CreateObject(2165,2418.475,-1646.505,1000.085,0.000,0.000,280.433,300.000); msls = CreateObject(2165,2418.482,-1648.552,1000.085,0.000,0.000,245.067,300.000); msls = CreateObject(1801,2415.122,-1640.349,1000.085,0.000,0.000,5.519,300.000); msls = CreateObject(1801,2417.927,-1640.258,1000.085,0.000,0.000,5.882,300.000); msls = CreateObject(1801,2420.738,-1640.293,1000.085,0.000,0.000,5.882,300.000); msls = CreateObject(1801,2423.729,-1640.181,1000.085,0.000,0.000,5.882,300.000); msls = CreateObject(1801,2426.311,-1640.152,1000.085,0.000,0.000,5.882,300.000); msls = CreateObject(2095,2414.041,-1638.090,1000.002,0.000,0.000,13.185,300.000); msls = CreateObject(2095,2416.863,-1638.072,1000.002,0.000,0.000,13.184,300.000); msls = CreateObject(2095,2419.808,-1638.052,1000.002,0.000,0.000,13.184,300.000); msls = CreateObject(2095,2422.569,-1638.032,1000.002,0.000,0.000,13.184,300.000); msls = CreateObject(2095,2425.449,-1638.012,1000.002,0.000,0.000,13.184,300.000); msls = CreateObject(2095,2427.981,-1637.995,1000.002,0.000,0.000,13.184,300.000); msls = CreateObject(1801,2417.926,-1640.257,1000.085,0.000,0.000,5.882,300.000); msls = CreateObject(2194,2419.397,-1637.114,1001.093,0.000,0.000,0.000,300.000); msls = CreateObject(2194,2427.478,-1636.859,1001.093,0.000,0.000,0.000,300.000); msls = CreateObject(2165,2430.550,-1640.255,1000.085,0.000,0.000,90.333,300.000); msls = CreateObject(1663,2431.506,-1639.776,1000.546,0.000,0.000,279.506,300.000); msls = CreateObject(2196,2431.194,-1639.009,1000.874,0.000,0.000,315.792,300.000); msls = CreateObject(2165,2417.416,-1650.297,1000.085,0.000,0.000,214.322,300.000); msls = CreateObject(1714,2417.289,-1648.359,1000.085,0.000,0.000,55.247,300.000); msls = CreateObject(1714,2417.420,-1647.214,1000.085,0.000,0.000,90.608,300.000); msls = CreateObject(1714,2416.226,-1649.758,1000.085,0.000,0.000,36.275,300.000); msls = CreateObject(15037,2419.545,-1659.889,1000.492,0.000,0.000,294.630,300.000); msls = CreateObject(2066,2418.087,-1658.329,1000.085,0.000,0.000,35.547,300.000); msls = CreateObject(2066,2417.615,-1658.576,1000.085,0.000,0.000,35.546,300.000); msls = CreateObject(2066,2417.135,-1658.790,1000.085,0.000,0.000,31.129,300.000); msls = CreateObject(2066,2417.135,-1658.790,1001.351,0.000,0.000,31.129,300.000); msls = CreateObject(2066,2417.572,-1658.483,1001.351,0.000,0.000,31.129,300.000); msls = CreateObject(2066,2418.024,-1658.286,1001.351,0.000,0.000,31.129,300.000); msls = CreateObject(2515,2419.742,-1664.885,1001.078,0.000,0.000,172.876,300.000); msls = CreateObject(15037,2421.178,-1663.508,1000.492,0.000,0.000,294.626,300.000); msls = CreateObject(936,2402.576,-1637.277,1000.560,0.000,0.000,0.000,300.000); msls = CreateObject(936,2404.376,-1637.296,1000.560,0.000,0.000,0.000,300.000); msls = CreateObject(1709,2407.516,-1647.819,1000.085,0.000,0.000,348.686,300.000); msls = CreateObject(2031,2409.820,-1649.081,1000.085,0.000,0.000,0.000,300.000); msls = CreateObject(2031,2407.887,-1649.092,1000.085,0.000,0.000,0.000,300.000); msls = CreateObject(19786,2409.197,-1650.572,1003.072,0.000,0.000,174.343,300.000); msls = CreateObject(2025,2405.351,-1650.370,1000.085,0.000,0.000,183.184,300.000); msls = CreateObject(2859,2408.537,-1649.156,1000.883,0.000,0.000,0.000,300.000); msls = CreateObject(2827,2410.471,-1649.177,1000.883,0.000,0.000,0.000,300.000); msls = CreateObject(949,2413.785,-1643.680,1000.721,0.000,0.000,0.000,300.000); msls = CreateObject(949,2413.156,-1643.734,1000.721,0.000,0.000,0.000,300.000); msls = CreateObject(949,2412.572,-1643.750,1000.721,0.000,0.000,0.000,300.000); msls = CreateObject(949,2411.978,-1643.744,1000.721,0.000,0.000,0.000,300.000); msls = CreateObject(949,2411.426,-1643.791,1000.721,0.000,0.000,0.000,300.000); msls = CreateObject(949,2410.841,-1643.671,1000.721,0.000,0.000,0.000,300.000); msls = CreateObject(949,2410.308,-1643.651,1000.721,0.000,0.000,0.000,300.000); msls = CreateObject(949,2409.777,-1643.822,1000.721,0.000,0.000,0.000,300.000); msls = CreateObject(949,2409.247,-1643.791,1000.721,0.000,0.000,0.000,300.000); msls = CreateObject(949,2408.715,-1643.850,1000.721,0.000,0.000,0.000,300.000); msls = CreateObject(949,2408.068,-1643.800,1000.721,0.000,0.000,0.000,300.000); msls = CreateObject(949,2407.528,-1643.807,1000.721,0.000,0.000,0.000,300.000); msls = CreateObject(949,2406.937,-1643.811,1000.721,0.000,0.000,0.000,300.000); msls = CreateObject(949,2406.351,-1643.759,1000.721,0.000,0.000,0.000,300.000); msls = CreateObject(949,2405.853,-1643.714,1000.721,0.000,0.000,0.000,300.000); msls = CreateObject(949,2405.316,-1643.667,1000.721,0.000,0.000,0.000,300.000); msls = CreateObject(949,2404.855,-1643.626,1000.721,0.000,0.000,0.000,300.000); msls = CreateObject(936,2406.186,-1637.333,1000.560,0.000,0.000,0.000,300.000); msls = CreateObject(936,2407.976,-1637.261,1000.560,0.000,0.000,0.000,300.000); msls = CreateObject(936,2409.821,-1637.288,1000.560,0.000,0.000,0.000,300.000); msls = CreateObject(936,2411.714,-1637.093,1000.560,0.000,0.000,0.000,300.000); msls = CreateObject(19377,2402.636,-1673.401,999.190,0.000,0.000,91.865,300.000); msls = CreateObject(632,2431.283,-1644.095,1000.085,0.000,0.000,192.391,300.000); msls = CreateObject(632,2432.708,-1651.713,1000.085,0.000,0.000,0.000,300.000); msls = CreateObject(632,2414.741,-1650.392,1000.085,0.000,0.000,0.000,300.000); msls = CreateObject(632,2416.531,-1644.057,1000.085,0.000,0.000,0.000,300.000); msls = CreateObject(2024,2389.694,-1657.941,1000.085,0.000,0.000,0.000,300.000); msls = CreateObject(2024,2391.665,-1657.962,1000.085,0.000,0.000,0.000,300.000); msls = CreateObject(2024,2393.645,-1657.983,1000.085,0.000,0.000,0.000,300.000); msls = CreateObject(2024,2395.627,-1657.965,1000.085,0.000,0.000,0.000,300.000); msls = CreateObject(2024,2389.831,-1656.500,1000.085,0.000,0.000,0.000,300.000); msls = CreateObject(2024,2389.716,-1659.401,1000.085,0.000,0.000,0.000,300.000); msls = CreateObject(2309,2388.239,-1657.587,1000.181,0.000,0.000,280.433,300.000); msls = CreateObject(2309,2392.426,-1658.927,1000.181,0.000,0.000,8.840,300.000); msls = CreateObject(2309,2392.376,-1655.722,1000.181,0.000,0.000,174.339,300.000); msls = CreateObject(2309,2394.114,-1655.713,1000.181,0.000,0.000,174.337,300.000); msls = CreateObject(2309,2394.084,-1658.776,1000.181,0.000,0.000,359.993,300.000); msls = CreateObject(2309,2395.760,-1658.744,1000.181,0.000,0.000,359.989,300.000); msls = CreateObject(2309,2395.787,-1655.760,1000.181,0.000,0.000,189.714,300.000); msls = CreateObject(2309,2398.138,-1657.379,1000.181,0.000,0.000,86.096,300.000); msls = CreateObject(2165,2396.154,-1670.621,1000.085,0.000,0.000,333.477,300.000); msls = CreateObject(2309,2395.947,-1671.938,1000.181,0.000,0.000,333.476,300.000); msls = CreateObject(2167,2393.605,-1673.564,1000.085,0.000,0.000,183.184,300.000); msls = CreateObject(2164,2395.385,-1673.409,1000.085,0.000,0.000,183.184,300.000); msls = CreateObject(2163,2395.437,-1673.300,1001.940,0.000,0.000,192.024,300.000); msls = CreateObject(2162,2393.582,-1673.491,1001.437,0.000,0.000,183.184,300.000); msls = CreateObject(2167,2392.679,-1673.610,1000.085,0.000,0.000,182.996,300.000);
error 001: expected token: "%s", but found "%s" - ожидался символ: "%s", но был найден "%s";
error 002: only a single statement (or expression) can follow each "case" - только одно заявление (или выражение) могут следовать за "case";
error 003: declaration of a local variable must appear in a compound block - объявленная локальная переменная должна использоваться в этом же блоке;
error 004: function "%s" is not implemented - функция %s не реализована;
error 005: function may not have arguments - функция не имеет аргументов;
error 006: must be assigned to an array - должен быть присвоен массив;
error 007: operator cannot be redefined - оператор не может быть установлен еще раз;
error 008: must be a constant expression; assumed zero - должно быть постоянным выражением; равным нулю;
error 009: invalid array size (negative or zero) - неверный размер массива (отрицательный или 0);
error 010: invalid function or declaration - неизвестная функция или декларация;
error 011: invalid outside functions - неверно вне функции;
error 012: invalid function call, not a valid address - неверный вызов функции, неверный адрес;
error 013: no entry point (no public functions) - нет точки входа (не public функция);
error 014: invalid statement; not in switch - неверный оператор; не в switch;
error 015: "default" case must be the last case in switch statement - "default" должен быть последним условием в switch;
error 016: multiple defaults in "switch" - несколько "default" в switch;
error 017: undefined symbol "%s" - неизвестный символ "%s";
error 018: initialization data exceeds declared size - данные массива превышают его размер;
error 019: not a label: %s" - не метка "%s";
error 020: invalid symbol name "%s" - неверное имя символа "%s";
error 021: symbol already defined: %s" - символ уже объявлен: "%s";
error 022: must be lvalue (non-constant) - должно быть левосторонним (нет постоянной);
error 023: array assignment must be simple assignment - назначение массива должно быть простым;
error 024: "break" or "continue" is out of context - "break" или "continue" вне контекста;
error 025: function heading differs from prototype - функция заголовка отличается от прототипа;
error 026: no matching "#if..." - не найдено "#if...";
error 027: invalid character constant - недопустимый символ в постоянной;
error 028: invalid subscript (not an array or too many subscripts): "%s" - неверный индекс (это не массив или слишком много индексов): "%s";
error 029: invalid expression, assumed zero - неверное выражение, нет результата;
error 030: compound statement not closed at the end of file - составной оператор не закрыт в конце файла;
error 031: unknown directive - неизвестная директива;
error 032: array index out of bounds (variable "%s") - индекс массива превышен;
error 033: array must be indexed (variable "%s") - массив должен быть проиндексирован;
error 034: argument does not have a default value (argument %d) - аргумент не имеет начального значения (аргумент %d);
error 035: argument type mismatch (argument %d) - несоответствие типа аргумента (аргумент %d);
error 036: empty statement - пустой оператор;
error 037: invalid string (possibly non-terminated string) - неправильная строка;
error 038: extra characters on line - лишние символы в строке;
error 039: constant symbol has no size - символьная константа не имеет размера;
error 040: duplicate "case" label (value %d) - несколько раз объявлен "case" с одним тем же параметром;
error 041: invalid ellipsis, array size is not known - размер массива неизвестен;
error 042: invalid combination of class specifiers - недопустимое сочетание класса;
error 043: character constant exceeds range for packed string - символьная константа превышает размер строки;
error 044: positional parameters must precede all named parameters - позиционные параметры должны предшествовать всем именованным параметрам;
error 045: too many function arguments - слишком много аргументов у функции;
error 046: unknown array size (variable "%s") - неизвестный размер массива;
error 047: array sizes do not match, or destination array is too small - размеры массива конфликтуют, либо целевой массив слишком маленький;
error 048: array dimensions do not match - размеры массива не совпадают;
error 049: invalid line continuation - неправильное продолжение строки;
error 050: invalid range - неверный диапазон;
error 051: invalid subscript, use "[ ]" operators on major dimensions - неправильный индекс, используйте "[]";
error 052: multi-dimensional arrays must be fully initialized - много-размерные массивы должны быть полностью определены;
error 053: exceeding maximum number of dimensions - превышение максимального числа измерений;
error 054: unmatched closing brace - не найдена закрывающаяся скобка;
error 055: start of function body without function header - начало функции без заголовка;
error 056: arrays, local variables and function arguments cannot be public (variable "%s") - массивы, локальные переменные и аргументы функции не могут быть общедоступными;
error 057: unfinished expression before compiler directive - незавершенное выражение для компилятора;
error 058: duplicate argument; same argument is passed twice - дублирование аргумента; Аргумент передается несколько раз;
error 059: function argument may not have a default value (variable "%s") - аргумент не может иметь значение по-умолчанию;
error 060: multiple "#else" directives between "#if ... #endif" - Несколько "#else" между "#if ... #endif" - несколько "#else" между "#if и #endif";
error 061: "#elseif" directive follows an "#else" directive - "#else" перед "#elseif";
error 062: number of operands does not fit the operator - количество операндов не соответствует оператору;
error 063: function result tag of operator "%s" must be "%s" - Результат функции %s должен быть %s;
error 064: cannot change predefined operators - невозможно изменить уже определенные операторы;
error 065: function argument may only have a single tag (argument %d) - в этой функции может быть только один аргумент;
error 066: function argument may not be a reference argument or an array (argument "%s") - аргумент функции не может быть ссылкой или массивом;
error 067: variable cannot be both a reference and an array (variable "%s") - Переменная не может быть как массив или ссылка;
error 068: invalid rational number precision in #pragma - неверное число в #pragma;
error 069: rational number format already defined - формат рационального числа уже определен;
error 070: rational number support was not enabled - рациональное число не поддерживается;
error 071: user-defined operator must be declared before use (function "%s") - объявленный оператор должен быть перед использованием;
error 072: "sizeof" operator is invalid on "function" symbols - оператор "sizeof" не может быть использован для символов функции;
error 073: function argument must be an array (argument "%s") - аргумент %s должен быть массивом;
error 074: #define %s must start with an alphabetic character - #define должен начинаться с буквы;
error 075: input line too long (after substitutions - введенная строка слишком длинная;
error 076: syntax *error in the expression, or invalid function call - неправильный синтаксис или неправильный вызов функции;
error 077: malformed UTF-8 encoding, or corrupted file: %s - плохая кодировка UTF-8 или плохой файл: %s;
error 078: function uses both "return" and "return <value>" - функция использует "return" и "return <значение>";
error 079: inconsistent return types (array & non-array) - несовместимость типов возвращенных результатов;
error 080: unknown symbol, or not a constant symbol (symbol "%s") - неизвестный или непостоянный символ: %s;
error 081: cannot take a tag as a default value for an indexed array parameter (symbol "%s") - не может принимать тег в качестве значения по умолчанию для параметра индексированного массива;
error 082: user-defined operators and native functions may not have states - созданные функции или операторы не имеют состояния;
error 083: a function may only belong to a single automaton (symbol "%s") - функция может принадлежать только к одной автоматизации;
error 084: state conflict: one of the states is already assigned to another implementation (symbol "%s") - конфликт состояния: одно из состояний уже назначено на другую реализацию;
error 085: no states are defined for function "%s" - нет состояний, определенных для функции "%s";
error 086: unknown automaton "%s" - неизвестная автоматизация "%s";
error 087: unknown state "%s" for automaton "%s" - неизвестное состояние "%s" в автоматизации "%s";
error 088: number of arguments does not match definition - количество аргументов не совпадает с объявленными в функции;
//========================Аренда Велотранспорта========================================= else if(PlayerToPoint(3.0,playerid,2203.6338,-2298.5305,21.9603)||PlayerToPoint(3.0,playerid,2519.6304,-2119.0635,21.9737)) { ShowPlayerDialog(playerid,1600,DIALOG_STYLE_LIST,"Àðåíäîâàòü âåëîòðàíñïîðò","íà 5 ìèíníà 10ìèíníà 15 ìèíníà 20 ìèí","Âûáðàòü","Çàêðûòü"); } //============================================================= else if(PlayerToPoint(3.0,playerid,2156.9797,-2299.4517,22.6464)) { ShowPlayerDialog(playerid,1601,DIALOG_STYLE_MSGBOX,"Ïîñåëåíèå â îòåëü","Âû äåéñòâèòåëüíî õîòèòå ïîñåëèòñÿ","Äà","Íåò"); } //============================================================================== else return true; } //Ошибка тут return 1; //Ошибка тут }
P.S:Я пробывал ставить изменять строку else return true и его значение но всё равно ошибка+варнинг помогите пожалуйста исправить!
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]){ if(dialogid == 0) { switch(listitem) { case 1: { GivePlayerWeapon(playerid,24,100); } case 2: { GivePlayerWeapon(playerid,22,100); } } return 1; } if(dialogid == 1)// Ид диалога Для Логина { if(response)// Если игрок нажал первую кнопку входа { if(!strlen(inputtext))// Если окно ввода пустое, выводим диалог снова { ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,"Окно Входа","ЗдравствуйтеnВаш аккаунт зарегистрированnВведите свой пароль в окошко","Ввод","");// Показываем диалог входа в игру. return 1; } new pass[64];// Масив с паролем strmid(pass,inputtext,0,strlen(inputtext),64);// считывание текста с диалога OnPlayerLogin(playerid,pass);//паблик входа } else// Если игрок нажал Escape,то покажем ему диалог { ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,"Окно Входа","ЗдравствуйтеnВаш аккаунт зарегистрированnВведите свой пароль в окошко","Ввод","");// Показываем диалог входа в игру. } } if(dialogid == 2)// Ид диалога для регистрации { if(response)// Если игрок нажал первую кнопку { if(!strlen(inputtext))// Если игрок не написал ничего,то выводим диалог снова { ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"Окно Регистрации","ЗдравствуйтеnВаш аккаунт зарегистрирован.nЗарегистрируйтесь введя пароль в окошко","Ввод","");// Показываем диалог регистрации. return 1; } new pass[64];// Масив с паролем strmid(pass,inputtext,0,strlen(inputtext),64);// Считываем текст с диалога OnPlayerRegister(playerid,pass);// Запускаем паблик регистрации } else// Если игрок нажал Escape { ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"Окно Регистрации","ЗдравствуйтеnВаш аккаунт зрегистрирован.nЗарегистрируйтесь введя пароль в окошко","Ввод","");// Показываем диалог регистрации. } }}
-
27.06.2014, 01:19
#1
Пользователь
error 010: invalid function or declaration
помогите решить проблему:
error 010: invalid function or declaration — ошибка находится в этой строчке:PHP код:
stock SetVehiclePosition(vehicleid, Float:X, Float:Y, Float:Z)
код полностью:
PHP код:
stock SetVehiclePosition(vehicleid, Float:X, Float:Y, Float:Z)
{
SetVehiclePos(vehicleid, X, Y, Z);
}
-
27.06.2014, 09:38
#2
Функцию выше этой + все случаи использования функции в студию
Связаться со мной в VK можно через личные сообщения этой группы
Заказы не принимаю
Широко известно, что идеи стоят 0.8333 цента каждая (исходя из рыночной цены 10 центов за дюжину).
Великих идей полно, на них нет спроса.
Воплощение идеи в законченную игру требует долгой работы,
таланта, терпения и креативности, не говоря уж о затратах денег, времени и ресурсов.
Предложить идею просто, воплотить – вот в чём проблема
Steve Pavlina
-
27.06.2014, 10:39
#3
Пользователь
PHP код:
public OnPlayerStreamOut(playerid, forplayerid)
{
return 1;
}
stock SetVehiclePosition(vehicleid, Float:X, Float:Y, Float:Z)
{
SetVehiclePos(vehicleid, X, Y, Z);
}
пока еще нигде функция не используется
-
27.06.2014, 10:46
#4
Эмм, вы точно уверены, что ошибка именно в этой строке? Её там быть не может.
Связаться со мной в VK можно через личные сообщения этой группы
Заказы не принимаю
Широко известно, что идеи стоят 0.8333 цента каждая (исходя из рыночной цены 10 центов за дюжину).
Великих идей полно, на них нет спроса.
Воплощение идеи в законченную игру требует долгой работы,
таланта, терпения и креативности, не говоря уж о затратах денег, времени и ресурсов.
Предложить идею просто, воплотить – вот в чём проблема
Steve Pavlina
-
27.06.2014, 13:33
#5
Пользователь
я сам не понимаю почему ошибка, в других модах ошибки не выдает
-
27.06.2014, 20:04
#6
В конец мода если вставить?
Связаться со мной в VK можно через личные сообщения этой группы
Заказы не принимаю
Широко известно, что идеи стоят 0.8333 цента каждая (исходя из рыночной цены 10 центов за дюжину).
Великих идей полно, на них нет спроса.
Воплощение идеи в законченную игру требует долгой работы,
таланта, терпения и креативности, не говоря уж о затратах денег, времени и ресурсов.
Предложить идею просто, воплотить – вот в чём проблема
Steve Pavlina
-
27.06.2014, 20:17
#7
Пользователь
вставил в самом конце мода и все равно тоже самое.
-
27.06.2014, 22:14
#8
А если, например, в начало? Или функцию переименовать? Или же сменить Pawno, которым компилируете
Дело в том, что stock не обрабатывается компилятором, если его не использовали. Следовательно, и ошибки быть не должно. Да и у меня этот ваш код компилируется прекрасно.Связаться со мной в VK можно через личные сообщения этой группы
Заказы не принимаю
Широко известно, что идеи стоят 0.8333 цента каждая (исходя из рыночной цены 10 центов за дюжину).
Великих идей полно, на них нет спроса.
Воплощение идеи в законченную игру требует долгой работы,
таланта, терпения и креативности, не говоря уж о затратах денег, времени и ресурсов.
Предложить идею просто, воплотить – вот в чём проблема
Steve Pavlina
-
06.07.2014, 00:28
#9
Пользователь
Попробуй сменить имя ф-ции