String failed :D - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: String failed :D (
/showthread.php?tid=103158)
String failed :D -
Justsmile - 18.10.2009
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.
Re: String failed :D -
Walk_M4n - 18.10.2009
Show this part of code.
Re: String failed :D -
Justsmile - 18.10.2009
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
Re: String failed :D -
Riaz - 18.10.2009
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]
);
Re: String failed :D -
Justsmile - 18.10.2009
how to define weaponlist? exaple pls
Re: String failed :D -
Riaz - 18.10.2009
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");
Re: String failed :D -
Justsmile - 18.10.2009
thanks