What's bad in this line? - 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: What's bad in this line? (
/showthread.php?tid=155290)
What's bad in this line? -
Ben147 - 17.06.2010
The error:
Код:
error 001: expected token: "-string end-", but found "-identifier-"
The line:
Код:
ShowPlayerDialog(playerid,MYVEHICLE4,DIALOG_STYLE_LIST,"Locate Vehicles",string1"\n"string2"\n"string3"\n"string4"\n"string5,"Locate","Back");
i have a five formats of the strings before
Re: What's bad in this line? -
NewTorran - 17.06.2010
You cant keep using ". If you want to display " then use \"
Re: What's bad in this line? -
Ben147 - 17.06.2010
Quote:
Originally Posted by Joe Torran C
You cant keep using ". If you want to display " then use \"
|
I dont understand you.
you can explain me a bit more?
or give me a example
Re: What's bad in this line? -
NewTorran - 17.06.2010
Either
pawn Код:
ShowPlayerDialog(playerid,MYVEHICLE4,DIALOG_STYLE_LIST,"Locate Vehicles","\"string1\"\n\"string2\"\n\"string3\"\n\"string4\"\n\"string5,"Locate","Back");
Or
pawn Код:
ShowPlayerDialog(playerid,MYVEHICLE4,DIALOG_STYLE_LIST,"Locate Vehicles","string1\nstring2"\nstring3\nstring4\nstring5,"Locate","Back");
Or
pawn Код:
new stringhaha[128];
format(stringhaha, 128, "%s\n%s\n%s\n%s\n%s", string1, string2, string3, string4, string5);
ShowPlayerDialog(playerid,MYVEHICLE4,DIALOG_STYLELIST,"Locate Vehicles", stringhaha, "Locate", "Back");
Re: What's bad in this line? -
Ben147 - 17.06.2010
Thanks you :]