ShowPlayerDialog() + format() problem
#1

Hi! i have just a question.
here my script
pawn Код:
new string[128];
format(string,sizeof(string),"%s",Text_GetPlayerText("WEAPSSLOTS",playerid));
ShowPlayerDialog(playerid, WEAPSMENU, DIALOG_STYLE_LIST, Text_GetPlayerText("WEAPSINFO",playerid), string, "Ok", "Esc");
or
pawn Код:
ShowPlayerDialog(playerid, WEAPSMENU, DIALOG_STYLE_LIST, Text_GetPlayerText("WEAPSINFO",playerid), Text_GetPlayerText("WEAPSSLOTS",playerid), "Ok", "Esc");
(I try of 2 ways)


TextGetPlayerText reads one .txt file and returns a line of text.
here the line in the .txt
Код:
WEAPSSLOTS = Armas de Mano [Espacio 1]\nEscopetas [Espacio 2]\nMetralletas [Espacio 3]\nSubfusiles [Espacio 4]\nRifles [Espacio 5]
the problem I have is that the result of showplayerdialog is.
Код:
Armas de Mano [Espacio 1]\nEscopetas [Espacio 2]\nMetralletas [Espacio 3]\nSubfusiles [Espacio 4]\nRifles [Espacio 5]
and should be

Код:
Armas de Mano [Espacio 1]
Escopetas [Espacio 2]
Metralletas [Espacio 3]
Subfusiles [Espacio 4]
Rifles [Espacio 5]
I hope you have understood, thanks for your attention.
Reply


Messages In This Thread
ShowPlayerDialog() + format() problem [FIXED] - by [SOB]Chris - 16.05.2011, 17:46
Re: ShowPlayerDialog() + format() problem - by Jantjuh - 16.05.2011, 17:49
Re: ShowPlayerDialog() + format() problem - by [SOB]Chris - 16.05.2011, 18:08
Re: ShowPlayerDialog() + format() problem - by Jantjuh - 16.05.2011, 18:11
Re: ShowPlayerDialog() + format() problem - by [SOB]Chris - 16.05.2011, 18:28

Forum Jump:


Users browsing this thread: 1 Guest(s)