There is no Paragraph )-: -
BiosMarcel - 28.09.2013
I trying to write this in 3 lines but it wont work. (It is a Windows Server)
Код:
format(string1,sizeof(string1),"%s hat dich %i mal verwarnt.\nGrund: %s\nDu hast jetzt %i/10 Verwarnungen",SpielerName(playerid),anzahl,grund,sSpieler[pID][warns]);
What appears ingame: Marcel hat dich 1 mal verwarnt. Grund: Test Du hast jetzt %i/10 Verwarnungen
it replaces the \n with a space
Hope someone cans ay me why.
Re: There is no Paragraph )-: -
Konstantinos - 28.09.2013
Try using:
Re: There is no Paragraph )-: - Patrick - 28.09.2013
What are you using, SendClientMessage or ShowPlayerDialog?
Quick Example
ShowPlayerDialog
pawn Код:
format(string1,sizeof(string1),"%s hat dich %i mal verwarnt.\n\nGrund: %s\n\nDu hast jetzt %i/10 Verwarnungen",SpielerName(playerid),anzahl,grund,sSpieler[pID][warns]);
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "Paragraph Title", string ,"Button 1","Button 2");
SendClientMessage
pawn Код:
format(string1,sizeof(string1),"%s hat dich %i mal verwarnt.",SpielerName(playerid), anzahl);
SendClientMessage(playerid, -1, string);
SendClientMessage(playerid, -1, " "); // Space for Paragraph
format(string1,sizeof(string1),"Grund: %s",grund);
SendClientMessage(playerid, -1, string);
SendClientMessage(playerid, -1, " "); // Space for Paragraph
format(string1,sizeof(string1),"Du hast jetzt %i/10 Verwarnungen",sSpieler[pID][warns]);
SendClientMessage(playerid, -1, string);
AW: There is no Paragraph )-: -
BiosMarcel - 28.09.2013
SendClientMessage? Long Scripting pause i forgot so much things ^^
Re: There is no Paragraph )-: - Patrick - 28.09.2013
Read my Edit above | Link:
http://forum.sa-mp.com/showpost.php?...99&postcount=3
Re: There is no Paragraph )-: -
Konstantinos - 28.09.2013
In what you want to use that message? In dialog, message in the chat, gametext or textdraw?
AW: There is no Paragraph )-: -
BiosMarcel - 28.09.2013
I am retarded xD i tried to use \n in SendClientMessage Problem solved thank you
Re: AW: There is no Paragraph )-: - Patrick - 28.09.2013
Quote:
Originally Posted by [Bios]Marcel
I am retarded xD i tried to use \n in SendClientMessage Problem solved thank you
|
You're welcome