SA-MP Forums Archive
Line Too Long - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Line Too Long (/showthread.php?tid=353704)



Line Too Long - Prosettur - 24.06.2012

Quote:

C:\Documents and Settings\user\Pulpit\Serwer\gamemodes\GM.pwn(1 : warning 219: local variable "Vehicles" shadows a variable at a preceding level
C:\Documents and Settings\user\Pulpit\Serwer\gamemodes\GM.pwn(23) : warning 219: local variable "Vehicles" shadows a variable at a preceding level
C:\Documents and Settings\user\Pulpit\Serwer\gamemodes\GM.pwn(2 : warning 219: local variable "Vehicles" shadows a variable at a preceding level
C:\Documents and Settings\user\Pulpit\Serwer\gamemodes\GM.pwn(33) : warning 219: local variable "Vehicles" shadows a variable at a preceding level
C:\Documents and Settings\user\Pulpit\Serwer\gamemodes\GM.pwn(37) : error 075: input line too long (after substitutions)
C:\Documents and Settings\user\Pulpit\Serwer\gamemodes\GM.pwn(3 : warning 219: local variable "Vehicles" shadows a variable at a preceding level
C:\Documents and Settings\user\Pulpit\Serwer\gamemodes\GM.pwn(3 : error 027: invalid character constant
C:\Documents and Settings\user\Pulpit\Serwer\gamemodes\GM.pwn(3 : warning 215: expression has no effect
C:\Documents and Settings\user\Pulpit\Serwer\gamemodes\GM.pwn(3 : error 001: expected token: ";", but found "}"
C:\Documents and Settings\user\Pulpit\Serwer\gamemodes\GM.pwn(3 : warning 217: loose indentation
C:\Documents and Settings\user\Pulpit\Serwer\gamemodes\GM.pwn(3 : error 029: invalid expression, assumed zero
C:\Documents and Settings\user\Pulpit\Serwer\gamemodes\GM.pwn(3 : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


5 Errors.

Код:
			if(listitem == 4)
			{
			    new Vehicles[] = "{000000}1 {00FFFF}Benson\n{000000}2 {00FFFF}Bobcat\n{000000}3 {00FFFF}Burrito\n{000000}4 {00FFFF}Boxville\n{000000}5 {00FFFF}Cement Truck\n{000000}6 {00FFFF}DFT-30\n{000000}7 {00FFFF}Flatbed\n{000000}8 {00FFFF}Linerunner\n{000000}9 {00FFFF}Mule\n{000000}10 {00FFFF}Newsvan\n{000000}11 {00FFFF}Packer\n{000000}12 {00FFFF}Petrol Tank\n{000000}13 {00FFFF}Picador\n{000000}14 {00FFFF}Pony\n{000000}15 {00FFFF}Roadtrain\n{000000}16 {00FFFF}Rumpo\n{000000}17 {00FFFF}Sadler\mSadler Shit\n{000000}18 {00FFFF}Topfun\n{000000}19 {00FFFF}Tractor\n{000000}20 {00FFFF}Trashmaster\n{000000}21 {00FFFF}Utility Van\n{000000}22 {00FFFF}Walton\n{000000}23 {00FFFF}Yankee\n{000000}24 {00FFFF}Yosemite";
			    ShowPlayerDialog(playerid,DIALOG_VEHICLES_CONVERTIBLES,DIALOG_STYLE_LIST,"Pojazdy - Industrials",Vehicles,"Ok","Anuluj");
			}



Re: Line Too Long - phillip875 - 24.06.2012

You have too much in your array, make that into 2 arrays.