Sign in to follow this  
Followers 0
Иосиф Маркелов

[закрыто] Ошибка с компиляцией

Рекомендованные сообщения



Не найдено.

1 post in this topic

//spawn
	new tmpobjid;
	SetDynamicObjectMaterial(tmpobjid, 0, 3979, "civic01_lan", "crazy paving", 0x00000000);
	tmpobjid = CreateDynamicObjectEx(8661,1743.029,-1916.089,2000.000,0.000,0.000,270.000,300.000,300.000);
	SetDynamicObjectMaterial(tmpobjid, 0, 4101, "stapl", "sl_Laexpowin2", 0x00000000);
	tmpobjid = CreateDynamicObjectEx(8661,1734.045,-1916.177,2006.989,18.989,-180.000,270.000,300.000,300.000);
	tmpobjid = CreateDynamicObjectEx(8661,1751.870,-1916.177,2006.989,18.989,-180.000,90.000,300.000,300.000);
	SetDynamicObjectMaterial(tmpobjid, 0, 4101, "stapl", "sl_Laexpowin2", 0x00000000);
	tmpobjid = CreateDynamicObjectEx(19359,1734.296,-1907.791,2001.750,0.000,0.000,90.000,300.000,300.000);
	SetDynamicObjectMaterial(tmpobjid, 0, 8391, "ballys01", "ballywall02_128", 0x00000000);
	tmpobjid = CreateDynamicObjectEx(19359,1734.301,-1920.453,2001.750,0.000,0.000,90.000,300.000,300.000);
	SetDynamicObjectMaterial(tmpobjid, 0, 8391, "ballys01", "ballywall02_128", 0x00000000);
	tmpobjid = CreateDynamicObjectEx(19362,1751.880,-1899.828,2001.755,0.000,0.000,0.000,300.000,300.000);
	SetDynamicObjectMaterial(tmpobjid, 0, 3292, "cxrf_payspray", "newindow4", 0x00000000);
	tmpobjid = CreateDynamicObjectEx(19362,1751.880,-1904.642,2001.755,0.000,0.000,0.000,300.000,300.000);
	SetDynamicObjectMaterial(tmpobjid, 0, 3292, "cxrf_payspray", "newindow4", 0x00000000);
	tmpobjid = CreateDynamicObjectEx(19362,1751.870,-1899.828,2004.244,0.000,0.000,0.000,300.000,300.000);
	SetDynamicObjectMaterial(tmpobjid, 0, 3292, "cxrf_payspray", "newindow4", 0x00000000);
	tmpobjid = CreateDynamicObjectEx(19362,1751.870,-1904.644,2004.244,0.000,0.000,0.000,300.000,300.000);
	SetDynamicObjectMaterial(tmpobjid, 0, 3292, "cxrf_payspray", "newindow4", 0x00000000);
	tmpobjid = CreateDynamicObjectEx(19362,1751.874,-1909.468,2004.244,0.000,0.000,0.000,300.000,300.000);
	SetDynamicObjectMaterial(tmpobjid, 0, 3292, "cxrf_payspray", "newindow4", 0x00000000);
	tmpobjid = CreateDynamicObjectEx(19362,1751.874,-1914.032,2004.244,0.000,0.000,0.000,300.000,300.000);
	SetDynamicObjectMaterial(tmpobjid, 0, 3292, "cxrf_payspray", "newindow4", 0x00000000);
	tmpobjid = CreateDynamicObjectEx(19362,1751.870,-1918.646,2004.244,0.000,0.000,0.000,300.000,300.000);
	SetDynamicObjectMaterial(tmpobjid, 0, 3292, "cxrf_payspray", "newindow4", 0x00000000);
	tmpobjid = CreateDynamicObjectEx(19362,1751.869,-1923.473,2001.755,0.000,0.000,0.000,300.000,300.000);
	SetDynamicObjectMaterial(tmpobjid, 0, 3292, "cxrf_payspray", "newindow4", 0x00000000);
	tmpobjid = CreateDynamicObjectEx(19362,1751.869,-1923.473,2004.244,0.000,0.000,0.000,300.000,300.000);
	SetDynamicObjectMaterial(tmpobjid, 0, 3292, "cxrf_payspray", "newindow4", 0x00000000);
	tmpobjid = CreateDynamicObjectEx(19362,1751.869,-1928.300,2001.755,0.000,0.000,0.000,300.000,300.000);
	SetDynamicObjectMaterial(tmpobjid, 0, 3292, "cxrf_payspray", "newindow4", 0x00000000);
	tmpobjid = CreateDynamicObjectEx(19362,1751.869,-1928.300,2004.244,0.000,0.000,0.000,300.000,300.000);
	SetDynamicObjectMaterial(tmpobjid, 0, 3292, "cxrf_payspray", "newindow4", 0x00000000);
	tmpobjid = CreateDynamicObjectEx(19362,1747.795,-1931.859,2004.259,0.000,0.000,270.000,300.000,300.000);
	SetDynamicObjectMaterial(tmpobjid, 0, 3292, "cxrf_payspray", "newindow4", 0x00000000);
	tmpobjid = CreateDynamicObjectEx(19362,1742.972,-1931.857,2004.259,0.000,0.000,270.000,300.000,300.000);
	SetDynamicObjectMaterial(tmpobjid, 0, 3292, "cxrf_payspray", "newindow4", 0x00000000);
	tmpobjid = CreateDynamicObjectEx(19362,1738.159,-1931.864,2004.259,0.000,0.000,270.000,300.000,300.000);
	SetDynamicObjectMaterial(tmpobjid, 0, 3292, "cxrf_payspray", "newindow4", 0x00000000);
	tmpobjid = CreateDynamicObjectEx(19371,1753.496,-1899.826,2005.906,0.000,90.000,0.000,300.000,300.000);
	SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "white", 0x00000000);
	tmpobjid = CreateDynamicObjectEx(19371,1753.496,-1904.644,2005.906,0.000,90.000,0.000,300.000,300.000);
	SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "white", 0x00000000);
	tmpobjid = CreateDynamicObjectEx(19371,1753.496,-1909.467,2005.906,0.000,90.000,0.000,300.000,300.000);
	SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "white", 0x00000000);
	tmpobjid = CreateDynamicObjectEx(19371,1753.496,-1914.032,2005.906,0.000,90.000,0.000,300.000,300.000);
	SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "white", 0x00000000);
	tmpobjid = CreateDynamicObjectEx(19371,1753.496,-1918.651,2005.906,0.000,90.000,0.000,300.000,300.000);
	SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "white", 0x00000000);
	tmpobjid = CreateDynamicObjectEx(19371,1753.496,-1923.473,2005.906,0.000,90.000,0.000,300.000,300.000);
	SetDynamicObjectMaterial(tmpobjid, 0, 10765, "airportgnd_sfse", "white", 0x00000000);
	tmpobjid = CreateDynamicObjectEx(19371,1753.496,-1928.300,2005.906,0.000,90.000,0.000,300.000,300.000);

Код с ошибкой выше

Короче добавил мапинг  и в нем ошибки исправить не могу! Что пишет при компиляцие:

D:\ñåðâåð\ìîä\ìîä\pawno\include\object.inc(3) : warning 219: local variable "tmpobjid" shadows a variable at a preceding level
D:\ñåðâåð\ìîä\ìîä\pawno\include\object.inc(3) : error 010: invalid function or declaration
D:\ñåðâåð\ìîä\ìîä\pawno\include\object.inc(4) : error 010: invalid function or declaration
D:\ñåðâåð\ìîä\ìîä\pawno\include\object.inc(6) : error 010: invalid function or declaration
D:\ñåðâåð\ìîä\ìîä\pawno\include\object.inc(9) : error 010: invalid function or declaration
D:\ñåðâåð\ìîä\ìîä\pawno\include\object.inc(11) : error 010: invalid function or declaration
D:\ñåðâåð\ìîä\ìîä\pawno\include\object.inc(13) : error 010: invalid function or declaration
D:\ñåðâåð\ìîä\ìîä\pawno\include\object.inc(15) : error 010: invalid function or declaration
D:\ñåðâåð\ìîä\ìîä\pawno\include\object.inc(17) : error 010: invalid function or declaration
D:\ñåðâåð\ìîä\ìîä\pawno\include\object.inc(19) : error 010: invalid function or declaration
D:\ñåðâåð\ìîä\ìîä\pawno\include\object.inc(21) : error 010: invalid function or declaration
D:\ñåðâåð\ìîä\ìîä\pawno\include\object.inc(23) : error 010: invalid function or declaration
D:\ñåðâåð\ìîä\ìîä\pawno\include\object.inc(25) : error 010: invalid function or declaration
D:\ñåðâåð\ìîä\ìîä\pawno\include\object.inc(27) : error 010: invalid function or declaration
D:\ñåðâåð\ìîä\ìîä\pawno\include\object.inc(29) : error 010: invalid function or declaration
D:\ñåðâåð\ìîä\ìîä\pawno\include\object.inc(31) : error 010: invalid function or declaration
D:\ñåðâåð\ìîä\ìîä\pawno\include\object.inc(33) : error 010: invalid function or declaration
D:\ñåðâåð\ìîä\ìîä\pawno\include\object.inc(35) : error 010: invalid function or declaration
D:\ñåðâåð\ìîä\ìîä\pawno\include\object.inc(37) : error 010: invalid function or declaration
D:\ñåðâåð\ìîä\ìîä\pawno\include\object.inc(39) : error 010: invalid function or declaration
D:\ñåðâåð\ìîä\ìîä\pawno\include\object.inc(41) : error 010: invalid function or declaration
D:\ñåðâåð\ìîä\ìîä\pawno\include\object.inc(43) : error 010: invalid function or declaration
D:\ñåðâåð\ìîä\ìîä\pawno\include\object.inc(45) : error 010: invalid function or declaration
D:\ñåðâåð\ìîä\ìîä\pawno\include\object.inc(47) : error 010: invalid function or declaration
D:\ñåðâåð\ìîä\ìîä\pawno\include\object.inc(49) : error 010: invalid function or declaration
D:\ñåðâåð\ìîä\ìîä\pawno\include\object.inc(51) : error 010: invalid function or declaration
D:\ñåðâåð\ìîä\ìîä\pawno\include\object.inc(53) : error 010: invalid function or declaration

Compilation aborted.

Pawn compiler 3.10.20160702	 	 	Copyright (c) 1997-2006, ITB CompuPhase


26 Errors.

Помогите пж

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • Dworkin
      By Dworkin
      Привет. Мне тяжело дается понимание строк в pawn из за не динамических массивов.
      #include enum pInfo { pRangName[25] } new players[MAX_PLAYERS][pInfo]; new string[20]; main() { format(string, sizeof(string), "Салага"); printf(string); players[0][pRangName] = string; } выдает ошибку "error 047: array sizes do not match, or destination array is too small" на строку "players[0][pRangName] = string;"
      Я понимаю что в ошибке говорится что размер не совпадает, но не могу понять как это сделать в павне
    • Ero33
      By Ero33
      Помогите решить проблему всё сделал, mysql подклучен но не открывается окно регистрациа ---------- Loaded log file: "server_log.txt". ---------- SA-MP Dedicated Server ---------------------- v0.3.7-R2, (C)2005-2015 SA-MP Team [20:35:47] [20:35:47] Server Plugins [20:35:47] -------------- [20:35:47] Loading plugin: crashdetect.so [20:35:47] CrashDetect plugin 4.19.4 [20:35:47] Loaded. [20:35:47] Loading plugin: filemanager.so [20:35:47] ****************** [20:35:47] ** FILE MANAGER ** [20:35:47] ** Loaded ** [20:35:47] ** Version 1.5 ** [20:35:47] ****************** [20:35:47] Loaded. [20:35:47] Loading plugin: gvar.so [20:35:47] *** GVar Plugin v1.3 by Incognito loaded *** [20:35:47] Loaded. [20:35:47] Loading plugin: mysql.so [20:35:47] >> plugin.mysql: R41-4 successfully loaded. [20:35:47] Loaded. [20:35:47] Loading plugin: pawncmd.so [20:35:47] Pawn.CMD plugin v3.2.0 by urShadow has been loaded [20:35:47] Loaded. [20:35:47] Loading plugin: pawnraknet.so [20:35:47] [Pawn.RakNet] | Pawn.RakNet 1.4.1 | 2016 - 2020 |-------------------------------- | Author and maintainer: urShadow | Compiled: Jun 18 2020 at 11:28:17 |-------------------------------------------------------------- | Forum thread: https://forum.sa-mp.com/showthread.php?t=640306 |-------------------------------------------------------------- | Repository: https://github.com/urShadow/Pawn.RakNet |-------------------------------------------------------------- | Wiki: https://github.com/urShadow/Pawn.RakNet/wiki [20:35:47] Loaded. [20:35:47] Loading plugin: pawnregex.so [20:35:47] [Pawn.Regex] plugin v1.1.3 by urShadow loaded [20:35:47] Loaded. [20:35:47] Loading plugin: profiler.so [20:35:47] Profiler plugin 2.15.3 [20:35:47] Loaded. [20:35:47] Loading plugin: sscanf.so [20:35:47] [20:35:47] =============================== [20:35:47] sscanf plugin loaded. [20:35:47] Version: 2.8.3 [20:35:47] (c) 2018 Alex "Y_Less" Cole [20:35:47] =============================== [20:35:47] Loaded. [20:35:47] Loading plugin: streamer.so [20:35:47] *** Streamer Plugin v2.9.4 by Incognito loaded *** [20:35:47] Loaded. [20:35:47] Loading plugin: TOTP.so [20:35:47] TOTP plugin v1.0.1 by Games loaded. [20:35:47] Loaded. [20:35:47] Loaded 11 plugins. [20:35:47] [20:35:47] Filterscripts [20:35:47] --------------- [20:35:47] Loading filterscript 'rega_KYPE.amx'... [20:35:47] Loaded 1 filterscripts. [20:35:48] [20:35:48] -------------------------------------- [20:35:48] ������� Nex-AC ��������! [20:35:48] ������ ��������: 1.9.53 [20:35:48] �����: Nexius [20:35:48] -------------------------------------- [20:35:48] [�������� ...] �� MYSQL ������� ���������! (������ [��������] | 1) [20:35:48] [�������� ...] ��������� ������� �������� (0 ��.) [20:35:48] [�������� ...] �� ������� ������� ��������� (0 ��.) [20:35:48] [�������� ...] ���� ����/����� ������� �������� (0 ��.) [20:35:48] ����� � ���� �� ������� [20:35:48] [�������� ...] ���� ������� ��������� (0 ��.) [20:35:48] ������ � ���� �� ������� [20:35:48] [�������� ...] ����� ������� ��������� (0 ��.) [20:35:48] ��������� � ���� �� ������� [20:35:48] [�������� ...] ��������� ������� ��������� (0 ��.) [20:35:48] [�������� ...] ��������� ������� ��������� (0 ��.) [20:35:48] ����� � ���� �� ������� [20:35:48] [�������� ...] ����� ������� ��������� (0 ��.) [20:35:48] ������� � ������ � ���� �� ������� [20:35:48] [�������� ...] ������� � ����� ������� ��������� (0 ��.) [20:35:48] ���-�� ����'�� � ���� �� ��������� � �������������� ����������� [20:35:48] [�������� ...] ��������� �������� ������� ��������� (0 ��.) [20:35:48] �� ���������� func �������� � ���� [20:35:48] [�������� ...] ������� ������� ������� ��������� (0 ��.) [20:35:48] �� ���������� �������� � ���� [20:35:48] [�������� ...] ������� ������� ��������� (0 ��.) [20:35:48] [�������� ...] ������� ���� ������� ��������� (0 ��.) [20:35:48] [�������� ...] �������� ������� ��������� (0 ��.) [20:35:48] [�������� ...] ������� ������� ��������� (0 ��.) [20:35:48] [�������� ...] ���������� ������� ��������� (0 ��.) [20:35:48] [�������� ...] ������� ������� �������� (0 ��.) [20:35:48] [�������� ...] ������ ����� ������� �������� (0 ��.) [20:35:48] [�������� ...] ����������� ������� ��������� (0 ��.) [20:35:48] [�������� ...] ��������� ������� ��������� [20:35:48] �� ���������� ATMS � ���� [20:35:48] [�������� ...] ��������� ������� ��������� (0 ��.) [20:35:48] [�������� ...] ����������� ��������� [20:35:48] [�������� ...] ������ ������� ������� ��������� [20:35:48] �������� �� ������� [20:35:48] [������� ...] ������������ ��������: (19832 ��.) [20:35:48] [������� ...] ����������� ��������: (120 ��.) [20:35:48] _______________________________________________________ [20:35:48] [20:35:48] dev by: glvde. | vk.com/way_dev [20:35:48] aurora project � 2021, inc. all rights reserved. [20:35:48] _______________________________________________________ [20:35:48] Number of vehicle models: 109 [20:35:48] [OnQueryError] SQL ERROR. QUERY: [20:35:48] SET CHARACTER SET 'utf8' [20:35:48] [OnQueryError] SQL ERROR. QUERY: [20:35:48] SET NAMES 'utf8' [20:35:48] [OnQueryError] SQL ERROR. QUERY: [20:35:48] SET character_set_client = 'cp1251' [20:35:48] [OnQueryError] SQL ERROR. QUERY: [20:35:48] SET character_set_connection = 'cp1251' [20:35:48] [OnQueryError] SQL ERROR. QUERY: [20:35:48] SET character_set_results = 'cp1251' [20:35:48] [OnQueryError] SQL ERROR. QUERY: [20:35:48] SET SESSION collation_connection = 'utf8_general_ci' [20:35:48] [OnQueryError] SQL ERROR. QUERY: [20:35:48] UPDATE `accounts` SET `online_status` = '1001' [20:35:48] [OnQueryError] SQL ERROR. QUERY: [20:35:48] ALTER TABLE `accounts` ALTER `pCash` SET DEFAULT '0' [20:35:48] [OnQueryError] SQL ERROR. QUERY: [20:35:48] ALTER TABLE `accounts` ALTER `pLevel` SET DEFAULT '0' [20:35:48] [OnQueryError] SQL ERROR. QUERY: [20:35:48] UPDATE `reports` SET `count` = '0' WHERE `id` = 1