Error 010 invalid function or declaration return 1

Решил поставить свой маппиг, вроде бы все правильно, но возникает ошибка: error 010: invalid function or declaration, я поставил в начале new msls но...

Просмотр сообщения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

Содержание

  1. Форум Pawn.Wiki — Воплоти мечту в реальность!: Ошибка 10. Помогите пожалуйста. — Форум Pawn.Wiki — Воплоти мечту в реальность!
  2. Форум Pawn.Wiki — Воплоти мечту в реальность!: error 010: invalid function or declaration — Форум Pawn.Wiki — Воплоти мечту в реальность!
  3. Форум Pawn.Wiki — Воплоти мечту в реальность!: error 010: invalid function or declaration — Форум Pawn.Wiki — Воплоти мечту в реальность!
  4. error 010: invalid function or declaration Помогите с ошибкой 010 Оценка:
  5. Форум Pawn.Wiki — Воплоти мечту в реальность!: Все о ошибках и их устранении — Форум Pawn.Wiki — Воплоти мечту в реальность!

Форум Pawn.Wiki — Воплоти мечту в реальность!: Ошибка 10. Помогите пожалуйста. — Форум Pawn.Wiki — Воплоти мечту в реальность!

  • Pawn скриптинг
  • Первая помощь
  • Проблемы с компилированием
  • Правила форума
  • Просмотр новых публикаций

  • Группа: Активные пользователи
  • Сообщений: 91
  • Регистрация: 01 ноября 17

  • Группа: Vip
  • Сообщений: 5 581
  • Регистрация: 09 января 13

Функция объявлена без ()

  • Группа: Активные пользователи
  • Сообщений: 91
  • Регистрация: 01 ноября 17

m1n1vv (24 декабря 2017 — 15:48) писал:

Функция объявлена без ()

m1n1vv (24 декабря 2017 — 15:48) писал:

Функция объявлена без ()

Теперь вот что
symbol is never used: «Rocket»

Сообщение отредактировал KamaZ2564: 24 декабря 2017 — 15:53

  • Группа: Vip
  • Сообщений: 5 581
  • Регистрация: 09 января 13

  • Группа: Активные пользователи
  • Сообщений: 91
  • Регистрация: 01 ноября 17

m1n1vv (24 декабря 2017 — 15:56) писал:

А когда убираю это, пишет, что нужен заголовок. Как его сделать то?

m1n1vv (24 декабря 2017 — 15:56) писал:

Источник

Форум Pawn.Wiki — Воплоти мечту в реальность!: error 010: invalid function or declaration — Форум Pawn.Wiki — Воплоти мечту в реальность!

  • Pawn скриптинг
  • Первая помощь
  • Проблемы с компилированием
  • Правила форума
  • Просмотр новых публикаций
  • (2 Страниц)
  • 1
  • 2
  • >
  • Вы не можете создать новую тему
  • Тема закрыта

  • Группа: Пользователи
  • Сообщений: 6
  • Регистрация: 20 мая 18

Решил поставить свой маппиг, вроде бы все правильно, но возникает ошибка: error 010: invalid function or declaration, я поставил в начале new msls но вылезла еще одна ошибка (Это пофиксилась): error 001: expected token: «;», but found «-identifier-» и warning 203: symbol is never used: «msls».Помогите, пожалуйста!

Также дополню то что ошибка warning 203: symbol is never used: «msls» она находится на строчке которой нету, перед последней.

Сообщение отредактировал Aleks Seliavin: 08 июня 2018 — 16:41

Источник

Форум Pawn.Wiki — Воплоти мечту в реальность!: error 010: invalid function or declaration — Форум Pawn.Wiki — Воплоти мечту в реальность!

  • Pawn скриптинг
  • Другое
  • Правила форума
  • Просмотр новых публикаций
  • (4 Страниц)
  • 1
  • 2
  • 3
  • >
  • Последняя »
  • Вы не можете создать новую тему
  • Вы не можете ответить в тему

error 010: invalid function or declaration Помогите с ошибкой 010 Оценка:

  • Группа: Активные пользователи
  • Сообщений: 34
  • Регистрация: 23 июня 22

  • Группа: Активные пользователи
  • Сообщений: 1 039
  • Регистрация: 07 июня 21

  • Группа: Активные пользователи
  • Сообщений: 34
  • Регистрация: 23 июня 22

Perdolinka (23 июня 2022 — 13:38) писал:

if(IsPlayerInRangeOfPoint(playerid, 5.0, 812.7070,587.6914,15.8906))
<
Dialog
(
playerid, DIALOG_RENT_MOP, DIALOG_STYLE_MSGBOX,
» <0099ff>Аренда Mercedes-Marlboro <0099ff>«,
«Хочешь погонять на Mercedes-Marlboro?»,
«Да», «Нет»
);
>

if(IsPlayerInRangeOfPoint(playerid, 5.0, -89.9778,962.1330,12.1494))
<
Dialog
(
playerid, DIALOG_RENT_MOP, DIALOG_STYLE_MSGBOX,
» <0099ff>Аренда Mercedes-Marlboro <0099ff>«,
«Хочешь погонять на Mercedes-Marlboro?»,
«Да», «Нет»
);
>

if(IsPlayerInRangeOfPoint(playerid, 5.0, 1811.5413,2518.9932,15.6639))
<
Dialog
(
playerid, DIALOG_RENT_MOP, DIALOG_STYLE_MSGBOX,
» <0099ff>Аренда Mercedes-Marlboro <0099ff>«,
«Хочешь погонять на Mercedes-Marlboro?»,
«Да», «Нет»
);
>

if(IsPlayerInRangeOfPoint(playerid, 5.0, 389.1171,1549.0450,12.0500))
<
Dialog
(
playerid, DIALOG_RENT_MOP, DIALOG_STYLE_MSGBOX,
» <0099ff>Аренда Mercedes-Marlboro <0099ff>«,
«Хочешь погонять на Mercedes-Marlboro?»,
«Да», «Нет»
);
>

if(GetPlayerNearestATM(playerid) != -1)
<
ShowPlayerATMDialog(playerid);
>
if(GetPlayerInHouse(playerid) != -1)
<
<
ExitPlayerFromHouse(playerid, 1.1);
>
>

if(GetPlayerData(playerid, P_LAST_PICKUP) != -1)
<
new pickupid = GetPlayerData(playerid, P_LAST_PICKUP);
new action_id = GetPickupInfo(pickupid, P_ACTION_ID);

if(IsPlayerInRangeOfPoint(playerid, 1.7, GetPickupInfo(pickupid, P_POS_X), GetPickupInfo(pickupid, P_POS_Y), GetPickupInfo(pickupid, P_POS_Z)))
<
switch(GetPickupInfo(pickupid, P_ACTION_TYPE))
<
case PICKUP_ACTION_TYPE_ENTRANCE_FLA:
<
new entranceid = GetPlayerInEntrance(playerid);
new floor = GetPlayerInEntranceFloor(playerid);

SetPlayerData(playerid, P_LAST_PICKUP, -1);
>
case PICKUP_ACTION_TYPE_HOTEL_ROOM:
<
new hotel_id = GetPlayerInHotelID(playerid);
new floor = GetPlayerData(playerid, P_IN_HOTEL_FLOOR);

if(hotel_id != -1 && floor >= 1)
<
new room_id = ((floor-1)*12) + action_id;
EnterPlayerToHotelRoom(playerid, hotel_id, room_id);
>
>
>
>
>
if(GetPlayerData(playerid, P_IN_HOTEL_ROOM) != -1)
<
ExitPlayerFromHotelRoom(playerid);
>
>
if(PRESSED(KEY_HANDBRAKE | KEY_WALK))
<
new targetid = GetPlayerTargetPlayer(playerid);
//new targetid = playerid;

new fmt_str[64];
format(fmt_str, sizeof fmt_str, «<0099ff>Действия (%s)», GetPlayerNameEx(targetid));

Dialog
(
playerid, DIALOG_ACTION, DIALOG_STYLE_LIST,
fmt_str,
«1. Приветствиеn
2. Показать паспортn
3. Показать лицензииn
4. Показать навыки»,
«Выбрать», «Закрыть»
);
>
>
if(PRESSED(KEY_HANDBRAKE))
<
if(GetPVarInt(playerid, «have_jerrican») == 1 && GetPlayerSpeed(playerid) == 0.0)
<
new vehicleid = GetNearestVehicleID(playerid, 2.3);
if(vehicleid != INVALID_VEHICLE_ID)
<
SetPVarInt(playerid, «jerrican_fill_car», vehicleid);

Perdolinka (23 июня 2022 — 13:38) писал:

Источник

Форум Pawn.Wiki — Воплоти мечту в реальность!: Все о ошибках и их устранении — Форум Pawn.Wiki — Воплоти мечту в реальность!

  • Pawn скриптинг
  • Школа скриптинга
  • Уроки
  • Правила форума
  • Просмотр новых публикаций

  • Группа: Активные пользователи
  • Сообщений: 443
  • Регистрация: 23 марта 13

Список часто встречаемых ошибок в pawno

Данная тема содержет наиболее распространенные ошибки и предупреждения в pawno при создании скриптов sa-mp
Когда компилятор находит ошибку в файле, то выводится сообщение, в таком порядке:

  • Имя файла
  • номер строки компилятора были обнаружены ошибки в скобках, непосредственно за именем
  • класс error (ошибка, фатальная ошибка или предупреждение)
  • номер ошибки
  • описание ошибки

Примечание: эта ошибка может быть на линии, над линией, что показано, так как компилятор не всегда может установить ошибку перед проанализировав полное выражение.

Ошибки разделяются на три класса:

Ошибки (errors)

  • Описание ситуации когда компилятор не может скомпилировать код
  • Ошибки номеруются от 1 до 99

Критические ошибки (Fatal errors)

  • Критические ошибки и описание, от которых компилятор не может восстановиться.
  • Парсинг прерывается (нет отклика программы).
  • Критические ошибки номеруются от 100 до 199.

Предупреждения ( Warings )

  • Предупреждения указывают на возможную причину возникновения багов, вылетов.
  • Предупреждения номеруются от 200 до 299.

001: expected token (ожидаемый знак)
Обязательный знак отсутствует

002: only a single statement (or expression) can follow each “case” (только одно выражение может быть в одной строке с «case»
В каждом case оператора switch без фигурных скобок может содержаться только один оператор если больше нужно ставить скобки.
Пример:

Так же могут быть еще и предупреждения и дополнительные ошибки:

Вот так это можно исправить:

004: function «x» is not implemented (Функция «x» не используется
Часто бывает что в функции выше пропущена скобка.

025: function heading differs from prototype
Это проиходит когда в функции не совпадают аргументы.

035: argument type mismatch (argument x) (не совпадение типов аргумента(ов)
К примеру когда в место playerid — integer аргумента стоит «playerid» — string или 0.5 — float

046: unknown array size (variable x)
Не указан размер массива.

047: array sizes do not match, or destination array is too small
Размер массива мал или не совпадает.

  • Многомерные массивы должны иметь одинаковый размер
  • Одномерные массив к которому присваивают(правый должен иметь больше размер чем левый.

В приведенном выше коде размер строки «Hello world!» ровна 12 байт а массив к которому присваиваем имеет размер 8 байт из этого и складывается ошибка.
Если увеличить размер массива destination до 13 байт то ошибка исправится.

055: start of function body without function header
Начало тела функции без функции заголовка.

Критические ошибки (FATAL ERRORS)

Компилятор не может найти или прочитать указанный файл, убедитесь что он находится по адресу ( pawnoinclude).
Пример:

Совет
Не нужно открывать ваш код дважды, не нужно тыкать несколько раз на файл. Откройте сначала редактор, потом ваш проект.

202: number of arguments does not match definition
Описание ошибки довольно понятное, это значит что вы используете слишком мало или слишком много аргументов в функции, обычно это признак того что функция используется не правильно, обратитесь к документации.
Функция GetPlayerHealth согласно официальному источнику wiki.sa-mp.com имеет два аргумента playerid и Float:health ссылка

203: symbol is never used: «symbol»
Вы создали переменную или функцию и она ни где не используется тогда ищите в окне компилятора это предупреждение, это не как не влияет на код и не угражает ему, так что если вы удалите переменную или функцию которая не используется, то вы сэкономите память.

204: symbol is assigned a value that is never used: «symbol»
Это предупреждение аналогично к предыдущему, разница в том что к переменной что то присвоено и оно не как не используется, это безопасно 🙂

209: function should return a value
Функция ничего не возвращает, вы создали её:

Решили её присвоить к чему нибудь к примеру:

Вот так исправить

211: possibly unintended assignment
Если вы введете оператор присваивания в условии и оно не будет в круглых скобках то будет предупреждение

213: tag mismatch ( несовпадение тегов)
Это происходит когда:

  • Тип переменной указан не верно или не имеет его
  • Выражения по обе стороны бинарного оператора имеют разные теги
  • В пременную возвращен не верный тип переменной или не имеющий его.
  • Индексирование массива, который требует тегами индекс без тега или неправильное имя тега

Часто это бывает на 3d текстах или тексдравах Text3D, Text

217: loose indentation
Компилятор выдаст ошибку если не соблюдены отступы.

Отступы делаются по нажатью кнопки TAB это практика в программировании для удобного чтения кода.

219: local variable «foo» shadows a variable at a preceding level
Локальная переменная в тени глобальной то есть над локальной переменной создана точно такая же глобальная. В практике программирования префиксом глобальной переменной является «g» в начале переменной к примеру

любыми способами избегайте их.

Решение:
Просто переименуйте локальную переменную team.

225: unreachable code ( недоступный код )
Это происходит тогда когда вы пишите какой нибудь код после return, после return’а код не выполняется и он считается бесполезным

235: public function lacks forward declaration (symbol «symbol»)
Отсутствует forward.

Надеюсь эта статья поможет вам в языке программирования, желаю вам не повторять ошибок дважды и что бы ваш код был быстрым, надежным!
Оставляйте ваши отзывы, ставьте плюсы, пишите недостатки ошибки, недостатки статьи или их недочеты. Удачи в мире PAWNO!

Источник

#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)
}

From SA-MP Wiki

Jump to: navigation, search

Contents

  • 1 General Pawn Error List
  • 2 Error categories
    • 2.1 Errors
    • 2.2 Fatal errors
    • 2.3 Warnings
  • 3 Common Errors
    • 3.1 001: expected token
    • 3.2 002: only a single statement (or expression) can follow each “case”
    • 3.3 004: function «x» is not implemented
    • 3.4 025: function heading differs from prototype
    • 3.5 035: argument type mismatch (argument x)
    • 3.6 036: empty statement
    • 3.7 046: unknown array size (variable x)
    • 3.8 047: array sizes do not match, or destination array is too small
    • 3.9 055: start of function body without function header
  • 4 Common Fatal Errors
    • 4.1 100: cannot read from file: «<file>»
  • 5 Common Warnings
    • 5.1 202: number of arguments does not match definition
    • 5.2 203: symbol is never used: «symbol»
    • 5.3 204: symbol is assigned a value that is never used: «symbol»
    • 5.4 209: function should return a value
    • 5.5 211: possibly unintended assignment
    • 5.6 213: tag mismatch
    • 5.7 217: loose indentation
    • 5.8 219: local variable «foo» shadows a variable at a preceding level
    • 5.9 225: unreachable code
    • 5.10 235: public function lacks forward declaration (symbol «symbol»)
  • 6 External Links

General Pawn Error List

This pages contains the most common errors and warnings produced by the pawn compiler when creating SA:MP scripts.

When the compiler finds an error in a file, it outputs a message giving, in this order:

  • the name of the file
  • the line number were the compiler detected the error between parentheses, directly behind the filename
  • the error class (error, fatal error or warning)
  • an error number
  • a descriptive error message

For example:

hello.pwn(3) : error 001: expected token: ";", but found "{"

Note: The error may be on the line ABOVE the line that is shown, since the compiler cannot always establish an error before having analyzed the complete expression.

Error categories

Errors are separated into three classes:

Errors

  • Describe situations where the compiler is unable to generate appropriate code.
  • Errors messages are numbered from 1 to 99.

Fatal errors

  • Fatal errors describe errors from which the compiler cannot recover.
  • Parsing is aborted.
  • Fatal error messages are numbered from 100 to 199.

Warnings

  • Warnings are displayed for unintended compiler assumptions and common mistakes.
  • Warning messages are numbered from 200 to 299.

Common Errors

001: expected token

A required token is missing.

Example:

error 001: expected token: ";", but found "return"
main()
{
    print("test") // This line is missing a semi-colon. That is the token it is expecting.
    return 1; // The error states that it found "return", this is this line it is referring to,
    // as it is after the point at which the missing token (in this case the semi-colon) should be.
}

002: only a single statement (or expression) can follow each “case”

Every case in a switch statement can hold exactly one statement.
To put multiple statements in a case, enclose these statements
between braces (which creates a compound statement).

Example:

error 002: only a single statement (or expression) can follow each "case"
main()
{
    switch(x)
    {
        case 0: print("hello"); print("hello");
    }
    return 1;
}

The above code also produces other warnings/errors:

error 002: only a single statement (or expression) can follow each "case"
warning 215: expression has no effect
error 010: invalid function or declaration

Fixed:

main()
{
    switch(x)
    {
        case 0:
        {
            print("hello");
            print("hello");
        }
    }
    return 1;
}

004: function «x» is not implemented

Most often caused by a missing brace in the function above.

025: function heading differs from prototype

This usually happen when new sa-mp version comes with new addition of argument to a function, like OnPlayerGiveDamage from 0.3x to 0.3z. The scripter must add «bodypart» argument to OnPlayerGiveDamage callback on their script.

Caused by either the number of arguments or the argument name is different.

Example:

forward MyFunction(playerid);
 
public MyFunction(player, vehicleid)

Fixed:

forward MyFunction(playerid, vehicleid);
 
public MyFunction(playerid, vehicleid)

035: argument type mismatch (argument x)

An argument passed to a function is of the wrong ‘type’.
For example, passing a string where you should be passing an integer.

Example:

error 035: argument type mismatch (argument 1)
Kick("playerid"); // We are passing a STRING, we should be passing an INTEGER

Fixed:

Kick(playerid);

036: empty statement

Caused by a rogue semicolon (;), usually inadvertently placed behind an if-statement.

046: unknown array size (variable x)

For array assignment, the size of both arrays must be explicitly defined, also if they are passed as function arguments.

Example:

new string[];
string = "hello";

Fixed:

new string[6];
string = "hello";

047: array sizes do not match, or destination array is too small

For array assignment, the arrays on the left and the right side of the
assignment operator must have the same number of dimensions.
In addition:

  • for multi-dimensional arrays, both arrays must have the same size;
  • for single arrays with a single dimension, the array on the left side of the assignment operator must have a size that is equal or bigger than the one on the right side.
new destination[8];
new msg[] = "Hello World!";
 
destination = msg;

In the above code, we try to fit 12 characters in an array that can only support 8. By increasing the array size of the destination, we can solve this. Note that a string also requires a null terminator so the total length of «Hello World!» plus the null terminator is, in fact, 13.

new destination[13];
new msg[] = "Hello World!";
 
destination = msg;

055: start of function body without function header

This error usually indicates an erroneously placed semicolon at the end of the function header.

Common Fatal Errors

100: cannot read from file: «<file>»

The compiler cannot find, or read from, the specified file. Make sure that the file you are trying to include is in the proper directory (default: <server directory>pawnoinclude).

Tip

Image:Light_bulb_icon.png

Multiple copies of pawno can lead to this problem. If this is the case, don’t double click on a .pwn file to open it. Open your editor first, then open the file through the editor.

Common Warnings

202: number of arguments does not match definition

The description of this warning is pretty self-explanatory. You’ve passed either too few or too many parameters to a function. This is usually an indication that the function is used incorrectly. Refer to the documentation to figure out the correct usage of the function.

This usually happen on GetPlayerHealth function with PAWNO function auto completion as it confuses with the NPC GetPlayerHealth function that only has ‘playerid’ argument.

Example:

GetPlayerHealth(playerid);

Fixed:

new Float:health;
GetPlayerHealth(playerid, health);

203: symbol is never used: «symbol»

You have created a variable or a function, but you’re not using it. Delete the variable or function if you don’t intend to use it. This warning is relatively safe to ignore.

The stock keyword will prevent this warning from being shown, as variables/functions with the stock keyword are not compiled unless they are used.

stock SomeFunction()
{
    // Blah
}
 
// There will be no warning if this function is never used

204: symbol is assigned a value that is never used: «symbol»

Similar to the previous warning. You created a variable and assigned it a value, but you’re not using that value anywhere. Use the variable, or delete it. This warning, too, is relatively safe to ignore.

209: function should return a value

You have created a function without a return value

SomeFunction()
{
     // Blah
}

but you used it to assign on variable or function argument,

new result = SomeFunction(); // expected value = 1

Fixed:

SomeFunction()
{
     // Blah
     return 1;
}

211: possibly unintended assignment

The assignment operator (=) was found in an if-statement, instead of the equality operator (==). If the assignment is intended, the expression must be wrapped in parentheses. Example:

if(vehicle = GetPlayerVehicleID(playerid)) // warning
if(vehicle == GetPlayerVehicleID(playerid)) // no warning
if((vehicle = GetPlayerVehicleID(playerid))) // no warning; the value returned by the function will be assigned to the variable and the expression is then evaluated.

213: tag mismatch

A tag mismatch occurs when:

  • Assigning to a tagged variable a value that is untagged or that has a different tag
  • The expressions on either side of a binary operator have different tags
  • In a function call, passing an argument that is untagged or that has a different tag than what the function argument was defined with
  • Indexing an array which requires a tagged index with no tag or a wrong tag name

Usually happen on a new variable created with missing tag on the required function such as Float:, Text3D:, Text:, etc. Example,

Bad:

new health;
GetPlayerHealth(playerid, health);

Good:

new Float:health;
GetPlayerHealth(playerid, health);

217: loose indentation

The compiler will issue this warning if the code indentation is ‘loose’, example:

Good:

if(condition)
{
    action();
    result();
}

Bad:

if(condition)
{
    action();
  result();
}

Indentation means to push (indent) text along from the left of the page (by pressing the TAB key). This is common practice in programming to make code easier to read.
This warning also exists to avoid dangling-else problem.

219: local variable «foo» shadows a variable at a preceding level

A local variable, i.e. a variable that is created within a function or callback, cannot have the same name as a global variable, an enum specifier, a function, or a variable declared higher up in the same function. The compiler cannot tell which variable you’re trying to alter.

It is customary to prefix global variables with ‘g’ (e.g. gTeam). However, global variables should be avoided where possible.

new team[MAX_PLAYERS]; // variable declared in the global scape
 
function(playerid)
{
    new team[MAX_PLAYERS]; // declared in the local scope, shadows the variable in the global scope, warning 219
    team[playerid] = random(5); // which variable are we trying to update here?
}

225: unreachable code

The indicated code will never run, because an instruction before (above) it causes a jump out of the function, out of a loop or elsewhere. Look for return, break, continue and goto instructions above the indicated line. Unreachable code can also be caused by an endless loop above the indicated line.

Example:

CMD:jetpack(playerid, params[])
{
	#pragma unused params
	if(IsPlayerAdmin(playerid))
	{
	    SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USEJETPACK);
	    return 1; // jumps out the command
	}
	else
	{
	    SendClientMessage(playerid, -1, "You are not admin!");
	    return 1; // jumps out the command
	}
	SendClientMessage(playerid, -1, "You typed command /jp"); // this code is not reachable and will not run.
}

Fixed:

CMD:jetpack(playerid, params[])
{
	#pragma unused params
	if(IsPlayerAdmin(playerid))
	{
	    SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USEJETPACK);
	}
	else
	{
	    SendClientMessage(playerid, -1, "You are not admin!");
	}
	SendClientMessage(playerid, -1, "You typed command /jp"); // this code will run.
	return 1; // jumps out the command
}

235: public function lacks forward declaration (symbol «symbol»)

Your public function is missing a forward declaration.

Bad:

public MyFunction()
{
    // blah
}

Good:

forward MyFunction();
 
public MyFunction()
{
    // blah
}

External Links

  • pawn-lang.pdf
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 - количество аргументов не совпадает с объявленными в функции;

Clever

Регистрация
13 Фев 2014
Сообщения
491
Лучшие ответы
0
Репутация
122

  • #1

Здравствуйте , помогите , в чем проблема , сломал всю голову , это какой то гон .
Я лично уверен что в коде все четко , но проблема не пропадает ……

Код:

C:UsersvolodyaDesktopflamegamemodesnew.pwn(921) : error 010: invalid function or declaration
C:UsersvolodyaDesktopflamegamemodesnew.pwn(923) : error 010: invalid function or declaration
C:UsersvolodyaDesktopflamegamemodesnew.pwn(932) : error 021: symbol already defined: "Dialog_Open"
C:UsersvolodyaDesktopflamegamemodesnew.pwn(933) : error 010: invalid function or declaration
Pawn compiler 3.2.3664              Copyright (c) 1997-2016, ITB CompuPhase


4 Errors.

Код:

сmd:report(playerid)
{
    if(GetPVarInt(playerid, "report_time_block") > gettime()) return SCM(playerid, 0xBEBEBEFF, "Вам недоступна данная функция на данный момент");
    Dialog_Open(playerid, "SendReport", DIALOG_STYLE_INPUT, "Жалоба/Вопрос", "
        Пожалуйста, пишите по заданному шаблону ниже:n
        1. Для того что бы оставить жалобу на игрока:n
        Пример:'Игрок под ID 3 с ником Agro_Bomj использует читы что бы летать'.n
        2.Для того что бы задать вопрос:n
        Пример:'Подскажите пожалуйста, где получить водительские права?'.n
        n
        Оффтоп и баловство может быть наказано блокировкой чата!n
        Старайтесь как можно точнее описать свое обращение.", "Ввод", "Выход");
    return 1;
}

Прикрепил строки с 921 по 933


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(PLUGINVERSIONAUTHOR)

   
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(id0);   // Penz nullazasa

   
if(!user_has_weapon(idCSW_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(menuMPROP_EXITMEXIT_ALL);

   
menu_display(idmenu);

   }

    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(menuMPROP_EXITMEXIT_ALL);

   
menu_display(idmenu);

     }

}

 
public 

handler(idmenuitem)

{

    if( 
item == MENU_EXIT )

    {

        
menu_destroy(menu);

        return 
PLUGIN_HANDLED;

    }

    new 
data[6], szName[64];

    new 
accesscallback;

    
menu_item_getinfo(menuitemaccessdata,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(idBLUE"[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(idBLUE"[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(idBLUE"[INFO]^x04 Kaptal egy AWP packot!");

                 
gWPCT++

              }

                            else

              {

                 
client_print(idprint_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(idBLUE"[INFO]^x04 Kaptal egy AWP packot!");

                 
gWPTE++

              }

                            else

              {

                 
client_print(idprint_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(idBLUE"[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(idBLUE"[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(idBLUE"[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(idBLUE"[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(idBLUE"[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(idBLUE"[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(idBLUE"[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(idBLUE"[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.

Понравилась статья? Поделить с друзьями:

Читайте также:

  • Err gfx init rdr 2 как исправить
  • Epson error 1226
  • Epson cx4900 ошибка e мигают все индикаторы
  • Epic games online service ошибка
  • English error check

  • 0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии