bek (08 июня 2018 — 16:45) писал:
Лучше бы код, хотябы часть перед ошибкой и псоле. Я не телепат, чтобы знать, что у Вас там творится. Мод не надо скидывать.
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);
Сообщение отредактировал Aleks Seliavin: 08 июня 2018 — 16:57
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 - количество аргументов не совпадает с объявленными в функции;
#include <amxmodx>
#include <amxmisc>
new const PLAGIN[] = "Auto Demo Recorder"
new const VERSIYA[] = "2.1"
new const AVTORG[] = "F4RR3LL"
new
gpc_cvar1,
gpc_cvar2
enum ChatColor
{
CHATCOLOR_NORMAL = 1,
CHATCOLOR_GREEN,
CHATCOLOR_TEAM_COLOR,
CHATCOLOR_GREY,
CHATCOLOR_RED,
CHATCOLOR_BLUE,
}
new LOGNAME[128]
new MapName[32]
public plugin_init()
{
register_plugin(PLAGIN, VERSIYA, AVTORG)
gpc_cvar1 = register_cvar("adr_cvar1", "1")
gpc_cvar2 = register_cvar("adr_cvar2", "POV_cw/mix_1")
}
new monthyear[12]
public plugin_cfg()
{
//set_task(get_pcvar_float(gpc_cvar3), "adverd", 41, "", 0, "b")
get_mapname(MapName, sizeof MapName -1)
const LEN = 128
new logsdir[LEN]
get_localinfo("amxx_logs", logsdir, LEN -1)
new papka[LEN]
format(papka, LEN -1, "recorded_demos")
new direxists[LEN]
formatex(direxists, LEN -1, "/%s/%s", logsdir, papka)
if(!dir_exists(direxists))
mkdir(direxists)
get_time("%d-%m-%Y", monthyear, sizeof monthyear -1)
new fail[LEN]
formatex(fail, LEN -1, "%s.txt", monthyear)
formatex(LOGNAME, LEN -1, "%s/%s", direxists, fail)
if(!file_exists(LOGNAME))
write_file(LOGNAME, "")
}
public client_authorized(id)
{
client_cmd(id, "stop")
}
new bool:najalknopky[33] = { false, ... }
public client_putinserver(id)
{
if(!is_user_bot(id) && !is_user_hltv(id))
{
if(get_pcvar_num(gpc_cvar1) < 15)
set_pcvar_num(gpc_cvar1, 15)
najalknopky[id] = false
remove_task(id+500)
set_task(get_pcvar_float(gpc_cvar1), "prerecDEMO", id+500)
}
}
public checkKnopka(id)
{
id -= 500
if(!is_user_connected(id))
return
if(!najalknopky[id])
recDEMO(id, 0)
}
public recDEMO(id, mode)
{
static nickname[32], ip[16], stim[35]
get_user_name(id, nickname, sizeof nickname -1)
get_user_ip(id, ip, sizeof ip -1, 1)
get_user_authid(id, stim, sizeof stim -1)
if(mode == 1)
{
najalknopky[id] = false
remove_task(id+500)
log_to_file(LOGNAME, "[Player: %s][SteamID: %s - IP: %s] [Demoname: Player was kicked]", nickname, stim, ip)
server_cmd("kick #%d You can't game at this server, without recording demo.", get_user_userid(id))
return
}
najalknopky[id] = true
static hostname[64], vremia[9], hash[34], demoname[350], neyznavod[32]
get_cvar_string("hostname", hostname, sizeof hostname -1)
get_time("%H:%M:%S", vremia, sizeof vremia -1)
get_pcvar_string(gpc_cvar2, neyznavod, sizeof neyznavod -1)
md5(demoname, hash);
formatex(demoname, sizeof demoname -1, "%s_%s_%s_%s_%s_%s_%s_MD5-%s.dem", neyznavod, hostname, nickname, ip, MapName, vremia, monthyear, hash)
while(replace(demoname, sizeof demoname -1, "/", "-")) {}
while(replace(demoname, sizeof demoname -1, "", "-")) {}
while(replace(demoname, sizeof demoname -1, ":", "-")) {}
while(replace(demoname, sizeof demoname -1, "*", "-")) {}
while(replace(demoname, sizeof demoname -1, "?", "-")) {}
while(replace(demoname, sizeof demoname -1, "<", "-")) {}
while(replace(demoname, sizeof demoname -1, ">", "-")) {}
while(replace(demoname, sizeof demoname -1, "|", "-")) {}
while(replace(demoname, sizeof demoname -1, " ", "_")) {}
client_cmd(id, "stop;wait;wait;record ^"%s.a^"", demoname)
set_hudmessage(255, 0, 0, 0.02, 0.18, 0, 6.0, 5.0)
show_hudmessage(id, "Началась записи POV-demo!^n^n%s", demoname)
if(equal(stim, "VALVE_ID_LAN")
|| equal(stim, "VALVE_ID_PENDING")
|| equal(stim, "STEAM_666:88:666")
|| equal(stim, "WWW.DARKTOWER.SU")
|| equal(stim, "STEAM_ID_PENDING")
|| equal(stim, "STEAM_ID_LAN") )
stim = "UNKNOWN"
log_to_file(LOGNAME, "[Player: %s][SteamID: %s - IP: %s] [Demoname: %s]", nickname, stim, ip, demoname)
}
//========================Аренда Велотранспорта========================================= 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Зарегистрируйтесь введя пароль в окошко","Ввод","");// Показываем диалог регистрации. } }}
![]()
Posts: 22
Threads: 5
Joined: Jul 2012
Reputation:
0
Hello,
I need help, I’ve been trying to make this command that can only be used my admin levels 3 and up; I’m not a scripter, just been trying stuff out and it hasn’t been going so well.
It gives 3 errors when I attempt to compile.
C:UsersJonDesktopU-RP [ENG — 0.3x]gamemodesU-RP.pwn(107199) : error 010: invalid function or declaration
C:UsersJonDesktopU-RP [ENG — 0.3x]gamemodesU-RP.pwn(107201) : error 010: invalid function or declaration
C:UsersJonDesktopU-RP [ENG — 0.3x]gamemodesU-RP.pwn(107203) : error 010: invalid function or declaration
Here’s how it looks in the script:
Код:
if(strcmp("/acords", cmdtext, true, 10) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] >= 3)
{
SendClientMessage(playerid, COLOR_WHITE, "Cordinates Menu [/gotoco]");
SendClientMessage(playerid, COLOR_WHITE, "Gotham City: 2203.3160 -5787.8170 13.3400 360.0000");
}
}
Can someone please help me?
![]()
Posts: 60
Threads: 8
Joined: Nov 2011
Reputation:
0
On the code you put there’s missing a bracket }
try this:
Код:
if(strcmp("/acords", cmdtext, true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] >= 3)
{
SendClientMessage(playerid, COLOR_WHITE, "Cordinates Menu [/gotoco]");
SendClientMessage(playerid, COLOR_WHITE, "Gotham City: 2203.3160 -5787.8170 13.3400 360.0000");
}
}
}
![]()
Posts: 22
Threads: 5
Joined: Jul 2012
Reputation:
0
Quote:
Originally Posted by Sk1lleD
On the code you put there’s missing a bracket }
try this:
Код:
if(strcmp("/acords", cmdtext, true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] >= 3)
{
SendClientMessage(playerid, COLOR_WHITE, "Cordinates Menu [/gotoco]");
SendClientMessage(playerid, COLOR_WHITE, "Gotham City: 2203.3160 -5787.8170 13.3400 360.0000");
}
}
}
Same errors:
C:UsersJonDesktopU-RP [ENG — 0.3x]gamemodesU-RP.pwn(107199) : error 010: invalid function or declaration
C:UsersJonDesktopU-RP [ENG — 0.3x]gamemodesU-RP.pwn(107201) : error 010: invalid function or declaration
C:UsersJonDesktopU-RP [ENG — 0.3x]gamemodesU-RP.pwn(107203) : error 010: invalid function or declaration
I didn’t do the command from scratch, I took it from the /helperhelp or something like that (forgot) and edited it. I know the [pAdmin] is correct and the <= (equal or greater) is correct, did It mess up somewhere in the command.
![]()
Posts: 658
Threads: 32
Joined: Mar 2013
Reputation:
0
Made it to ZCMD, do not forget to #include <zcmd>
pawn Код:
CMD:acords(playerid, params[])
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] >= 3)
{
SendClientMessage(playerid, COLOR_WHITE, "Cordinates Menu [/gotoco]");
SendClientMessage(playerid, COLOR_WHITE, "Gotham City: 2203.3160 -5787.8170 13.3400 360.0000");
}
}
return 1;
}
Sorry if you don’t want in ZCMD but it’s seriously easier..
EDIT: Are you sure you got an enum for pAdmin? And the player info and all?
![]()
Posts: 11,827
Threads: 33
Joined: Dec 2011
Reputation:
0
Is it like this?
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp("/acords", cmdtext, true) == 0) // it's not 10 lenght...
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] >= 3)
{
SendClientMessage(playerid, COLOR_WHITE, "Cordinates Menu [/gotoco]");
SendClientMessage(playerid, COLOR_WHITE, "Gotham City: 2203.3160 -5787.8170 13.3400 360.0000");
return 1;
}
}
}
// more commands
return 0;
}
And please show us the line the error comes from.
![]()
Posts: 22
Threads: 5
Joined: Jul 2012
Reputation:
0
Quote:
Originally Posted by JimmyCh
Made it to ZCMD, do not forget to #include <zcmd>
pawn Код:
CMD:acords(playerid, params[])
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] >= 3)
{
SendClientMessage(playerid, COLOR_WHITE, "Cordinates Menu [/gotoco]");
SendClientMessage(playerid, COLOR_WHITE, "Gotham City: 2203.3160 -5787.8170 13.3400 360.0000");
}
}
return 1;
}
Sorry if you don’t want in ZCMD but it’s seriously easier..
EDIT: Are you sure you got an enum for pAdmin? And the player info and all?
Worked fine! Thanks!
![]()
Posts: 22
Threads: 5
Joined: Jul 2012
Reputation:
0
Quote:
Originally Posted by _Zeus
Is it like this?
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp("/acords", cmdtext, true) == 0) // it's not 10 lenght...
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] >= 3)
{
SendClientMessage(playerid, COLOR_WHITE, "Cordinates Menu [/gotoco]");
SendClientMessage(playerid, COLOR_WHITE, "Gotham City: 2203.3160 -5787.8170 13.3400 360.0000");
return 1;
}
}
}
// more commands
return 0;
}
And please show us the line the error comes from.
I can’t use the ZCMD one..so I tried this.
I got one error: C:UsersJonDesktopU-RP [ENG — 0.3x]gamemodesU-RP.pwn(107199) : error 021: symbol already defined: «OnPlayerCommandText»
So no go.
![]()
Posts: 334
Threads: 52
Joined: May 2011
Reputation:
0
Quote:
Originally Posted by JJ_PR
I can’t use the ZCMD one..so I tried this.
I got one error: C:UsersJonDesktopU-RP [ENG — 0.3x]gamemodesU-RP.pwn(107199) : error 021: symbol already defined: «OnPlayerCommandText»
So no go.
He means is the OnPlayerCommandText like that?
![]()
Posts: 11,827
Threads: 33
Joined: Dec 2011
Reputation:
0
You pasted what I gave you! And now you’ve 2 callbacks of OnPlayerCommandText..
Does it look like the example I gave?
![]()
Posts: 22
Threads: 5
Joined: Jul 2012
Reputation:
0
Quote:
Originally Posted by _Zeus
You pasted what I gave you! And now you’ve 2 callbacks of OnPlayerCommandText..
Does it look like the example I gave?
It does look like it.
I got error 010: invalid function or declaration when compiling this file.
Some can help me what is the problem?
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <colorchat>
#include <fun>
#include <cstrike>
#include <hamsandwich>
#define PLUGIN "Weapon Menu"
#define VERSION "1.0"
#define AUTHOR "Silent"
new gWPCT;
new gWPTE;
public
plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /guns", "fegyvermenu");
RegisterHam(Ham_Spawn, "player", "fegyvermenu", 1)
register_logevent("logevent_end", 2, "1=Round_End");
}
public
logevent_end()
{
gWPCT = 0;
gWPTE = 0;
}
public
fegyvermenu(id)
{
cs_set_user_money(id, 0); // Penz nullazasa
if(!user_has_weapon(id, CSW_C4))
{
strip_user_weapons(id);
new menu = menu_create("rValassz packot!", "handler");
menu_additem(menu, "M4A1 PACK.", "1", 0);
menu_additem(menu, "AK47 PACK.", "2", 0);
menu_additem(menu, "AWP PACK.y (elso 4 embernek)", "3", 0);
menu_additem(menu, "MachineGun PACK.", "4", 0);
menu_additem(menu, "AUG PACK.", "5", 0);
menu_additem(menu, "FAMAS PACK.", "6", 0);
menu_additem(menu, "Galil PACK.", "7", 0);
menu_additem(menu, "SMG PACK.", "8", 0);
menu_additem(menu, "Autoshotgun PACK. d (xm1014)", "9", 0);
menu_additem(menu, "Shotgun PACK.d (m3)", "10", 0);
menu_additem(menu, "Scout PACK.", "11", 0);
menu_setprop(menu, MPROP_EXIT, MEXIT_ALL);
menu_display(id, menu);
}
else
{
new menu = menu_create("rValassz packot!", "handler");
menu_additem(menu, "M4A1 PACK.", "1", 0);
menu_additem(menu, "AK47 PACK.", "2", 0);
menu_additem(menu, "AWP PACK.y (elso 4 embernek)", "3", 0);
menu_additem(menu, "MachineGun PACK.", "4", 0);
menu_additem(menu, "AUG PACK.", "5", 0);
menu_additem(menu, "FAMAS PACK.", "6", 0);
menu_additem(menu, "Galil PACK.", "7", 0);
menu_additem(menu, "SMG PACK.", "8", 0);
menu_additem(menu, "Autoshotgun PACK. d (xm1014)", "9", 0);
menu_additem(menu, "Shotgun PACK.d (m3)", "10", 0);
menu_additem(menu, "Scout PACK.", "11", 0);
menu_setprop(menu, MPROP_EXIT, MEXIT_ALL);
menu_display(id, menu);
}
}
public
handler(id, menu, item)
{
if( item == MENU_EXIT )
{
menu_destroy(menu);
return PLUGIN_HANDLED;
}
new data[6], szName[64];
new access, callback;
menu_item_getinfo(menu, item, access, data,charsmax(data), szName,charsmax(szName), callback);
new key = str_to_num(data);
switch(key)
{
case
1:
{
give_player_grenades(id);
give_item(id, "weapon_knife");
give_item(id, "weapon_deagle");
give_item(id, "ammo_50ae");
give_item(id, "ammo_50ae");
give_item(id, "ammo_50ae");
give_item(id, "weapon_m4a1");
give_item(id, "ammo_556nato");
give_item(id, "ammo_556nato");
give_item(id, "ammo_556nato");
ColorChat(id, BLUE, "[INFO]^x04 Kaptal egy M4A1 packot!");
}
case 2:
{
give_player_grenades(id);
give_item(id, "weapon_knife");
give_item(id, "weapon_deagle");
give_item(id, "ammo_50ae");
give_item(id, "ammo_50ae");
give_item(id, "ammo_50ae");
give_item(id, "weapon_ak47");
give_item(id, "ammo_762nato");
give_item(id, "ammo_762nato");
give_item(id, "ammo_762nato");
ColorChat(id, BLUE, "[INFO]^x04 Kaptal egy AK47 packot!");
}
case 3:
{
new CsTeams:userTeam = cs_get_user_team(id);
if(userTeam == CS_TEAM_CT)
{
if(gWPCT < 2)
{
give_player_grenades(id);
give_item(id, "weapon_knife");
give_item(id, "weapon_awp");
give_item(id, "weapon_deagle");
give_item(id, "ammo_50ae");
give_item(id, "ammo_50ae");
give_item(id, "ammo_50ae");
give_item(id, "ammo_338magnum");
give_item(id, "ammo_338magnum");
give_item(id, "ammo_338magnum");
ColorChat(id, BLUE, "[INFO]^x04 Kaptal egy AWP packot!");
gWPCT++
}
else
{
client_print(id, print_center, "Csak 2 ember wpzhet csapatonkent!");
fegyvermenu(id);
}
}
if(userTeam == CS_TEAM_T)
{
if(gWPTE < 2)
{
give_player_grenades(id);
give_item(id, "weapon_knife");
give_item(id, "weapon_awp");
give_item(id, "weapon_deagle");
give_item(id, "ammo_50ae");
give_item(id, "ammo_50ae");
give_item(id, "ammo_50ae");
give_item(id, "ammo_338magnum");
give_item(id, "ammo_338magnum");
give_item(id, "ammo_338magnum");
ColorChat(id, BLUE, "[INFO]^x04 Kaptal egy AWP packot!");
gWPTE++
}
else
{
client_print(id, print_center, "Csak 2 ember wpzhet csapatonkent!");
fegyvermenu(id);
}
}
}
case
4:
{
give_player_grenades(id);
give_item(id, "weapon_knife");
give_item(id, "weapon_deagle");
give_item(id, "ammo_50ae");
give_item(id, "ammo_50ae");
give_item(id, "ammo_50ae");
give_item(id, "weapon_m249");
give_item(id, "ammo_556natobox");
give_item(id, "ammo_556natobox");
give_item(id, "ammo_556natobox");
ColorChat(id, BLUE, "[INFO]^x04 Kaptal egy MachineGun packot!");
}
case 5:
{
give_player_grenades(id);
give_item(id, "weapon_knife");
give_item(id, "weapon_deagle");
give_item(id, "ammo_50ae");
give_item(id, "ammo_50ae");
give_item(id, "ammo_50ae")
give_item(id, "weapon_aug");
give_item(id, "ammo_556nato");
give_item(id, "ammo_556nato");
give_item(id, "ammo_556nato");
ColorChat(id, BLUE, "[INFO]^x04 Kaptal egy AUG packot!");
}
case 6:
{
give_player_grenades(id);
give_item(id, "weapon_knife");
give_item(id, "weapon_deagle");
give_item(id, "ammo_50ae");
give_item(id, "ammo_50ae");
give_item(id, "ammo_50ae")
give_item(id, "weapon_famas");
give_item(id, "ammo_556nato");
give_item(id, "ammo_556nato");
give_item(id, "ammo_556nato");
ColorChat(id, BLUE, "[INFO]^x04 Kaptal egy Famas packot!");
}
case 7:
{
give_player_grenades(id);
give_item(id, "weapon_knife");
give_item(id, "weapon_deagle");
give_item(id, "ammo_50ae");
give_item(id, "ammo_50ae");
give_item(id, "ammo_50ae")
give_item(id, "weapon_galil");
give_item(id, "ammo_556nato");
give_item(id, "ammo_556nato");
give_item(id, "ammo_556nato");
ColorChat(id, BLUE, "[INFO]^x04 Kaptal egy Galil packot!");
}
case 8:
{
give_player_grenades(id);
give_item(id, "weapon_knife");
give_item(id, "weapon_deagle");
give_item(id, "ammo_50ae");
give_item(id, "ammo_50ae");
give_item(id, "ammo_50ae")
give_item(id, "weapon_mp5navy");
give_item(id, "ammo_9mm");
give_item(id, "ammo_9mm");
give_item(id, "ammo_9mm");
ColorChat(id, BLUE, "[INFO]^x04 Kaptal egy Smg packot!");
}
case 9:
{
give_player_grenades(id);
give_item(id, "weapon_knife");
give_item(id, "weapon_deagle");
give_item(id, "ammo_50ae");
give_item(id, "ammo_50ae");
give_item(id, "ammo_50ae")
give_item(id, "weapon_xm1014");
give_item(id, "ammo_buckshot");
give_item(id, "ammo_buckshot");
give_item(id, "ammo_buckshot");
ColorChat(id, BLUE, "[INFO]^x04 Kaptal egy AutoShotgun packot!");
}
case 10:
{
give_player_grenades(id);
give_item(id, "weapon_knife");
give_item(id, "weapon_deagle");
give_item(id, "ammo_50ae");
give_item(id, "ammo_50ae");
give_item(id, "ammo_50ae")
give_item(id, "weapon_m3");
give_item(id, "ammo_buckshot");
give_item(id, "ammo_buckshot");
give_item(id, "ammo_buckshot");
ColorChat(id, BLUE, "[INFO]^x04 Kaptal egy Shotgun packot!");
}
case 11:
{
give_player_grenades(id);
give_item(id, "weapon_knife");
give_item(id, "weapon_deagle");
give_item(id, "ammo_50ae");
give_item(id, "ammo_50ae");
give_item(id, "ammo_50ae")
give_item(id, "weapon_scout");
give_item(id, "ammo_762nato");
give_item(id, "ammo_762nato");
give_item(id, "ammo_762nato");
ColorChat(id, BLUE, "[INFO]^x04 Kaptal egy Scout packot!");
}
}
return PLUGIN_HANDLED;
}
stock give_player_grenades(index)
{
give_item(index, "weapon_hegrenade");
give_item(index, "weapon_flashbang");
give_item(index, "weapon_flashbang");
give_item(index, "weapon_smokegrenade");
give_item(index, "item_thighpack");
give_item(index, "item_assaultsuit")
}
Last edited by Thomeeek; 06-04-2014 at 13:50.
Модераторы: Subb98, liFe iS GoOD
- Список форумов ‹ AMX Mod X ‹ Скриптинг
Правила форума
1. Запрещено материться и оскорблять других участников форума.
2. Запрещен флуд, оффтоп, дабл постинг во всех разделах форума, кроме раздела «Болтовня».
3. Запрещено взламывать сайт/форум или наносить любой вред проекту.
4. Запрещено рекламировать другие ресурсы.
5. Запрещено создавать темы без информативного названия. Название темы должно отображать ее смысл.
В данном разделе форума разрешено создавать темы, касающие только скриптинга для AMX Mod X.
Правила при создании новой темы:
1. При вставке кода плагина необходимо использовать тег [code=php].
2. Любые изображения должны быть загружены, как вложения к вашему сообщению.
3. При описании проблемы или запросе на помощь в редактировании плагина обязательно выкладывайте исходник sma плагина.
- Ответить с цитатой
error 010: invalid function or declaration
Помогите пожалуйста. Ошибка в плагине:
- Код: Выделить всё
// C:UsersbezruDesktopscriptingzp_zombie_class_oxothuk.sma(32) : error 010: invalid function or declaration
// C:UsersbezruDesktopscriptingzp_zombie_class_oxothuk.sma(32) : error 062: number of operands does not fit the operator
// C:UsersbezruDesktopscriptingzp_zombie_class_oxothuk.sma(32) : error 010: invalid function or declaration
// C:UsersbezruDesktopscriptingzp_zombie_class_oxothuk.sma(32) : fatal error 107: too many error messages on one line
//
// Compilation aborted.
// 4 Errors.
Вот Вы должны зарегистрироваться, чтобы видеть ссылки.
- Код: Выделить всё
#pragma semicolon 1
#pragma ctrlchar ''new zclass_name[15] =
{
208, 158, 209, 133, 208, 190, 209, 130, 208, 189, 208, 184, 208, 186, 0
};
new zclass_info[24] =
{
208, 161, 209, 131, 208, 191, 208, 181, 209, 128, 32, 208, 191, 209, 128, 209, 139, 208, 182, 208, 190, 208, 186, 0
};
new zclass_model[12] =
{
104, 117, 110, 116, 101, 114, 118, 50, 95, 122, 112, 0
};
new zclass_clawmodel[26] =
{
118, 95, 107, 110, 105, 102, 101, 95, 122, 111, 109, 98, 105, 101, 95, 104, 117, 110, 116, 101, 114, 46, 109, 100, 108, 0
};
new leap_sound[4][] =
{
"left_4_dead2/hunter_jump.wav",
"left_4_dead2/hunter_jump1.wav",
"left_4_dead2/hunter_jump2.wav",
"left_4_dead2/hunter_jump3.wav"
};
new g_hunter;
new Float:g_lastleaptime[33];
new cvar_force;
new cvar_cooldown;bool:operator<(Float:, Float:)(Float:oper1, Float:oper2)
{
return 0 > floatcmp(oper1, oper2);
}public plugin_precache()
{
g_hunter = zp_register_zombie_class(zclass_name, zclass_info, zclass_model, zclass_clawmodel, 1460, "", 0.60/*1058642330*/, 1.00/*1065353216*/);
static i;
i = 0;
while (i < 4)
{
precache_sound(leap_sound[i][0][0]);
i += 1;
}
return 0;
}public plugin_init()
{
register_plugin(948, "0.4", "DJHD! (Fix by Bos93)");
register_forward(FM_PlayerPreThink, "fw_PlayerPreThink", 0);
cvar_force = register_cvar("zp_hunter_jump_force", "890", 0, 0.00);
cvar_cooldown = register_cvar("zp_hunter_jump_cooldown", "18.0", 0, 0.00);
static szCvar[30];
formatex(szCvar, 29, "v%s %s", "0.4", "DJHD! (Fix by Bos93)");
register_cvar("zp_zclass_hunterl4d2", szCvar, 68, 0.00);
return 0;
}public zp_user_infected_post(id, infector)
{
if (g_hunter == zp_get_user_zombie_class(id))
{
if (zp_get_user_nemesis(id))
{
return 0;
}
client_print(id, print_chat, "[ZP] Чтобы использовать супер прыжок нажмите - "CTRL + E"");
}
return 0;
}public fw_PlayerPreThink(id)
{
if (!is_user_alive(id))
{
return 0;
}
if (zp_get_user_nemesis(id))
{
return 0;
}
if (!zp_get_user_zombie(id))
{
return 0;
}
if (is_user_connected(id))
{
if (allowed_hunterjump(id))
{
static Float:velocity[3];
velocity_by_aim(id, get_pcvar_num(cvar_force), velocity);
set_pev(id, pev_velocity, velocity);
emit_sound(id, CHAN_STREAM, leap_sound[random_num(0, 3)][0][0], 1.00, 0.80, 0, 120);
g_lastleaptime[id] = get_gametime();
}
}
return 0;
}allowed_hunterjump(id)
{
!!! Removed Phi
if (!zp_get_user_zombie(id) && zp_get_user_nemesis(id))
{
return 0;
}
if (g_hunter != zp_get_user_zombie_class(id))
{
return 0;
}
if (pev(id, pev_flags) & 512 && pev(id, pev_flags) & 16384)
{
return 0;
}
if (!buttons & 32 && !is_user_bot(id))
{
return 0;
}
static Float:cooldown;
cooldown = get_pcvar_float(cvar_cooldown);
if (get_gametime() - g_lastleaptime[id][0][0] < cooldown)
{
return 0;
}
return 1;
}
-
Magicking101
- Сообщения: 5
- Зарегистрирован: 09 июн 2021, 00:12
- Благодарил (а): 1 раз.
- Поблагодарили: 0 раз.
- Языки программирования: Я ничего не знаю
- Ответить с цитатой
Re: error 010: invalid function or declaration
Fedcomp » 18 июн 2021, 22:32
Тут же написано в какой строке ошибка. Пробовали сами поправить?
Не помогаю в ЛС — есть форум.
Плагины тоже не пишу, на форуме достаточно хороших скриптеров.
«я ставлю зависимости потому что мне приятно» — subb98 @ 2017
-
Fedcomp

- Сообщения: 4909
- Зарегистрирован: 28 авг 2009, 20:47
- Благодарил (а): 788 раз.
- Поблагодарили: 1302 раз.
- Языки программирования: =>
pawn / php / python / ruby
javascript / rust
Вернуться в Скриптинг
Кто сейчас на конференции
Сейчас этот форум просматривают: Bing [Bot] и гости: 10
CaJI9pA
-
#4
плагин работал
я там всего лишь изменил Время и Причина банов
Значит где то ошибся… Код это дело хрупкое! Пропустить 1 знак и всё, пойдут ошибки
— Добавлено позже —
@levon2levon, В общем я посмотрел код, там не были проставлены «,» между причинами бана. Но при компиляции все ошибки исправлены кроме addonssourcemodscriptingban_disconnected.sp(1) : error 010: invalid function or declaration указывает на ошибку в первой строке, но там стоит #include <sourcemod>
Этого я не знаю в чем может быть проблема, может более опытные скриптеры знают из-за чего это, а я так только «начинающий»
Последнее редактирование модератором: 26 Ноя 2016
Grey83
не пишу плагины с весны 2022
-
#5
У тебя кодировка UTF-8.
А нужно чтобы была UTF-8 без BOM.
Я сменил кодировку и сразу нормально скомпилилось
levon2levon
-
#7
Все ровно Ошибка
/home/groups/sourcemod/upload_tmp/phpADJgUV.sp(202) : error 001: expected token: «,», but found «-string-«
/home/groups/sourcemod/upload_tmp/phpADJgUV.sp(202) : warning 215: expression has no effect
/home/groups/sourcemod/upload_tmp/phpADJgUV.sp(202) : error 001: expected token: «;», but found «)»
/home/groups/sourcemod/upload_tmp/phpADJgUV.sp(202) : error 029: invalid expression, assumed zero
/home/groups/sourcemod/upload_tmp/phpADJgUV.sp(202) : fatal error 189: too many error messages on one line
Последнее редактирование модератором: 27 Ноя 2016
Grey83
не пишу плагины с весны 2022
-
#8
@levon2levon, а ты запятые не поставил
В общем я посмотрел код, там не были проставлены «,» между причинами бана.