SA-MP Forums Archive
Dialog and formating text - 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: Dialog and formating text (/showthread.php?tid=148808)



Dialog and formating text - Doman - 19.05.2010

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?


Re: Dialog and formating text - ViruZZzZ_ChiLLL - 19.05.2010

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.


Re: Dialog and formating text - Doman - 19.05.2010

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);



Re: Dialog and formating text - Bumbis - 19.05.2010

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))


Re: Dialog and formating text - Kyosaur - 19.05.2010

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.


Re: Dialog and formating text - Doman - 19.05.2010

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.