What is better to define dialog ids?
#1

Hello there i was wondering what is better to define dialog ids..

#1

pawn Код:
enum Dialog_IDS
{
   Dialog_Login
   Dialog_Register
   Dialog_Name
}
#2

pawn Код:
#define Dialog_One      1
#define Dialog_Two  Dialog_One+1
#define Dialog_Three     Dialog_One+2
Reply
#2

Actually you can answer that question yourself. The first one allows you to change any entries without breaking others.
Reply
#3

For me, #2
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)