To change #define with one command.
#9

Quote:
Originally Posted by -The_Badger-
why do you need to define it anyway? Couldn't you just do:
Код:
New debug=0;
if(strcmp(cmd,"/Debug",true)==0)
{
if(debug==0)return debug=1;
return 1;
}
Actually you couldnt do that,
1) Variables are at 0 by default in Pawn so theres no need for the =0,
2) Its new not New,

You could do this if you really wanted to lol
pawn Код:
new _DEBUG;
#define Debug _DEBUG

// Then you could just do
Debug = true;
Debug = false;
Reply


Messages In This Thread
To change #define with one command. - by nico005 - 17.05.2009, 02:27
Re: To change #define with one command. - by JaYmE - 17.05.2009, 02:32
Re: To change #define with one command. - by Badger(new) - 17.05.2009, 02:35
Re: To change #define with one command. - by ICECOLDKILLAK8 - 17.05.2009, 02:50
Re: To change #define with one command. - by hazdog - 17.05.2009, 03:03
Re: To change #define with one command. - by JaYmE - 17.05.2009, 03:21
Re: To change #define with one command. - by nico005 - 17.05.2009, 04:30
Re: To change #define with one command. - by Badger(new) - 17.05.2009, 11:23
Re: To change #define with one command. - by ICECOLDKILLAK8 - 17.05.2009, 11:28
Re: To change #define with one command. - by Badger(new) - 17.05.2009, 13:06

Forum Jump:


Users browsing this thread: 1 Guest(s)