There is no Paragraph )-:
#1

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.
Reply
#2

Try using:
pawn Код:
\r\n
Reply
#3

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);
Reply
#4

SendClientMessage? Long Scripting pause i forgot so much things ^^
Reply
#5

Read my Edit above | Link: http://forum.sa-mp.com/showpost.php?...99&postcount=3
Reply
#6

In what you want to use that message? In dialog, message in the chat, gametext or textdraw?
Reply
#7

I am retarded xD i tried to use \n in SendClientMessage Problem solved thank you
Reply
#8

Quote:
Originally Posted by [Bios]Marcel
Посмотреть сообщение
I am retarded xD i tried to use \n in SendClientMessage Problem solved thank you
You're welcome
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)