String failed :D
#1

I have a problem i need a long line for DIALOD_MSGBOX and i get this error.

pawn Код:
K:\.pwn(57137) : error 075: input line too long (after substitutions)
K:\.pwn(57138) : error 037: invalid string (possibly non-terminated string)
K:\.pwn(57138) : error 017: undefined symbol "Der"
K:\.pwn(57138) : error 017: undefined symbol "Anfang"
K:\.pwn(57138) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


5 Errors.
Reply
#2

Show this part of code.
Reply
#3

pawn Код:
new string2[1024];
      format(string2, sizeof(string2),"Der Anfang \nAls erstes solltest du dir einen Fьhrerschein und einen PersonalausweiЯ besorgen.\nDen Fьhrerschein bekommst du an der Fahrschule in San Fierro.\nEinen PersonalausweiЯ bekommst du in jedem 24/7.\nAls nдchstes solltest du dich nach einem geeignetet Job umsehen.\nHauptjobs kannst du erst ab Level 3 machen, dafьr musst du eine Bewerbung im Forum schreiben.\nEs stehen dir 17 Nebenjobs zur Auswahl. Du findest sie beim /jobcenter.\nWeiter fragen kannst du gerne per /report stellen, oder dich im Forum an einen Admin wenden.");
          ShowPlayerDialog(playerid, 16, DIALOG_STYLE_MSGBOX, "How to Start?",string2, "Submit","Cancel");
n
Reply
#4

use something like this:
Код:
	format(WEAPONSLIST, sizeof(WEAPONSLIST), "%s\n\n%s\n\n%s\n\n%s\n\n%s\n\n%s\n\n%s\n\n%s\n\n%s",
		weaponstr[0],
		weaponstr[1],
		weaponstr[2],
		weaponstr[3],
		weaponstr[4],
		weaponstr[5],
		weaponstr[6],
		weaponstr[7],
		weaponstr[8]
		);
Reply
#5

how to define weaponlist? exaple pls
Reply
#6

it's example for menu in dialog.
Код:
new manystr[3][256];//
manystr[0] = "1st item";
manystr[1] = "2nd item";
manystr[2] = "3rd item";
new str[256];
	format(str, sizeof(str), "%s\n\n%s\n\n%s",
		manystr[0],
		manystr[1],
		manystr[2]);
ShowPlayerDialog(playerid, 9900, DIALOG_STYLE_LIST, "ggg",str, "Accept","Cancel");
Reply
#7

thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)