Trying to format string /n simple error.
#1

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

pawn Код:
format(string, sizeof(string), "{FF0000}Business\n{FF74450}%s", BusinessName[x]);
It's not "/n", it's "\n".
Reply
#3

I'm a giant moron.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)