Loose indentation - Am I an idiot or...?
#3

Quote:
Originally Posted by Finn
Посмотреть сообщение
Maybe the compiler doesn't like that kind of 'long' defines...

As it's just a define (doesn't need to look nice), it could work like this:

pawn Код:
#define CreateLetter(%0) \
                for(new letter;letter<sizeof(%0);letter++)CreateObject(FONT,x+(%0)[letter][0]+(spacing++* 4.8),y,z+(%0)[letter][1],0,0,0)
]
Try this, the shorter the better with #define macros as the line limit is 512 characters.
Reply


Messages In This Thread
Loose indentation - Am I an idiot or...? - by Hiddos - 29.09.2010, 14:23
Re: Loose indentation - Am I an idiot or...? - by Finn - 29.09.2010, 14:40
Re: Loose indentation - Am I an idiot or...? - by samgreen - 29.09.2010, 14:50
Re: Loose indentation - Am I an idiot or...? - by Hiddos - 29.09.2010, 15:58
Re: Loose indentation - Am I an idiot or...? - by VIRUXE - 29.09.2010, 16:16
Re: Loose indentation - Am I an idiot or...? - by Hiddos - 29.09.2010, 18:01

Forum Jump:


Users browsing this thread: 2 Guest(s)