10.04.2010, 17:40
I made a function , but i need it as a macro ...
This is good , but if i try to make it macro ... :
I get errors ...
pawn Код:
Checkx(string[])
{
if(!strcmp(string,"Drive",true) || !strcmp(string,"Fly",true)) return 1;
return 0;
}
pawn Код:
#define Checkx(%0) if(!strcmp(%0,"Drive",true) || !strcmp(%0,"Fly",true)) return 1; else return 0;