What's bad in this line?
#1

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
Reply
#2

You cant keep using ". If you want to display " then use \"
Reply
#3

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
Reply
#4

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");
Reply
#5

Thanks you :]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)