error:Line is too long -
KillerStrike23 - 01.05.2014
pawn Код:
ShowPlayerDialog
(playerid,
24561, DIALOG_STYLE_LIST,
"Credits",
"|---------------=San AndreasTeam Death Match ~ Role Play Script by =MoneyPimp=------------| \n|---------------=Original Script designer and concept - [sF]StreetFighter A.K.A KillerStrike (kamalazara@yahoo.com)=----------------| \n|----------=Extreme Vehicle Management + er Script - By -=tAxI= -|- Kowaz Zone War System by Kovalski-----------| \n|------------------------=Lethal-Admin administrator script by Lethal embedded by MoNeYPiMp Edited By StreetFighter!=-------------------------| \n|------------------=Original code for Vehicle HP bar was made by Mr-Tape - Highly modified by tAxI=-------------------| \n|---------------------=Cellphone system code designed and made by [eLg]Beckzyboi (http://www.elg.uk.tt)=---------------------| \n|-----------=Selection Screen Sounds made by CodeMaster -|- Deathmatch Script with menu by B.I.G. aka Mario=----------| \n|------------------=Multi Language Code made by Yom -|- Kapils Instant House Constructions by Kapil=------------------| \n|-If you wish to use this script or any parts of it in your own gamemode please feel free but you must GIVE CREDIT!!!-|");
}
what should I do to make the line less longer ?
Re: error:Line is too long -
Konstantinos - 01.05.2014
You can use strcat:
pawn Код:
new info
[1111] = "|---------------=San AndreasTeam Death Match ~ Role Play Script by =MoneyPimp=------------| \n|---------------=Original Script designer and concept - [sF]StreetFighter A.K.A KillerStrike (kamalazara@yahoo.com)=----------------| \n|----------=Extreme Vehicle Management + er Script - By -=tAxI= -|- Kowaz Zone War System by Kovalski-----------| \n|------------------------=Lethal-Admin administrator script by Lethal embedded by MoNeYPiMp Edited By StreetFighter!=-------------------------| \n|------------------=Original code for Vehicle HP bar was made by Mr-Tape -";
strcat(info,
" Highly modified by tAxI=-------------------| \n|---------------------=Cellphone system code designed and made by [eLg]Beckzyboi (http://www.elg.uk.tt)=---------------------| \n|-----------=Selection Screen Sounds made by CodeMaster -|- Deathmatch Script with menu by B.I.G. aka Mario=----------| \n|------------------=Multi Language Code made by Yom -|- Kapils Instant House Constructions by Kapil=------------------| \n|-If you wish to use this script or any parts of it in your own gamemode please feel free but you must GIVE CREDIT!!!-|",
sizeof (info
));
ShowPlayerDialog
(playerid,
24561, DIALOG_STYLE_LIST,
"Credits", info,
"Close",
"");
Re: error:Line is too long -
KillerStrike23 - 01.05.2014
ty +rep and can you answer my pms please
Re: error:Line is too long -
KillerStrike23 - 01.05.2014
D:\desktop files\3x-Rc1-2 Server\Gamemodes\KSTDM.pwn(19695) : error 018: initialization data exceeds declared size
D:\desktop files\3x-Rc1-2 Server\Gamemodes\KSTDM.pwn(19695) : error 075: input line too long (after substitutions)
D:\desktop files\3x-Rc1-2 Server\Gamemodes\KSTDM.pwn(19696) : error 037: invalid string (possibly non-terminated string)
D:\desktop files\3x-Rc1-2 Server\Gamemodes\KSTDM.pwn(19696) : error 029: invalid expression, assumed zero
D:\desktop files\3x-Rc1-2 Server\Gamemodes\KSTDM.pwn(19696) : error 017: undefined symbol "sF"
D:\desktop files\3x-Rc1-2 Server\Gamemodes\KSTDM.pwn(19696) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
6 Errors.
why?
Re: error:Line is too long -
Konstantinos - 01.05.2014
It compiled fine on Slice's VPS. Try it like that:
pawn Код:
new info
[1111];
strcat(info,
"|---------------=San AndreasTeam Death Match ~ Role Play Script by =MoneyPimp=------------| \n|---------------=Original Script designer and concept - [sF]StreetFighter A.K.A KillerStrike (kamalazara@yahoo.com)=----------------| \n|----------=Extreme Vehicle Management + er Script - By -=tAxI= -|- Kowaz Zone War System by Kovalski-----------| \n|------------------------=Lethal-Admin administrator script by Lethal embedded by MoNeYPiMp Edited By StreetFighter!=-------------------------| \n|------------------=Original code for Vehicle HP bar was made by Mr-Tape -");
strcat(info,
" Highly modified by tAxI=-------------------| \n|---------------------=Cellphone system code designed and made by [eLg]Beckzyboi (http://www.elg.uk.tt)=---------------------| \n|-----------=Selection Screen Sounds made by CodeMaster -|- Deathmatch Script with menu by B.I.G. aka Mario=----------| \n|------------------=Multi Language Code made by Yom -|- Kapils Instant House Constructions by Kapil=------------------| \n|-If you wish to use this script or any parts of it in your own gamemode please feel free but you must GIVE CREDIT!!!-|");
ShowPlayerDialog
(playerid,
24561, DIALOG_STYLE_LIST,
"Credits", info,
"Close",
"");
and keep in mind that if you want to add more, you'll have to make the size greater.
Re: error:Line is too long -
KillerStrike23 - 01.05.2014
pawn Код:
CMD:credits
(playerid,params
[]){ #pragma unused params new info
[1111];
strcat(info,
"|---------------=San AndreasTeam Death Match ~ Role Play Script by =MoneyPimp=------------| \n|---------------=Original Script designer and concept - [sF]StreetFighter A.K.A KillerStrike (kamalazara@yahoo.com)=----------------| \n|----------=Extreme Vehicle Management + er Script - By -=tAxI= -|- Kowaz Zone War System by Kovalski-----------| \n|------------------------=Lethal-Admin administrator script by Lethal embedded by MoNeYPiMp Edited By StreetFighter!=-------------------------| \n|------------------=Original code for Vehicle HP bar was made by Mr-Tape -");
strcat(info,
" Highly modified by tAxI=-------------------| \n|---------------------=Cellphone system code designed and made by [eLg]Beckzyboi (http://www.elg.uk.tt)=---------------------| \n|-----------=Selection Screen Sounds made by CodeMaster -|- Deathmatch Script with menu by B.I.G. aka Mario=----------| \n|------------------=Multi Language Code made by Yom -|- Kapils Instant House Constructions by Kapil=------------------| \n|-If you wish to use this script or any parts of it in your own gamemode please feel free but you must GIVE CREDIT!!!-|");
ShowPlayerDialog
(playerid,
24561, DIALOG_STYLE_LIST,
"Credits", info,
"OK",
"");
}
still got the same errors dude :/
Re: error:Line is too long -
Konstantinos - 01.05.2014
Try it with 3 lines of strcat:
pawn Код:
new info
[1111];
strcat(info,
"|---------------=San AndreasTeam Death Match ~ Role Play Script by =MoneyPimp=------------| \n|---------------=Original Script designer and concept - [sF]StreetFighter A.K.A KillerStrike (kamalazara@yahoo.com)=----------------| \n|----------=Extreme Vehicle Management + er Script - By -=tAxI= -|- Kowaz Zone War System by Kovalski-----------| \n|------------------------=");
strcat(info,
"Lethal-Admin administrator script by Lethal embedded by MoNeYPiMp Edited By StreetFighter!=-------------------------| \n|------------------=Original code for Vehicle HP bar was made by Mr-Tape - Highly modified by tAxI=-------------------| \n|---------------------=Cellphone system code designed and made by [eLg]Beckzyboi (http://www.elg.uk.tt)=---------------------| ");
strcat(info,
"\n|-----------=Selection Screen Sounds made by CodeMaster -|- Deathmatch Script with menu by B.I.G. aka Mario=----------| \n|------------------=Multi Language Code made by Yom -|- Kapils Instant House Constructions by Kapil=------------------| \n|-If you wish to use this script or any parts of it in your own gamemode please feel free but you must GIVE CREDIT!!!-|");
ShowPlayerDialog
(playerid,
24561, DIALOG_STYLE_LIST,
"Credits", info,
"OK",
"");
Re: error:Line is too long -
KillerStrike23 - 01.05.2014
thanks finally it worked