16.05.2011, 17:46
(
Последний раз редактировалось [SOB]Chris; 16.05.2011 в 18:47.
Причина: solved
)
Hi! i have just a question.
here my script
or
(I try of 2 ways)
TextGetPlayerText reads one .txt file and returns a line of text.
here the line in the .txt
the problem I have is that the result of showplayerdialog is.
and should be
I hope you have understood, thanks for your attention.
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");
pawn Код:
ShowPlayerDialog(playerid, WEAPSMENU, DIALOG_STYLE_LIST, Text_GetPlayerText("WEAPSINFO",playerid), Text_GetPlayerText("WEAPSSLOTS",playerid), "Ok", "Esc");
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]
Код:
Armas de Mano [Espacio 1]\nEscopetas [Espacio 2]\nMetralletas [Espacio 3]\nSubfusiles [Espacio 4]\nRifles [Espacio 5]
Код:
Armas de Mano [Espacio 1] Escopetas [Espacio 2] Metralletas [Espacio 3] Subfusiles [Espacio 4] Rifles [Espacio 5]