Trying to format string /n simple error. - 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)
+--- Thread: Trying to format string /n simple error. (
/showthread.php?tid=456665)
Trying to format string /n simple error. -
Dokins - 06.08.2013
pawn Код:
format(string, sizeof(string), "{FF0000}Business/n{FF74450}%s", BusinessName[x]);
I want to make the business name on the bottom line....With Business in RED above it.
I'm trying to do this with that:
pawn Код:
CreateDynamic3DTextLabel(string, COLOUR_WHITE, BizEntX[x],BizEntY[x], BizEntZ[x], 100.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, 0, -1, -1, 50.0);
How can I do this?
Re: Trying to format string /n simple error. -
Dodo9655 - 06.08.2013
pawn Код:
format(string, sizeof(string), "{FF0000}Business\n{FF74450}%s", BusinessName[x]);
It's not "/n", it's "\n".
Re: Trying to format string /n simple error. -
Dokins - 06.08.2013
I'm a giant moron.