error 075: input line too long (after substitutions)
#1

I've seen many servers with DIALOG_STYLE_MSGBOX that has over 15 lines. but mines wont work. i keep getting this error

pawn Код:
error 075: input line too long (after substitutions)
This is the line:

pawn Код:
format(string, sizeof(string), "You have successfully registered to [Cali] LSGW.\n{F7AF09}Username: {4FFB04}%s\n{F7AF09}Password: {4FFB04}%s\n{FB1D04}Dont give your password to nobody.\n{FFFFFF}Please remember do not use {FF0000}cheats/hacks.\n{FF0000}Using any mod that give you an ability others cant/nWill result in a {FF0000}3 day ban.\n{FFFFFF}Our {EA15EA}Admins {FFFFFF}Are always watching\nAlso be sure to register on our website\nto get the latest news on the server/community.",name,inputtext );
      ShowPlayerDialog(playerid, 48, DIALOG_STYLE_MSGBOX, "Registered", string, "Ok", "Cancel");
Reply
#2

Download the last version of this compiler : https://github.com/Zeex/pawn/releases

Made by ZeeX, the most important change is that the text size is increased to 4095 instead of 511.
Uncompress the .zip/.tar.gz downloaded from github to your "pawno" folder, and replace the pawncc.exe and pawncc.dll

It should work as a charm now.

You can alternatively use strcat but it involves creating too much vars which results as a waste of memory.
Reply
#3

You had a / instand of \
pawn Код:
format(string, sizeof(string), "You have successfully registered to [Cali] LSGW.\n{F7AF09}Username: {4FFB04}%s\n{F7AF09}Password: {4FFB04}%s\n{FB1D04}Dont give your password to nobody.\n{FFFFFF}Please remember do not use {FF0000}cheats/hacks.\n{FF0000}Using any mod that give you an ability others cant\nWill result in a {FF0000}3 day ban.\n{FFFFFF}Our {EA15EA}Admins {FFFFFF}Are always watching\nAlso be sure to register on our website\nto get the latest news on the server/community.",name,inputtext );
      ShowPlayerDialog(playerid, 48, DIALOG_STYLE_MSGBOX, "Registered", string, "Ok", "Cancel");
Reply
#4

It doesn't matter lulo.
If he had made a mistake in the text, the compiler wouldn't detect it : everything between quotes gets off the compiler "authority".
Reply
#5

It does,

If you put a to long line in a dialog, it will say that, right...
Reply
#6

Take a look here https://sampforum.blast.hk/showthread.php?tid=319744
Reply
#7

Quote:
Originally Posted by lulo356
Посмотреть сообщение
You had a / instand of \
pawn Код:
format(string, sizeof(string), "You have successfully registered to [Cali] LSGW.\n{F7AF09}Username: {4FFB04}%s\n{F7AF09}Password: {4FFB04}%s\n{FB1D04}Dont give your password to nobody.\n{FFFFFF}Please remember do not use {FF0000}cheats/hacks.\n{FF0000}Using any mod that give you an ability others cant\nWill result in a {FF0000}3 day ban.\n{FFFFFF}Our {EA15EA}Admins {FFFFFF}Are always watching\nAlso be sure to register on our website\nto get the latest news on the server/community.",name,inputtext );
      ShowPlayerDialog(playerid, 48, DIALOG_STYLE_MSGBOX, "Registered", string, "Ok", "Cancel");
FAlse

use strcat it's better than all solutions
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)