SA-MP Forums Archive
long line short - 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: long line short (/showthread.php?tid=464672)



long line short - CesarLT - 18.09.2013

Hello everyone, am wondering how can I make a long line which won't compile and give an error, to something which will fit in the script? thanks in advance.


Re: long line short - alinategh - 18.09.2013

You mean comment in your script? which the script wouldn't read it? use // :
pawn Код:
//This won't be counted as a script and it's just a comment.



Re: long line short - CesarLT - 18.09.2013

Quote:
Originally Posted by alinategh
Посмотреть сообщение
You mean comment in your script? which the script wouldn't read it? use // :
pawn Код:
//This won't be counted as a script and it's just a comment.
Nope, I mean this error:

pawn Код:
C:\Users\xxxx\Desktop\Untitled.pwn(92) : error 075: input line too long (after substitutions)
How to fix that?


Re: long line short - Konstantinos - 18.09.2013

Use strcat.


Re: long line short - xganyx - 18.09.2013

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
Use strcat.
Like he said use strcat or else you can use this

pawn Код:
ShowPlayerDialog(playerid,dialogid,dialogstyle,"",".................................................","",""); // too long use the under

ShowPlayerDialog(playerid,dialogid,dialogstyle,"","............................\
                                              ..........................."
,"","");// I guess !



Re: long line short - CesarLT - 18.09.2013

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
Use strcat.
Alrighty, I'll start trying asap! Thank you


Re: long line short - CesarLT - 18.09.2013

Quote:
Originally Posted by xganyx
Посмотреть сообщение
Like he said use strcat or else you can use this

pawn Код:
ShowPlayerDialog(playerid,dialogid,dialogstyle,"",".................................................","",""); // too long use the under

ShowPlayerDialog(playerid,dialogid,dialogstyle,"","............................\
                                              ..........................."
,"","");// I guess !
Looks interesting, I'll make sure to try that out aswell.