Dialog and formating text
#1

Ive formated the string for the selection of cars with a dialog
Код:
ShowPlayerDialog(playerid, lock_car, 2, "Maрinos Pasirinkimas", text, "Pasirinkti", "Atрaukti");
so i could write the names instead of just showing "First Second Third" But the dialog just doesnt work, any suggestions?
Reply
#2

pawn Код:
ShowPlayerDialog(playerid, lock_car, DIALOG_STYLE_[The style here], "Maрinos Pasirinkimas", text, "Pasirinkti", "Atрaukti");
Remember : When your gonna use a row, always put an n after each slashes.
Reply
#3

um, thanx for the reply, but you didint change anything, just put the define that still does the same as i write just "2", if anyones wondering, heres the text format line. The dialog still doesnt show
Код:
format(text,sizeof(text),"Pirma - %s \n Antra - %s \n Treиia - %s",pirma,antra,trecia);
Reply
#4

Quote:
Originally Posted by Doman
Код:
format(text,sizeof(text),"Pirma - %s \n Antra - %s \n Treиia - %s",pirma,antra,trecia);
It needs to be format(text,sizeof(text))
Reply
#5

Quote:
Originally Posted by BumbiS*
Quote:
Originally Posted by Doman
Код:
format(text,sizeof(text),"Pirma - %s \n Antra - %s \n Treиia - %s",pirma,antra,trecia);
It needs to be format(text,sizeof(text))
No, he did it right.
Reply
#6

Um, i figured it out, its not the dialog or the formatting, i actually made him get a string out of an integer, so the function just crashed i fixed it now, thanx anyhow.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)