Error 006 must be assigned to an array pawno

Привет все! Есть отрезок кода: if(PlayerInfo[playerid][pAdminlvl] > 0) // ???? ????? ????????????? { ...


#1

Пользователь офлайн
 

Отправлено 08 ноября 2015 — 15:15

  • Местный

Привет все! Есть отрезок кода:

		        if(PlayerInfo[playerid][pAdminlvl] > 0) // ???? ????? ?????????????
		        {
					new RaAdmin = random(3); // ???????? ???????? ????? ?????? ??????
					if(RaAdmin == 1) // ?????????? ?? ?????
					{
						PlayerInfo[playerid][pSpawnX] = "1541.0939";
						PlayerInfo[playerid][pSpawnY] = "-1366.8236";
						PlayerInfo[playerid][pSpawnZ] = "326.2109";
						PlayerInfo[playerid][pSpawnCam] = "309.0221";
					}
					if(RaAdmin == 2) // ?????????? ?? ??????? ???????
					{
						PlayerInfo[playerid][pSpawnX] = "1571.5765";
						PlayerInfo[playerid][pSpawnY] = "-1332.3491";
						PlayerInfo[playerid][pSpawnZ] = "16.4844";
						PlayerInfo[playerid][pSpawnCam] = "322.7968";
					}
					if(RaAdmin == 3) // ?????????? ?? ?????? ?????
					{
						PlayerInfo[playerid][pSpawnX] = "1515.9972";
						PlayerInfo[playerid][pSpawnY] = "-1373.5088";
						PlayerInfo[playerid][pSpawnZ] = "13.9522";
						PlayerInfo[playerid][pSpawnCam] = "176.1321";
					}
		        }

Выходят следующие ошибки:

C:Users?????????????DesktopReal Life Role Play V2gamemodesBananastreet_v1_1.pwn(727) : error 006: must be assigned to an array
C:Users?????????????DesktopReal Life Role Play V2gamemodesBananastreet_v1_1.pwn(728) : error 006: must be assigned to an array
C:Users?????????????DesktopReal Life Role Play V2gamemodesBananastreet_v1_1.pwn(729) : error 006: must be assigned to an array
C:Users?????????????DesktopReal Life Role Play V2gamemodesBananastreet_v1_1.pwn(730) : error 006: must be assigned to an array
C:Users?????????????DesktopReal Life Role Play V2gamemodesBananastreet_v1_1.pwn(734) : error 006: must be assigned to an array
C:Users?????????????DesktopReal Life Role Play V2gamemodesBananastreet_v1_1.pwn(735) : error 006: must be assigned to an array
C:Users?????????????DesktopReal Life Role Play V2gamemodesBananastreet_v1_1.pwn(736) : error 006: must be assigned to an array
C:Users?????????????DesktopReal Life Role Play V2gamemodesBananastreet_v1_1.pwn(737) : error 006: must be assigned to an array
C:Users?????????????DesktopReal Life Role Play V2gamemodesBananastreet_v1_1.pwn(741) : error 006: must be assigned to an array
C:Users?????????????DesktopReal Life Role Play V2gamemodesBananastreet_v1_1.pwn(742) : error 006: must be assigned to an array
C:Users?????????????DesktopReal Life Role Play V2gamemodesBananastreet_v1_1.pwn(743) : error 006: must be assigned to an array
C:Users?????????????DesktopReal Life Role Play V2gamemodesBananastreet_v1_1.pwn(744) : error 006: must be assigned to an array
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


12 Errors.

В чем ошибся понять не могу, помогите пожалуйста?

0



#2

Отправлено 12 ноября 2015 — 18:40

  • Местный

0



#3

Отправлено 12 ноября 2015 — 19:09

  • Liberty Inc.
	if(PlayerInfo[playerid][pAdminlvl] > 0) // ???? ????? ?????????????
 	{
		switch(random(3))
		{
    		case 0:
     		{
      			PlayerInfo[playerid][pSpawnX] = 1541.0939;
        		PlayerInfo[playerid][pSpawnY] = -1366.8236;
         		PlayerInfo[playerid][pSpawnZ] = 326.2109;
          		PlayerInfo[playerid][pSpawnCam] = 309.0221;
     		}
     		case 1:
     		{
     	 		PlayerInfo[playerid][pSpawnX] = 1571.5765;
     	    	PlayerInfo[playerid][pSpawnY] = -1332.3491;
     	    	PlayerInfo[playerid][pSpawnZ] = 16.4844;
     	    	PlayerInfo[playerid][pSpawnCam] = 322.7968;
        	}
 	 		case 2:
 	 		{
 	 	 		PlayerInfo[playerid][pSpawnX] = 1515.9972;
 	 	 		PlayerInfo[playerid][pSpawnY] = -1373.5088;
 	 	 		PlayerInfo[playerid][pSpawnZ] = 13.9522;
 	 	 		PlayerInfo[playerid][pSpawnCam] = 176.1321;
 	 		}
 	 	}
 	}

Насчет табуляции, сам сделаешь.
А вот еще одно НО, запомни random(3) никогда не выдаст 3

0



#4

Отправлено 14 ноября 2015 — 11:44

  • Местный

Просмотр сообщенияSnoopDy (12 ноября 2015 — 19:09) писал:

	if(PlayerInfo[playerid][pAdminlvl] > 0) // ???? ????? ?????????????
 	{
		switch(random(3))
		{
    		case 0:
     		{
      			PlayerInfo[playerid][pSpawnX] = 1541.0939;
        		PlayerInfo[playerid][pSpawnY] = -1366.8236;
         		PlayerInfo[playerid][pSpawnZ] = 326.2109;
          		PlayerInfo[playerid][pSpawnCam] = 309.0221;
     		}
     		case 1:
     		{
     	 		PlayerInfo[playerid][pSpawnX] = 1571.5765;
     	    	PlayerInfo[playerid][pSpawnY] = -1332.3491;
     	    	PlayerInfo[playerid][pSpawnZ] = 16.4844;
     	    	PlayerInfo[playerid][pSpawnCam] = 322.7968;
        	}
 	 		case 2:
 	 		{
 	 	 		PlayerInfo[playerid][pSpawnX] = 1515.9972;
 	 	 		PlayerInfo[playerid][pSpawnY] = -1373.5088;
 	 	 		PlayerInfo[playerid][pSpawnZ] = 13.9522;
 	 	 		PlayerInfo[playerid][pSpawnCam] = 176.1321;
 	 		}
 	 	}
 	}

Насчет табуляции, сам сделаешь.
А вот еще одно НО, запомни random(3) никогда не выдаст 3

Переписал так как ты написал, но warning 213 не исчез все равно

0



#5

Отправлено 14 ноября 2015 — 11:46

  • ?

Просмотр сообщенияRamzil_Nixon (14 ноября 2015 — 11:44) писал:

Переписал так как ты написал, но warning 213 не исчез все равно

Где строка с ошибкой то?

0



#6

Отправлено 14 ноября 2015 — 12:03

  • Новичок

Ошибка переводиться следующим образом

Это должно быть в масиве

А вот что должно быть в масиве, ты сам должен додуматься

Сообщение отредактировал Martin_Self: 14 ноября 2015 — 12:04

0



#7

Отправлено 14 ноября 2015 — 12:11

  • ?

Просмотр сообщенияMartin_Self (14 ноября 2015 — 12:03) писал:

Ошибка переводиться следующим образом

Это должно быть в масиве

А вот что должно быть в масиве, ты сам должен додуматься

У него уже другая ошибка: warning 213

0



#8

Отправлено 14 ноября 2015 — 12:34

  • Местный

Несовпадение аргументов в функции

Вот тут они:

               PlayerInfo[playerid][pSpawnX] = 1541.0939;
                        PlayerInfo[playerid][pSpawnY] = -1366.8236;
                        PlayerInfo[playerid][pSpawnZ] = 326.2109;
                        PlayerInfo[playerid][pSpawnCam] = 309.0221;

0



#9

Отправлено 14 ноября 2015 — 12:48

  • ?

Просмотр сообщенияRamzil_Nixon (14 ноября 2015 — 12:34) писал:

Несовпадение аргументов в функции

Вот тут они:

               PlayerInfo[playerid][pSpawnX] = 1541.0939;
                        PlayerInfo[playerid][pSpawnY] = -1366.8236;
                        PlayerInfo[playerid][pSpawnZ] = 326.2109;
                        PlayerInfo[playerid][pSpawnCam] = 309.0221;

А ты в enum с информацией о игроке прописал тип Float?

Float:pSpawnX

1



#10

Отправлено 14 ноября 2015 — 12:57

  • Местный

Просмотр сообщенияVVWVV (14 ноября 2015 — 12:48) писал:

А ты в enum с информацией о игроке прописал тип Float?

Float:pSpawnX

Вот как раз в этом и была ошибка, спасибо! +

0


  • ← Предыдущая тема
  • Вопросы по скриптингу
  • Следующая тема →

  • Вы не можете создать новую тему
  • Тема закрыта


1 человек читают эту тему
0 пользователей, 1 гостей, 0 скрытых пользователей

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

Из названия все ясно. ИД’ы всех ошибок, фатальных ошибок, а также предупреждений в PAWNO. 

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) — Неправильный размер массива. Отрицательное значение или ноль;

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) — Не точка входа;

error 014: invalid statement; not in switch — Неверная команда;

error 015: «default» case must be the last case in switch statement — Оператор «default» должен быть последним;

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» — ошибочное название символа (начинается с цифры, например);

error 021: symbol already defined: %s» — символ уже определён (дважды встречается new одного и того-же символа);

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 — составной оператор не закрыт в конце файла, поставить return 1;} в конец мода;

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) — Аргумент не имеет начального значения;

error 035: argument type mismatch (argument %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») — Неизвестный размер массива %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 — описание функции без заголовка (пропущен public(…));

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»;

error 061: «#elseif» directive follows an «#else» directive — «#elseif» перед «#else»;

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) — В этой функции может быть только один аргумент %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») — Переменная %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 — макрос %s должен начинаться с букв;

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»;

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») — Нельзя взять значение в массив %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») — для функции %s уже определенна данная state;

error 085: no states are defined for function «%s» — не определенна ни одна state для функции %s;

error 086: unknown automaton «%s» — Неизвестная автоматизация %s;

error 087: unknown state «%s» for automaton «%s» — не определен state %s, для переключения %s;

error 088: number of arguments does not match definition — количество аргументов не совпадает с объявленными в функции;  

fatal error 100: cannot read from file: «%s» — невозможно прочитать/найти файл %s в стандартной директории;

fatal error 107: too many error messages on one line — слишком много ошибок на одной строке (обычно из-за одного неправильного параметра);

warning 200: symbol «%s» is truncated to 31 characters — название переменной %s обрезается до 31 символа (укоротите название переменной %s);

warning 201: redefinition of constant/macro (symbol «%s») — двойное определение одинаковой константы (смотреть #define);

warning 202: number of arguments does not match definition — несовпадение количества аргументов;

warning 203: symbol is never used: «%» — символ «%» нигде не используется;

warning 204: symbol is assigned a value that is never used: «%s» — символ создан, ему присваивается значение, но далее он не используется.

warning 208: function with tag result used before definition, forcing reparse — функция с типовым результатом используется перед объявлением

warning 209: function «%s» should return a value — функция %s должна возвращать какое-либо значение (return 1; к примеру);

warning 211: possibly unintended assignment — в условии использовано не сравнение, а присвоение;

warning 213: tag mismatch — несовпадение тэгов;

warning 215: expression has no effect — выражение не имеет эффекта;

warning 216: nested comment — вложенный комментарий (вынесите его за функцию);

warning 217: loose indentation — невыровненная строка (return должен быть строго под телом функции по левому краю, либо можно добавить в начало мода строку #pragma tabsize 0, но это не рекомендуется, так как иногда может не понимать и не прочитывать скобки «{» и «}»);

warning 219: local variable «%s» shadows a variable at a preceding level — переменная дважды объявлена;

warning 224: indeterminate array size in «sizeof» expression (symbol «%s») — должен быть определён размер массива %s (если определён статиком, заменить дефайном);

warning 225: unreachable code — невалидный код;

warning 235: public function lacks forward declaration (symbol «%s») — необходим форвард функции %s (перед функцией пишем forward %s; 

Пояснение: «%s — имя переменной/макроса/аргумента функции».

Авторы: OKStyle, webserfer, Kaza40k, [Nos]B[R]aiN[L], Ym[0]n, _volk_, ДениСыч, Roman1us. 

При копировании на другие ресурсы, обязательно указывайте авторов, не зря ведь люди старались:)

Содержание

  1. Pawno error 006 must be assigned to an array
  2. Форум Pawn.Wiki — Воплоти мечту в реальность!: error 006: must be assigned to an array — Форум Pawn.Wiki — Воплоти мечту в реальность!
  3. Форум Pawn.Wiki — Воплоти мечту в реальность!: error 006: must be assigned to an array — Форум Pawn.Wiki — Воплоти мечту в реальность!
  4. Форум Pawn.Wiki — Воплоти мечту в реальность!: error 006: must be assigned to an array — Форум Pawn.Wiki — Воплоти мечту в реальность!
  5. error 006: must be assigned to an array
  6. Pawno error 006 must be assigned to an array

Pawno error 006 must be assigned to an array

Why not simply do this instead? About the error, it is pretty much self-explanatory that it is telling you to assign the string to an array.

Thanks man i working now i have one crazy problem -_-
me buy one house and price is 0$ and server removed -78 wtf?
and auto save price = 78 -_-

Start by learning the basics. Start learning english basics also.

Don’t use that kind of emoticons and be patient.

Man i know basics -_- and yes i don’t know good english .
But I asked here to help me for my problem and not to tell me to learn the basics -_-

And i’am know c++,javascript,c#,html5,css3 some python and some java you say me for basics?
Rly? man -_-?

edit: i fix this problem (Price) and thx for help to me for format name and saved.

Источник

Форум Pawn.Wiki — Воплоти мечту в реальность!: error 006: must be assigned to an array — Форум Pawn.Wiki — Воплоти мечту в реальность!

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

  • Группа: Заблокированные
  • Сообщений: 51
  • Регистрация: 29 сентября 18

Добрый день! Я совсем новичок в Pawno, и начал писать мод с нуля, так как не хочу брать какие то однотипные и однообразные моды.
Написав регистрацию, я подумал над созданием системы выбора скина, начал писать код:

Конечно же в зависимости от пола, выдавался рандомный из списка скин. Но выскочила одна проблема:

Но! Я брал эту систему с таким изначальным видом:

Так как в моём моде не хотел делать расы и возраст, я просто убрал newskinindex!
Прошу о помощи, кто знает как это исправить исходя из моей ситуации?

Сообщение отредактировал lastomg3: 05 ноября 2018 — 15:51

Источник

Форум Pawn.Wiki — Воплоти мечту в реальность!: error 006: must be assigned to an array — Форум Pawn.Wiki — Воплоти мечту в реальность!

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

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

  • Группа: Vip
  • Сообщений: 4 729
  • Регистрация: 14 марта 12

Из всего, что видно по коду, ошибка только тут

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

DeimoS (07 марта 2019 — 23:01) писал:

Из всего, что видно по коду, ошибка только тут

Источник

Форум Pawn.Wiki — Воплоти мечту в реальность!: error 006: must be assigned to an array — Форум Pawn.Wiki — Воплоти мечту в реальность!

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

error 006: must be assigned to an array

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

Привет все! Есть отрезок кода:

Выходят следующие ошибки:

В чем ошибся понять не могу, помогите пожалуйста?

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

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

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

SnoopDy (12 ноября 2015 — 19:09) писал:

Переписал так как ты написал, но warning 213 не исчез все равно

  • Группа: Vip
  • Сообщений: 1 165
  • Регистрация: 19 июля 15

Ramzil_Nixon (14 ноября 2015 — 11:44) писал:

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

Ошибка переводиться следующим образом

Это должно быть в масиве

А вот что должно быть в масиве, ты сам должен додуматься

Сообщение отредактировал Martin_Self: 14 ноября 2015 — 12:04

  • Группа: Vip
  • Сообщений: 1 165
  • Регистрация: 19 июля 15

Martin_Self (14 ноября 2015 — 12:03) писал:

Ошибка переводиться следующим образом

Это должно быть в масиве

А вот что должно быть в масиве, ты сам должен додуматься

Источник

Pawno error 006 must be assigned to an array

    Команда форума Сообщений: 3 021
    Регистрация: 14.07.2017
  • IP: 127.0.0.1:8904
  • Занятия: Скриптер

Из названия все ясно. ИД’ы всех ошибок, фатальных ошибок, а также предупреждений в PAWNO.

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) — Неправильный размер массива. Отрицательное значение или ноль;

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) — Не точка входа;

error 014: invalid statement; not in switch — Неверная команда;

error 015: «default» case must be the last case in switch statement — Оператор «default» должен быть последним;

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» — ошибочное название символа (начинается с цифры, например);

error 021: symbol already defined: %s» — символ уже определён (дважды встречается new одного и того-же символа);

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 — составной оператор не закрыт в конце файла, поставить return 1;> в конец мода;

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) — Аргумент не имеет начального значения;

error 035: argument type mismatch (argument %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») — Неизвестный размер массива %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 — описание функции без заголовка (пропущен public(. ));

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»;

error 061: «#elseif» directive follows an «#else» directive — «#elseif» перед «#else»;

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) — В этой функции может быть только один аргумент %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») — Переменная %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 — макрос %s должен начинаться с букв;

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 » — Функция использует два «return»;

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») — Нельзя взять значение в массив %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») — для функции %s уже определенна данная state;

error 085: no states are defined for function «%s» — не определенна ни одна state для функции %s;

error 086: unknown automaton «%s» — Неизвестная автоматизация %s;

error 087: unknown state «%s» for automaton «%s» — не определен state %s, для переключения %s;

error 088: number of arguments does not match definition — количество аргументов не совпадает с объявленными в функции;

fatal error 100: cannot read from file: «%s» — невозможно прочитать/найти файл %s в стандартной директории;

fatal error 107: too many error messages on one line — слишком много ошибок на одной строке (обычно из-за одного неправильного параметра);

warning 200: symbol «%s» is truncated to 31 characters — название переменной %s обрезается до 31 символа (укоротите название переменной %s);

warning 201: redefinition of constant/macro (symbol «%s») — двойное определение одинаковой константы (смотреть #define);

warning 202: number of arguments does not match definition — несовпадение количества аргументов;

warning 203: symbol is never used: «%» — символ «%» нигде не используется;

warning 204: symbol is assigned a value that is never used: «%s» — символ создан, ему присваивается значение, но далее он не используется.

warning 208: function with tag result used before definition, forcing reparse — функция с типовым результатом используется перед объявлением

warning 209: function «%s» should return a value — функция %s должна возвращать какое-либо значение (return 1; к примеру);

warning 211: possibly unintended assignment — в условии использовано не сравнение, а присвоение;

warning 213: tag mismatch — несовпадение тэгов;

warning 215: expression has no effect — выражение не имеет эффекта;

warning 216: nested comment — вложенный комментарий (вынесите его за функцию);

warning 217: loose indentation — невыровненная строка (return должен быть строго под телом функции по левому краю, либо можно добавить в начало мода строку #pragma tabsize 0, но это не рекомендуется, так как иногда может не понимать и не прочитывать скобки «<» и «>«);

warning 219: local variable «%s» shadows a variable at a preceding level — переменная дважды объявлена;

warning 224: indeterminate array size in «sizeof» expression (symbol «%s») — должен быть определён размер массива %s (если определён статиком, заменить дефайном);

warning 225: unreachable code — невалидный код;

warning 235: public function lacks forward declaration (symbol «%s») — необходим форвард функции %s (перед функцией пишем forward %s;

Пояснение: «%s — имя переменной/макроса/аргумента функции».

Авторы: OKStyle, webserfer, Kaza40k, [Nos]B[R]aiN[L], Ym[0]n, _volk_, ДениСыч, Roman1us.

При копировании на другие ресурсы, обязательно указывайте авторов, не зря ведь люди старались

Отредактировано 27 июля, 2017 пользователем stibs
Причина: bb код

Источник

Paz

Нуль

Регистрация
9 Июл 2019
Сообщения
8
Лучшие ответы
0
Репутация
0

  • #1

Прошy сразy не быковать на меня. Первый раз пишy код. В общем, я хотел создать рандомнyю выдачy скина при регистрации в зависимости от выбранного пола. При компилировании мне выдает 2 ошибки и 1 варнинг:

PHP:

(411) : warning 211: possibly unintended assignment
(411) : error 006: must be assigned to an array
(412) : error 006: must be assigned to an array

Собственно, сам код.

HTML:

if(response) player_info[playerid][SEX] = 1;
	  else player_info[playerid][SEX] = 2;
	  new regmaleskins[1][8] =
	  {
		  {78,79,164,135,137,212,230,239}
	  };
	  new regfemaleskins[1][2] =
	  {
		  {77,218}
	  };
	  if(player_info[playerid][SEX] = 1) player_info[playerid][SKIN] = regmaleskins[random(8)];
	  else player_info[playerid][SKIN] = regfemaleskins[random(2)];

P.S Первая строчка стоит на равне с дрyгими.

Последнее редактирование модератором: 9 Июл 2019

Hello

Errors :

PHP код:



D:pawno-masterincludeSAPData/Config.json(31) : error 006must be assigned to an array

D:pawno-masterincludeSAPData/Config.json(32) : error 006must be assigned to an array

D:pawno-masterincludeSAPData/Config.json(33) : error 006must be assigned to an array

D:pawno-masterincludeSAPData/Config.json(34) : error 006must be assigned to an array 




Code:

PHP код:



 enum ServerConfig

 
{

    
gameModeText,

    
serverName,

    
serverForum,

    
serverWebsite,

    
ircBot1,

    
ircBot2,

    
ircServer

 
};

new Server[ServerConfig];

public jsonInit()

{

    
Server[gameModeText] = "SAP 7.1 REVO";

    
Server[serverName] = "San Andreas Playground";

    
Server[serverForum] = "forum.saplayground.com";

    
Server[serverWebsite] = "saplayground.com";

    
/*Server[ircBot1] = "StrikerX";

    Server[ircBot2] = "ZeroX";

    Server[ircServer] = "irc.gtanet.com";*/

    
return (true);

 } 




Thanks

Yaa

Posts: 599
Threads: 48
Joined: May 2016

Still same errors :/

and i don’t think this is a fix for this :C

Posts: 11,827
Threads: 33
Joined: Dec 2011

Reputation:

0

All the items in the enumerator must be strings and not integers.

Posts: 599
Threads: 48
Joined: May 2016

speak with me with codes pls

Posts: 383
Threads: 70
Joined: Feb 2016

Код:

 #define gamemodetext   "The Gamemode text"

usage

Код:

 SendClientMessage(playerid,COLOR_RED,"    The Gamemode shows >> "gamemodetext   "! ");

isnt this same you want to create?

Posts: 599
Threads: 48
Joined: May 2016

mkr


Little Clucker
**

Posts: 29
Threads: 0
Joined: Jul 2010

Reputation:

0

PHP код:



 enum ServerConfig

 
{

    
gameModeText[32],

    
serverName[32],

    
serverForum[32],

    
serverWebsite[32],

    
ircBot1[32],

    
ircBot2[32],

    
ircServer[32]

 };

new Server[ServerConfig];

public jsonInit()

{

    
Server[gameModeText] = "SAP 7.1 REVO";

    
Server[serverName] = "San Andreas Playground";

    
Server[serverForum] = "forum.saplayground.com";

    
Server[serverWebsite] = "saplayground.com";

    
/*Server[ircBot1] = "StrikerX";

    Server[ircBot2] = "ZeroX";

    Server[ircServer] = "irc.gtanet.com";*/

    
return (true);

 } 




The fields in your enum were integers, they need to be arrays in order to assign strings to them.

Posts: 599
Threads: 48
Joined: May 2016

Posts: 599
Threads: 48
Joined: May 2016

STILL SAME :C

EDIT FIX AGAIN JAJAJAJA

Author

Message

Veteran Member

thecount's Avatar

Old

07-09-2013

, 19:57

 

Error 006: Must be assigned to an array

Reply With Quote

#1


Some reason my mapcycle.txt/.cfg don’t work and the map has to be changed manually otherwise the server will stay on the same map. So, I decided to program a plugin that flips through all the arena maps at the end of each map’s time. And I get the error in the title for whenever I attempt to put a string into an array’s cell. Below is the code.

Code:

#include <sourcemod>

public Plugin:myinfo = {
	name = "Automatic Vote",
	author = "The Count",
	description = "Creates a vote for next map at the current map's end.",
	url = ""
}

new String:nowMap[64];
new ListMap[9];
new iMapCount = 9;
new iMapNumber = 0;

public OnPluginStart() {
	ListMap[0] = "arena_lumberyard";
	ListMap[1] = "arena_ravine";
	ListMap[2] = "arena_badlands";
	ListMap[3] = "arena_granary";
	ListMap[4] = "arena_well";
	ListMap[5] = "arena_watchtower";
	ListMap[6] = "arena_sawmill";
	ListMap[7] = "arena_nucleus";
	ListMap[8] = "arena_offblast_final";
	
	RegConsoleCmd("sm_followmap", Command_FollowMap, "");
}

public OnMapEnd() {
	GetCurrentMap(nowMap, sizeof(nowMap));
	while (iMapNumber<9) {
		if ((strcmp(nowMap, ListMap[iMapNumber]))==true) {
			iMapNumber++;
			ServerCommand("sm_map %s", ListMap[iMapNumber]);
			iMapNumber=9;
		}else {
			iMapNumber++;
		}
	}
	iMapNumber = 0;
}


public Action:Command_FollowMap (client) {


		GetCurrentMap(nowMap, sizeof(nowMap));
	while (iMapNumber<9) {
		if ((strcmp(nowMap, ListMap[iMapNumber]))==true) {
			PrintToChat(client, "[SM] The following map: %s", ListMap[iMapNumber]);
			iMapNumber = 9;
		}else {
			iMapNumber++;
		}
	}
	
	iMapNumber = 0;
	
}

Logically, I thought it would work fine but apparently I have a problem with putting strings in the array. I already looked around the interwebs for answers to this problem but nothing seems to really help and I would just like someone to answer to my problem directly. Sorry if I’m being stupid, but this is like my third day of trying to program plugins.


Last edited by thecount; 07-09-2013 at 20:02.

thecount is offline

AlliedModders Donor

Powerlord's Avatar

Join Date: Jun 2008

Location: Seduce Me!

Old

07-09-2013

, 20:17

 

Re: Error 006: Must be assigned to an array

Reply With Quote

#2


You’ve declared ListMap as a one-dimensional array of numbers.

In fact, you probably want to do this instead:

PHP Code:



new String:ListMap[][] = {
    
"arena_lumberyard",
    
"arena_ravine",
    
"arena_badlands",
    
"arena_granary",
    
"arena_well",
    
"arena_watchtower",
    
"arena_sawmill",
    
"arena_nucleus",
    
"arena_offblast_final"
 
}; 




A point to note: Strings are technically an array. So, an array of strings is a two-dimensional array. I don’t need to give it the dimension sizes there because I delcared the array in-line.

Now, having said that… are there any errors related to mapcycle.txt in your server’s log or the SourceMod log? Maybe something about the SourceMod NextMap plugin?

__________________

Not currently working on SourceMod plugin development.


Last edited by Powerlord; 07-09-2013 at 20:25.

Powerlord is offline

Veteran Member

thecount's Avatar

Old

07-09-2013

, 20:30

 

Re: Error 006: Must be assigned to an array

Reply With Quote

#3


Quote:

Originally Posted by Powerlord
View Post

Now, having said that… are there any errors related to mapcycle.txt in your server’s log or the SourceMod log? Maybe something about the SourceMod NextMap plugin?

All I know is that whenever I start the server, it says that it is using mapcycle.txt, but it doesn’t work. Whenever I type in !nextmap it just gives me the currentmap, because that is what it uses next.

thecount is offline

Veteran Member

thecount's Avatar

Old

07-09-2013

, 21:07

 

Re: Error 006: Must be assigned to an array

Reply With Quote

#4


Well, the plugin doesn’t work anyways. :/

thecount is offline

Senior Member

mcpan313's Avatar

Old

07-10-2013

, 01:53

 

Re: Error 006: Must be assigned to an array

Reply With Quote

#5


PHP Code:



new Handle:g_hMapList;
new 
String:g_szNextMap[64];

public 

OnPluginStart()
{
    
g_hMapList CreateArray(64);PushArrayString(g_hMapList"arena_lumberyard");
    
PushArrayString(g_hMapList"arena_ravine");
    
PushArrayString(g_hMapList"arena_badlands");
    
PushArrayString(g_hMapList"arena_granary");
    
PushArrayString(g_hMapList"arena_well");
    
PushArrayString(g_hMapList"arena_watchtower");
    
PushArrayString(g_hMapList"arena_sawmill");
    
PushArrayString(g_hMapList"arena_nucleus");
    
PushArrayString(g_hMapList"arena_offblast_final");RegConsoleCmd("sm_followmap"Command_FollowMap);// And you can
    // RegServerCmd("sm_addmap", SrvCmd_AddMapToList);
    // RegServerCmd("sm_delmap", SrvCmd_RemoveMapFromList);
}

public 

OnMapStart()
{
    
GetFollowMap(g_szNextMapsizeof(g_szNextMap));
}

public 

OnMapEnd()
{
    
// NOT THIS? ServerCommand("changelevel %s", g_szNextMap);
    
ServerCommand("sm_map %s"g_szNextMap);
}

public 

Action:Command_FollowMap(clientargs)
{
    if (
client && IsClientInGame(client))
    {
        
PrintToChat(client"[SM] The following map: %s"g_szNextMap);
    }

    return 

Plugin_Handled;
}
stock GetFollowMap(String:follow[], maxlength)
{
    
decl String:current[64];
    
GetCurrentMap(currentsizeof(current));

    new 

arraySize GetArraySize(g_hMapList);
    new 
index FindStringInArray(g_hMapListcurrent);
    if (
index == -1)
    {
        
// Current map not in list :(
        
index GetRandomInt(0arraySize 1);
    }
    else if (++
index == arraySize)
    {
        
index 0;
    }

    return 

GetArrayString(g_hMapListindexfollowmaxlength);
}
/*
public Action:SrvCmd_AddMapToList(args)
{
    if (args != 1)
    {
        PrintToServer("Usage: sm_addmap <mapname>");
        return;
    }

    decl String:mapname[64];
    GetCmdArg(1, mapname, sizeof(mapname));

    if (FindStringInArray(g_hMapList, mapname) != -1)
    {
        PrintToServer("Map:(%s) already in list", mapname);
        return;
    }

    if (!IsMapValid(mapname))
    {
        PrintToServer("Map:(%s) is invalid", mapname);
        return;
    }

    PushArrayString(g_hMapList, mapname);
    PrintToServer("Map:(%s) add success", mapname);
}

public Action:SrvCmd_RemoveMapFromList(args)
{
    if (args != 1)
    {
        PrintToServer("Usage: sm_delmap <mapname>");
        return;
    }

    decl String:mapname[64];
    GetCmdArg(1, mapname, sizeof(mapname));

    new index = FindStringInArray(g_hMapList, mapname);
    if (index == -1)
    {
        PrintToServer("Map:(%s) not in list", mapname);
        return;
    }

    RemoveFromArray(g_hMapList, index);
    PrintToServer("Map:(%s) remove success", mapname);

    // we need refresh next map;
    OnMapStart();
}
*/ 




__________________

sorry, for my poor english.


Last edited by mcpan313; 07-10-2013 at 02:19.

mcpan313 is offline

Send a message via MSN to mcpan313

Veteran Member

thecount's Avatar

Old

07-10-2013

, 11:05

 

Re: Error 006: Must be assigned to an array

Reply With Quote

#6


Thanks for making a plugin, but um… well when the maps change it gets stuck in an endless cycle of changing the maps constantly and won’t let anyone on because it changes the maps so fast.

I think OnMapEnd is not a good time to change the map. Is there any sort of OnRoundEnd? Then we could do something like:

Code:

plugin OnRoundEnd() {
     GetMapTimeLeft(iTimeLeft);
     if (iTimeLeft == 0) {
          ServerCommand("sm_map ListMap[][]");
     }
}

Last edited by thecount; 07-10-2013 at 11:08.

thecount is offline

Veteran Member

thecount's Avatar

Old

07-10-2013

, 12:24

 

Re: Error 006: Must be assigned to an array

Reply With Quote

#7


Ok so I was messing with the plugin and all the mapcycle files then suddenly it started working. So, I’m just going to leave it alone and try not to break it. Thanks for your help anyways lol

thecount is offline

Miyamurov


  • #1

Доброго времени суток, уважаемые пользователи форума Yarkoslavkiy.
Все, особенно начинающие «скриптеры» сталкиваются c error’ми и warning’ами.
Ниже представленны все ошибки при компиляции,
с которыми вы можете столкнуться и что они обозначают.

ID Ошибок

PHP:

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

Последнее редактирование: 28.01.2023

Miyamurov


  • #2

ID Фатальных ошибок

PHP:

fatal error 100: cannot read from file: "%s" - невозможно прочитать из файла "%s";
fatal error 107: too many error messages on one line - слишком много сообщений об ошибке в одной строке;

ID Варнингов

PHP:

warning 200: symbol "%s" is truncated to 31 characters - название переменной "%s" обрезано до 31 символа;
warning 201: redefinition of constant/macro (symbol "%s") - повторно установлена постоянная/макро (переменная "%s");
warning 202: number of arguments does not match definition - несовпадение количества аргументов;
warning 203: symbol is never used: "%s" - переменная никогда не использовалась: "%s";
warning 204: symbol is assigned a value that is never used: "%s" - переменной установлено значение которое никогда не использовалось: "%s".
warning 208: function with tag result used before definition, forcing reparse - функция с результатом тега используется перед определением, заставляя повторный анализ
warning 209: function "%s" should return a value - функция "%s" ничего не возвращает;
warning 211: possibly unintended assignment - в условии использовано не сравнение, а присвоение;
warning 213: tag mismatch - несоответствие аргументов;
warning 215: expression has no effect - выражение не имеет смысла;
warning 216: nested comment - вложенный комментарий (вынесите его за функцию);
warning 217: loose indentation - не выровненная строка;
warning 219: local variable "%s" shadows a variable at a preceding level - локальная переменная "%s" встречается на предыдущем уровне; warning 224: indeterminate array size in "sizeof" expression (symbol "%s") - неопределенный размер массива в "sizeof" выражении (переменная "%s");
warning 225: unreachable code - невыполнимый код;
warning 227: more initiallers than enum fields - больше инициализаторов, чем полей перечисления;
warning 235: public function lacks forward declaration (symbol "%s") - у public функции отсутствует forward (символ "%s");

error 001: expected token: «%s», but found «%s» — пропущен символ «%s», но найден «%s»;
error 002: only a single statement (or expression) can follow each «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) -;
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) -;
error 014: invalid statement; not in switch -;
error 015: «default» case must be the last case in switch statement -;
error 016: multiple defaults in «switch» -;
error 017: undefined symbol «%s» — неизвестный символ (неопределённая переменная) «%s»;
error 018: initialization data exceeds declared size — несовпадение данных в массиве с указанными рамками (увеличить размер массива);
error 019: not a label: %s» -;
error 020: invalid symbol name «%s» — ошибочное название символа (начинается с цифры, например);
error 021: symbol already defined: %s» — символ уже определён (дважды встречается new одного и того же символа);
error 022: must be lvalue (non-constant) -;
error 023: array assignment must be simple assignment -;
error 024: «break» or «continue» is out of context -;
error 025: function heading differs from prototype -;
error 026: no matching «#if…» -;
error 027: invalid character constant -;
error 028: invalid subscript (not an array or too many subscripts): %s» -;
error 029: invalid expression, assumed zero — неверное выражение, нет результата;
error 030: compound statement not closed at the end of file — составной оператор не закрыт в конце файла, поставить return 1;} в конец мода;
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) -;
error 035: argument type mismatch (argument %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» -;
error 061: «#elseif» directive follows an «#else» directive -;
error 062: number of operands does not fit the operator -;
error 063: function result tag of operator «%s» must be «%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 -;
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 -;
error 073: function argument must be an array (argument «%s») -;
error 074: #define pattern must start with an alphabetic character -;
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 -;
error 078: function uses both «return» and «return » -;
error 079: inconsistent return types (array & non-array) — несовместимость типов возвращённых результатов (массив и немассив) (сопоставить данные в функции и изменить типы переменных);
error 080: unknown symbol, or not a constant symbol (symbol «%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» -;
error 086: unknown automaton «%s» -;
error 087: unknown state «%s» for automaton «%s» -;
error 088: number of arguments does not match definition — количество аргументов не совпадает с объявленными в функции;

fatal error 100: cannot read from file: «%s» — невозможно прочитать/найти файл %s в стандартной директории;
fatal error 107: too many error messages on one line — слишком много ошибок на одной строке (обычно из-за одного неправильного параметра);

warning 200: symbol «%s» is truncated to 31 characters — название переменной %s обрезается до 31 символа (укоротите название переменной %s);
warning 201: redefinition of constant/macro (symbol «%s») — двойное определение одинаковой константы (смотреть #define);
warning 202: number of arguments does not match definition — несовпадение количества аргументов;
warning 203: symbol is never used: «%» — символ «%» никогда не используется;
warning 204: symbol is assigned a value that is never used: «%s» — символ создан, ему ставится значение, но далее он не используется.
warning 209: function «%s» should return a value — функция %s должна возвращать какое-либо значение (return 1; к примеру);
warning 211: possibly unintended assignment — в условии использовано не сравнение, а присвоение;
warning 213: tag mismatch — несовпадение аргументов в функции;
warning 215: expression has no effect — выражение не имеет эффекта;
warning 216: nested comment — вложенный комментарий (вынесите его за функцию);
warning 217: loose indentation — невыровненная строка (return должен быть строго под телом функции по левому краю, либо можно добавить в начало мода строку #pragma tabsize 0, но это не рекомендуется, так как иногда может не понимать и не прочитывать скобки «{» и «}»);
warning 219: local variable «%s» shadows a variable at a preceding level — переменная дважды объявлена;
warning 224: indeterminate array size in «sizeof» expres​sion(symbol «%s») — должен быть определён размер массива %s (если определён статиком, заменить дефайном);
warning 225: unreachable code — невалидный код;
warning 235: public function lacks forward declaration (symbol «%s») — необходим форвард функции %s (перед функцией пишем forward(%s);

%s — имя переменной.

Ошибки в PAWNO Main_gta
Ошибки в PAWNO 1e96579dc0eb727e396b061aa7077318
Ошибки в PAWNO 22-pОшибки в PAWNO 22-aОшибки в PAWNO 22-wОшибки в PAWNO 22-nОшибки в PAWNO 22-o

error 001: expected token: «%s», but found «%s» — пропущен символ «%s», но найден «%s»;
error 002: only a single statement (or expression) can follow each «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) — Неправильный размер массива. Отрицательное значение или ноль;
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) — ;
error 014: invalid statement; not in switch — Неверная команда;
error 015: «default» case must be the last case in switch statement — Оператор «default» должен быть последним;
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» не является строкой ;
error 020: invalid symbol name «%s» — ошибочное название символа (начинается с цифры, например);
error 021: symbol already defined: %s» — символ уже определён (дважды встречается new одного и того же символа);
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 является недействительным массивом;
error 029: invalid expression, assumed zero — неверное выражение, нет результата;
error 030: compound statement not closed at the end of file — составной оператор не закрыт в конце файла, поставить return 1;} в конец мода;
error 031: unknown directive — неверная директива (подключение плагина в дефайнах, неверное установка пути инклюда и тому подобное);
error 032: array index out of bounds (variable «%s») — Индекс массива %s превышен ;
error 033: array must be indexed (variable «%s») -Массив %s неизвестен ;
error 034: argument does not have a default value (argument %d) — Аргумент не имеет начального значения ;
error 035: argument type mismatch (argument %d) — Несоответствие типов аргумента ;
error 036: empty statement — Пустой оператор ;
error 037: invalid string (possibly non-terminated string) — Неправильная строка;(обычно бывает, если забывам ставить закрывающие ковычки «text»);
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» — ;
error 061: «#elseif» directive follows an «#else» directive — ;
error 062: number of operands does not fit the operator — ;
error 063: function result tag of operator «%s» must be «%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 — ;
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 — ;
error 073: function argument must be an array (argument «%s») — ;
error 074: #define pattern must start with an alphabetic character — ;
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 » — Функция использует два «return»;
error 079: inconsistent return types (array &amp; 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») -Нельзя взять значение в массива %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» — Неизвестное состояние в автоматизации;;
error 088: number of arguments does not match definition — количество аргументов не совпадает с объявленными в функции;

fatal error 100: cannot read from file: «%s» — невозможно прочитать/найти файл %s в стандартной директории;
fatal error 107: too many error messages on one line — слишком много ошибок на одной строке (обычно из-за одного неправильного параметра);

warning 200: symbol «%s» is truncated to 31 characters — название переменной %s обрезается до 31 символа (укоротите название переменной %s);
warning 201: redefinition of constant/macro (symbol «%s») — двойное определение одинаковой константы (смотреть #define);
warning 202: number of arguments does not match definition — несовпадение количества аргументов;
warning 203: symbol is never used: «%» — символ «%» никогда не используется;
warning 204: symbol is assigned a value that is never used: «%s» — символ создан, ему ставится значение, но далее он не используется.
warning 209: function «%s» should return a value — функция %s должна возвращать какое-либо значение (return 1; к примеру);
warning 211: possibly unintended assignment — в условии использовано не сравнение, а присвоение;
warning 213: tag mismatch — несовпадение аргументов в функции;
warning 215: expression has no effect — выражение не имеет эффекта;
warning 216: nested comment — вложенный комментарий (вынесите его за функцию);
warning 217: loose indentation — невыровненная строка (return должен быть строго под телом функции по левому краю, либо можно добавить в начало мода строку #pragma tabsize 0, но это не рекомендуется, так как иногда может не понимать и не прочитывать скобки «{» и «}»);
warning 219: local variable «%s» shadows a variable at a preceding level — переменная дважды объявлена;
warning 224: indeterminate array size in «sizeof» expression (symbol «%s») — должен быть определён размер массива %s (если определён статиком, заменить дефайном);
warning 225: unreachable code — невалидный код;
warning 235: public function lacks forward declaration (symbol «%s») — необходим форвард функции %s (перед функцией пишем forward(%s);

%s — имя переменной.

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

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

  • Error 006 kugoo m4
  • Error 004 на электросчетчике
  • Error 004 pawno
  • Error 004 function playertopoint is not implemented
  • Error 00301 ibm

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

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