SA-MP Forums Archive
\n doesnt work... - 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: \n doesnt work... (/showthread.php?tid=241555)



\n doesnt work... - THE_KNOWN - 18.03.2011

Code:
CMD:forums(playerid,params[])
{
	new s[128];
 	format(s,128,"---.---.org (Note:Your account on the forums has been auto-created.\n You can login using your ingame username and password on the forums.");
	SendClientMessage(playerid, COLOR_ORANGE,s);
	return 1;
}
thats one of the codes. why doesnt \n work?


Re: \n doesnt work... - Haydz - 18.03.2011

Pretty sure \n doesn't work in sendclientmessage, but you could always do.
pawn Code:
CMD:forums(playerid,params[])
{
           SendClientMessage(playerid, COLOR_ORANGE,"---.---.org (Note:Your account on the forums has been auto-created.");
           SendClientMessage(playerid, COLOR_ORANGE,"You can login using your ingame username and password on the forums.");
           return 1;
}
You don't need to use format when you're not formatting anything.


Re: \n doesnt work... - THE_KNOWN - 18.03.2011

Thanks