error:Line is too long
#1

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 ?
Reply
#2

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", "");
Reply
#3

ty +rep and can you answer my pms please
Reply
#4

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?
Reply
#5

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.
Reply
#6

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 :/
Reply
#7

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", "");
Reply
#8

thanks finally it worked
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)