@BlogMan, при копировании текста из программы Pawno обязательно сначала включайте русскую раскладку, лишь затем копируйте. Либо же перейдите в нормальный редактор кода (Sublime Text 3, NotePad++, Visual Studio Code и другие).
Далее, никогда не выкладывайте ошибку скриншотом. Копируйте текст ошибки и скидывайте текстом. Не забывайте, что код следует брать в тег «Код», а большой код еще и в тег «Спойлер». Отредактировал ваше сообщение, чтобы вы примерно увидели, как следовало все сделать.
Что касается самой проблемы, просто Pawno считает текстовую строку (в кавычки заключенную) слишком длинной, вот и возмущается. Вы можете осуществить перенос строки (для этого переносите через Enter часть строки на новую, а в конце предыдущей добавляйте обратный слэш):
Спойлер
SPD(playerid, D_REPORT, 1, "Задать вопрос", "{FF6347}Внимание! Прежде, чем задавать вопрос, прочитайте помощь по игре и ознакомьтесь с командами сервера.n Убедительная просьба не создавать повторных запросов.n {9ACD32}Мы желаем вам приятной игры на Amiro RolePlay!nn {446dab}Правила оформления вопроса:{ffffff}n - Запрещены матыn - Запрещены оскорбленияn - Флудn - Выпрашивание (денег, уровня, машин и т.п.)n - Вопросы не по теме игры (Оффтоп)nn{ab7244}Введите ваш вопрос:", "Принять", "Отмена"); pTemp[playerid][pReport] = 1
- Регистрация
- 7 Янв 2012
- Сообщения
- 31
- Лучшие ответы
- 0
- Репутация
- 2
-
#1
Проблема в том что если я добавлю много цветов «Color — 0n[Color — 1nColor — 2n[3]Color — 3n[4]Color — 4nColor — 5nColor — 6n…………………………… до Color — 50 «; то получается длинная строка и вылетает ошибка : error 075: input line too long (after substitutions)
Как это устранить?
Код:
case 4:
{
new listitems[] = "Color - 0n[Color - 1nColor - 2n[3]Color - 3n[4]Color - 4nColor - 5nColor - 6 ";
ShowPlayerDialog(playerid, 6006, DIALOG_STYLE_LIST, "Цвета", listitems, "Выбрать", "<< Назад");
}
I’m getting this weird bug with my script, I edited once and compiled it. It worked fine, then edited once again and it then gave me this error.
Код:
(34297) : error 075: input line too long (after substitutions)
I had a backup of the script before I edited it and I replaced it with the edited one, then tried to compiling it again and it said the same thing.
The line is just this;
And the lines above that are;
Код:
if(IsPlayerInRangeOfPoint(playerid,5.0,PaintSprays[h][0],PaintSprays[h][1],PaintSprays[h][2]) { amount++; }
As you can see the lines aren’t even that long for this error to actually occur. Or am I wrong? If anyone can help me, i’ll definitely give you a proposition you couldn’t refuse. Thank you guys
Posts: 1,398
Threads: 25
Joined: Jan 2014
Reputation:
0
the line of error is 34297
make sure that the line u showed is that
This type of error is not caused in this case
That line has error though-
You missed one thing on that line, note the bold character in the following code—
Quote:
if(IsPlayerInRangeOfPoint(playerid,5.0,PaintSprays[h][0],PaintSprays[h][1],PaintSprays[h][2]))
Posts: 316
Threads: 49
Joined: Sep 2011
This is the error line, however I added something else to the script so the lines changed. The error still remains on the ‘amount++;’ line. And that bracket you said was an error, was supposed to be there just had an issue when I copied and pasted it, so nvm that.
Код:
C:UsersUserDocumentsPawno scriptinggamemodesR-RP.pwn(34301) : error 075: input line too long (after substitutions) Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
Heres the whole line, may I say.
Код:
for(new h = 0; h < sizeof(PaintSprays); h++) { if(IsPlayerInRangeOfPoint(playerid,5.0,PaintSprays[h][0],PaintSprays[h][1],PaintSprays[h][2])) { amount++; } }
Posts: 316
Threads: 49
Joined: Sep 2011
Anyone? I’ve even commented out the ‘bugged’ lines and it stills appears?
Posts: 2,856
Threads: 6
Joined: Jun 2007
Reputation:
0
Quote:
Originally Posted by Blunt
Anyone? I’ve even commented out the ‘bugged’ lines and it stills appears?
Well if the error still appears if you comment that line out than you know that the line does’t case the error
Therefore you should comment whole blocks of code and backtrack the error
The error should be somewhere above the give line number
Posts: 637
Threads: 106
Joined: May 2011
Reputation:
0
Double parenthesis on the end of the IsPlayerInRan…may cause the trouble?
Posts: 316
Threads: 49
Joined: Sep 2011
bump no-one gonna help me?
Posts: 354
Threads: 35
Joined: Feb 2010
Reputation:
0
The code you posted there looks fine to me, from personal experience «Input line too long (after substitutions)» is usually caused by text or a string input being far too long for use within a dialog or ‘ShowPlayerDialog’
Example:
pawn Код:
ShowPlayerDialog(playerid, SHOPMENU, DIALOG_STYLE_LIST, "Server Shop", "Mobile Phone - $1000nPhone Book - $1000nGlasses - $1000nCD-Player - $1000nHamburger - $1000nMasks - $1000nScratchy - $1000nDice - $1000nVehicle Key - $1000nCondom - $1000nChicken - $1000nPizza - $1000nHoldable Items - $1000nGPS Device - $1000nFish Bait - $1000", "Buy", "Cancel");
Is far too long and returns the same error.